joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b448
push esi
call fcn.004058f3
push esi
call fcn.0040547a
mov edi, eax
test edi, edi
jne 0x4054e8
xor eax, eax
jmp 0x40553a
push edi
call fcn.00405b51
test byte [0x42ebd8], 0x80
je 0x405501
mov al, byte [edi]
test al, al
je 0x4054e4
cmp al, 0x5c
je 0x4054e4
sub edi, esi
jmp 0x405519
call fcn.00405bea
test eax, eax
je 0x405513
test byte [eax], 0x10
je 0x4054e4
push esi
call fcn.0040542d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405505
call fcn.004053e6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055ab
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055c7
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4055ca
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4055f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40563d
test edi, edi
jne 0x405604
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405637
Function at 0x405641
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c11
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405665
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40579e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c1d0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c1d0
je 0x4056a9
push 1
push 0
push esi
call fcn.004055ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057a4
cmp eax, edi
jg 0x4057a4
mov esi, 0x42bc48
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057a4
cmp eax, edi
jg 0x4057a4
push esi
push ebp
push str._s_s_r_n
push 0x42b848
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ebd0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405915
push 4
push 0xc0000000
push esi
call fcn.004055ca
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40579e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405797
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405797
cmp edi, dword [esp + 0x18]
jne 0x405797
push str._Rename__r_n
push esi
call fcn.0040553f
test eax, eax
jne 0x4057ab
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058f3
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b848
push eax
call fcn.0040558b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ec50]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409390
push eax
call fcn.0040553f
test eax, eax
je 0x405762
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057d2
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4057c7
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405764
Function at 0x4057da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40584b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40583a
cmp dword [ebp + 0x14], 1
je 0x40583c
cmp dword [ebp + 0x14], 2
je 0x40583c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c7d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c5d4], 0
push esi
jne 0x405cb4
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 0x405c8e
mov dword [ecx*4 + 0x42c5d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c89
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ce5
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 + 0x42c5d0]
xor eax, esi
inc ecx
dec edx
jne 0x405cc7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401200
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 0x40121b
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 0x401252
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40124e
jmp 0x401240
cmp esi, eax
jae 0x401252
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401240
cmp esi, eax
jb 0x401259
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 0x401fd0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f5ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5896f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0040d900
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 0
call fcn.0040d900
lea edx, [edi + 8]
lea ecx, [esi + 8]
push edx
mov byte [ebp - 4], 1
call fcn.0040d900
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.0040d900
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov byte [ebp - 4], 3
call fcn.0040d900
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.0040d900
lea edx, [edi + 0x18]
lea ecx, [esi + 0x18]
push edx
mov byte [ebp - 4], 5
call fcn.0040d900
lea eax, [edi + 0x1c]
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.0040d900
lea edx, [edi + 0x20]
lea ecx, [esi + 0x20]
push edx
mov byte [ebp - 4], 7
call fcn.0040d900
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.0040d900
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
mov byte [ebp - 4], 9
call fcn.0040d900
lea eax, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040d900
lea edx, [edi + 0x30]
lea ecx, [esi + 0x30]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040d900
lea eax, [edi + 0x34]
lea ecx, [esi + 0x34]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040d900
lea edx, [edi + 0x38]
lea ecx, [esi + 0x38]
push edx
mov byte [ebp - 4], 0xd
call fcn.0040d900
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040d900
lea edx, [edi + 0x40]
lea ecx, [esi + 0x40]
push edx
mov byte [ebp - 4], 0xf
call fcn.0040d900
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040d900
lea edx, [edi + 0x48]
lea ecx, [esi + 0x48]
push edx
mov byte [ebp - 4], 0x11
call fcn.0040d900
mov byte [ebp - 4], 0x12
mov eax, dword [edi + 0x4c]
add edi, 0x50
push edi
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], eax
call fcn.0040d900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4040b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530058
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5896f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.0041ae8c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4040f1
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x55d2ba
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x40412d
mov edx, ecx
movzx edi, dx
push edi
call fcn.0041ada7
test eax, eax
je 0x404139
push edi
push eax
mov ecx, esi
call fcn.0040d790
jmp 0x404139
push 0x55d2ba
mov ecx, esi
call fcn.0040c1e0
or eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409cf0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530a60
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x5896f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x55d2ac
lea eax, [esi + 0x100]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040c8a0
lea edx, [esi + 0x104]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.0040c7e0
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x74]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::constructor_void_
push 0x5602f0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.0040c8a0
add esp, 8
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
add esi, 0xfc
push esi
push eax
push ecx
call fcn.0040c7e0
add esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.HP_Installer_Launch
call fcn.0040c030
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 6
call fcn.0040c030
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_CBootstrapPrereqCheck::RegistrySetString_struct_HKEY_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x74]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::destructor_void_
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a5fc
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 0x41a643
call fcn.00420a03
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a643
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a65f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a0fc
mov esi, eax
test edi, edi
je 0x41a65d
test ebx, ebx
je 0x41a65d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41b6f3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5896f0]
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 0x41b738
push 0x535638
push 4
push eax
call fcn.0050eb38
push eax
call fcn.00401010
add esp, 0x10
jmp 0x41b74e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b7ce
push edi
call fcn.0050d0b1
mov edi, dword [eax]
call fcn.0050d0b1
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.0050bb1e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050d0b1
cmp dword [eax], 0
je 0x41b7a2
call fcn.0050d0b1
push dword [eax]
call fcn.00413e3b
pop ecx
jmp 0x41b7a9
call fcn.0050d0b1
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x41b7ce
cmp dword [ebp - 0x234], esi
jae 0x41b7ce
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41b7d0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050baf1
leave
ret
Function at 0x41bd19
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5896f0]
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.00415a00
pop ecx
cmp eax, esi
je 0x41be03
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x41be03
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.0050d100
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 0x41be03
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x41be03
cmp esi, 0x14
jge 0x41be03
push 0x10
push 0
push edi
call fcn.0050f062
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41bdf2
call fcn.0050d0b1
cmp dword [eax], 0x22
je 0x41bdf2
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0050cb1a
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41bdc8
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 [0x58c874], 0
jne 0x41be8e
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41beb7
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041b6f3
pop ecx
pop ecx
test eax, eax
jne 0x41beb9
inc edi
cmp edi, esi
jl 0x41be94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050baf1
leave
ret 8

Function at 0x42007a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00420a03
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4200b3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041fcb7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x420111
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x420135
cmp dword [edi + 0x74], 0
jne 0x420135
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00420a03
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004200d2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423332
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.00422fd6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42337c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004186c6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00416989
jmp 0x423387
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00425fe7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42338d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00424a14
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4233ca
call fcn.00422fd6
mov dword [esi + 0xc], 1
jmp 0x4233cf
call fcn.00422fd6
cmp dword [esi], 0
je 0x423418
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4233f0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004186c6
jmp 0x423402
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040da80
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00416989
jmp 0x42343c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42343c
push dword [esi]
push dword [ebp + 8]
call fcn.00425fe7
pop esi
pop ebp
ret 0xc
Function at 0x424d4a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x525835
call fcn.0050cf19
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x424d6f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x424dc1
call fcn.0041ae8c
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d8d0
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.0050ca4d
push eax
call fcn.00401010
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.004012b0
mov eax, esi
call fcn.0050cff1
ret 8

Function at 0x428285
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5896f0]
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 0x4282ba
xor eax, eax
jmp 0x42830d
lea eax, [ebp - 0x210]
push eax
call fcn.0050cb1a
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4282eb
push 0x55d2ac
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f07c
add esp, 0xc
test eax, eax
jne 0x4282b6
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f07c
add esp, 0xc
test eax, eax
jne 0x4282b6
lea eax, [ebp - 0x210]
push eax
call fcn.00415a00
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050baf1
leave
ret

Function at 0x452a8f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
invalid