joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5036f0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x503702
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.004b7df0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x5037c5
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x503756
test esi, esi
jle 0x5037a4
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x503740
jmp 0x5037a4
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x50377a
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.0051de60
add esp, 0xc
test esi, esi
jle 0x5037a4
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x503790
push esi
push ebp
push ebp
push edi
call fcn.004b8220
add esp, 0x10
pop ebx
test eax, eax
jne 0x5037c5
push esi
push ebp
call fcn.00401360
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x509d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.0051b8b0
mov eax, dword [0x5a49f0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
ja 0x509f17
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x509f17
cmp dword [esp + 0x88], 0x40000000
ja 0x509f17
push ebx
push edi
push eax
call fcn.004b8290
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.004b4ef0
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.004b4ad0
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.004b4c80
add esp, 0x20
test eax, eax
je 0x509ef3
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
je 0x509ef3
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
je 0x509ef3
push 0
cmp esi, edi
jb 0x509ebb
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004b4a00
add esp, 0xc
test eax, eax
je 0x509ef3
sub esi, edi
je 0x509eeb
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.004b4ad0
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.004b4c80
add esp, 0x18
test eax, eax
jne 0x509e07
jmp 0x509ef3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b4a00
add esp, 0xc
test eax, eax
je 0x509ef3
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0051dfc0
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00401360
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x24]
push eax
call fcn.004b4c90
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0051ad3f
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.0051ad3f
add esp, 0x70
ret
Function at 0x50bc70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x50bc99
mov eax, edi
jmp 0x50bca3
push eax
push edi
call fcn.004a54a0
add esp, 8
test eax, eax
jne 0x50bcab
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x50bcca
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x50bcb3
pop esi
cmp eax, dword [ebx + 4]
jge 0x50bce0
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x50bcd0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x50bd03
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x50bd00
dec ecx
test ecx, ecx
jg 0x50bcf2
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x50bd10
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x50e600
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0051b8b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 0x1048
push 0x584778
push esi
call fcn.0051dfc0
mov ebx, dword [esp + 0x30]
mov edi, 0x48
add esp, 0xc
mov eax, ebx
cmp dword [esp + 0x20], edi
cmovle edi, dword [esp + 0x20]
add edi, ebx
xor ebp, ebp
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ebp*4], edx
inc ebp
cmp ebp, 0x12
jl 0x50e640
mov dword [esp + 0x10], 0
xor edi, edi
mov dword [esp + 0x14], 0
nop
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0041aec0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x50e690
xor edi, edi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0041aec0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x50e6b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x510070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.0051b8b0
mov eax, dword [0x5a49f0]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x510235
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x5101c5
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.0041b940
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x510160
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x51021c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ad3f
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051ad3f
add esp, 0x2c
ret
Function at 0x5390ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00538f49

Function at 0x53cc74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053c934
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
push edi
push str.Hello
push str.Welcome_to_My_Program.
push edi
call esi
push edi
push str.Goodbye
push str.Thank_you_for_using_My_Program._n_n_You_can_uninstall_this_by_going_to_Add_Remove_Programs_in_Control_Panel._
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a7b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ab2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401aae
jmp 0x401aa0
cmp esi, eax
jae 0x401ab2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401aa0
cmp esi, eax
jb 0x401ab9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402900
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x208
push 0
push 0x56d628
call fcn.004f95d0
add esp, 0xc
push 0x56d628
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40294c
push eax
push 0x56d628
push str._SetBasePath__UnstopPath_ws_SHGetFolderPathW_Failed._hResult_08x
call fcn.004038b0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x104
mov eax, 0x56d628
cmp word [eax], 0
je 0x402964
add eax, 2
dec edx
jne 0x402956
jmp 0x40298c
test edx, edx
je 0x40298c
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.SomansaUnstop
lea ecx, [ecx*2 + 0x56d628]
mov edx, SysReAllocString
call fcn.00402350
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push 0x56d628
call fcn.00401d10
call fcn.00402ae0
push 0x11c
push 0
push 0x56d0d4
call fcn.004f95d0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [0x56d0d4], 0x11c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x402a0a
push 0x56d0d4
call eax
test eax, eax
je 0x402a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x56d628
push str._SetBasePath__RtlGetVersion_Failed._Error_d
call fcn.004038b0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x5479cc
push 0x5479ec
mov dword [0x56d1f0], eax
mov dword [0x56d1f4], eax
mov dword [0x56d1f8], eax
mov dword [0x56d1fc], eax
mov dword [0x56d200], eax
mov dword [0x56d204], eax
mov dword [0x56d208], eax
mov dword [0x56d20c], eax
mov dword [0x56d210], eax
call esi
push eax
call edi
push 0x56d1f0
test eax, eax
je 0x402a59
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x55ce38
push 0x4f9240
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x412c
call fcn.004fada0
mov eax, dword [0x565540]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x4140], esi
cmp edi, esi
je 0x403a64
mov dword [ebp - 4], esi
push 0x104
push esi
lea eax, [ebp - 0x12c]
push eax
call fcn.004f95d0
push 0x2000
push esi
lea ecx, [ebp - 0x212c]
push ecx
call fcn.004f95d0
xor eax, eax
mov dword [ebp - 0x413c], eax
mov dword [ebp - 0x4138], eax
mov dword [ebp - 0x4134], eax
mov dword [ebp - 0x4130], eax
lea edx, [ebp + 0xc]
push edx
push edi
push 0x1000
lea eax, [ebp - 0x212c]
push eax
call fcn.004f7313
add esp, 0x28
lea eax, [ebp - 0x212c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403966
sub eax, edx
sar eax, 1
cmp eax, 0xf80
jb 0x40398e
lea ecx, [ebp - 0x212c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x403a5d
lea edx, [ebp - 0x413c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x212c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx ecx, word [ebp - 0x4130]
push ecx
movzx edx, word [ebp - 0x4132]
push edx
movzx eax, word [ebp - 0x4134]
push eax
movzx ecx, word [ebp - 0x4136]
push ecx
movzx edx, word [ebp - 0x413a]
push edx
movzx eax, word [ebp - 0x413c]
push eax
push str.__04d_02d_02d__02d:_02d:_02d__PID_d___ws__n
mov ecx, 0x1000
lea ebx, [ebp - 0x412c]
call fcn.00403600
add esp, 0x24
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x56d8f4
push 0x547cf0
mov ecx, 0x104
lea edi, [ebp - 0x12c]
call fcn.00403660
push 0x547cf4
mov edx, edi
push edx
lea eax, [ebp - 0x4140]
push eax
call fcn.004f83f5
add esp, 0x14
mov eax, dword [ebp - 0x4140]
cmp eax, esi
je 0x403a5d
mov ecx, ebx
push ecx
push 0x547cf0
push eax
call fcn.004f843c
mov edx, dword [ebp - 0x4140]
push edx
call fcn.004f805a
add esp, 0x10
jmp 0x403a5d
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004f7029
mov esp, ebp
pop ebp
ret
Function at 0x404b48
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x565540]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x404b8d
push 0x51ef88
push 4
push eax
call fcn.004f8631
push eax
call fcn.00401b10
add esp, 0x10
jmp 0x404ba3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x404c23
push edi
call fcn.004f8d1c
mov edi, dword [eax]
call fcn.004f8d1c
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004f8cb9
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004f8d1c
cmp dword [eax], 0
je 0x404bf7
call fcn.004f8d1c
push dword [eax]
call fcn.00403e3e
pop ecx
jmp 0x404bfe
call fcn.004f8d1c
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x404c23
cmp dword [ebp - 0x234], esi
jae 0x404c23
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x404c25
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f7029
leave
ret
Function at 0x405176
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x565540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004050f0
pop ecx
cmp eax, esi
je 0x405260
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x405260
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.004f95d0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x405260
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x405260
cmp esi, 0x14
jge 0x405260
push 0x10
push 0
push edi
call fcn.004f95ab
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40524f
call fcn.004f8d1c
cmp dword [eax], 0x22
je 0x40524f
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004f8616
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x405225
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x566b2c], 0
jne 0x4052eb
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x405314
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00404b48
pop ecx
pop ecx
test eax, eax
jne 0x405316
inc edi
cmp edi, esi
jl 0x4052f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f7029
leave
ret 8

Function at 0x40ab1e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x565540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40ab53
xor eax, eax
jmp 0x40aba6
lea eax, [ebp - 0x210]
push eax
call fcn.004f8616
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40ab84
push 0x5479e0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f964a
add esp, 0xc
test eax, eax
jne 0x40ab4f
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004f964a
add esp, 0xc
test eax, eax
jne 0x40ab4f
lea eax, [ebp - 0x210]
push eax
call fcn.004050f0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f7029
leave
ret
Function at 0x416a88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x416acf
call fcn.00408906
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416acf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416aeb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416588
mov esi, eax
test edi, edi
je 0x416ae9
test ebx, ebx
je 0x416ae9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416fca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51a1e6
call fcn.004f8b45
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x416fef
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x417041
call fcn.00404603
push eax
lea ecx, [ebp - 0x10]
call fcn.004020d0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f8694
push eax
call fcn.00401b10
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402260
mov eax, esi
call fcn.004f8c1d
ret 8

Function at 0x419456
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004190fa
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4194a0
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00404a28
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004049f9
jmp 0x4194ab
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0040dcee
pop edi
pop esi
pop ebp
ret 0xc