joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411620
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539580
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
push eax
push 0x20006
push 0
push 0x569474
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4117d1
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea ecx, [ebp - 0x1c]
push ecx
push str.Ofcard
push edx
call esi
test eax, eax
jne 0x4117c7
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4116a2
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 9
push str.KongChong
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00408080
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x411797
push str.kc1.0
lea ecx, [ebp - 0x10]
call fcn.004075e0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
mov edx, dword [esi - 0xc]
test edx, edx
jns 0x411702
push 0x80070057
call fcn.00408450
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41171f
push edx
lea ecx, [ebp - 0x10]
call fcn.004083b0
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
mov edx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.KongChong
push edx
call ebx
push esi
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.Product_ID
push ecx
call ebx
test eax, eax
je 0x41176a
push str.AddReg____
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
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 0x411797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
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 0x4117c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412180
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [esi + 0x294]
push edx
call edi
test eax, eax
je 0x4121e6
cmp dword [esi + 0x2390], 3
mov ecx, esi
jge 0x4121e1
push 1
push 0x568b90
push 0x568b9c
call fcn.0041dc28
cmp eax, 1
jne 0x4121e6
push str.c:_test.bmp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
call fcn.004122a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0x2a4]
push edx
call edi
test eax, eax
je 0x41220d
push 2
mov ecx, esi
call fcn.00424ad1
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0x2c4]
push edx
call edi
test eax, eax
je 0x41224f
movzx ecx, word [ebp + 0xc]
movzx edx, word [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x11c]
shl ecx, 0x10
or ecx, edx
push ecx
push 0xf011
push 0x112
mov ecx, esi
call eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4122a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539050
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4122e3
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
push 2
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004248f0
mov ecx, eax
call fcn.0041ff56
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x4123a0
push 0x568b88
push eax
call fcn.00514bab
add esp, 8
test eax, eax
je 0x4123a0
sub eax, dword [ebp - 0x10]
sar eax, 1
js 0x4123a0
cmp dword [edi + 0x2378], 0
je 0x4123b8
mov edx, dword [edi + 0x2394]
mov edx, dword [edx - 0xc]
test edx, edx
jns 0x412353
push 0x80070057
call fcn.00408450
mov eax, dword [edi + 0x2394]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x412376
push edx
lea ecx, [edi + 0x2394]
call fcn.004083b0
mov eax, dword [edi + 0x2394]
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040ace0
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 1
call fcn.0040afa0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040af40
jmp 0x4123b8
push 4
push 0x568b90
push 0x568bbc
mov ecx, edi
call fcn.0041dc28
cmp eax, 7
je 0x4123ca
push str.c:_test.bmp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00426e58
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 0x4123f0
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 edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4127b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53953b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00412410
mov eax, 1
push 0x208
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x228], 0
call fcn.005168b0
add esp, 0xc
lea ebx, [ebp - 0x230]
mov eax, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_SCRIPTURL_MITIGATION
mov edi, SysReAllocStringLen
call fcn.004129f0
lea ecx, [ebp - 0x224]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4129ca
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
push ecx
push 0
push str.Version
push edx
mov dword [ebp - 0x228], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4129ca
lea ecx, [ebp - 0x218]
push 0x56908c
push ecx
mov dword [ebp - 0x21c], edi
call fcn.00515a0e
add esp, 8
test eax, eax
je 0x41299d
push eax
lea ecx, [ebp - 0x220]
call fcn.004075e0
lea edx, [ebp - 0x220]
push 0x569090
push edx
mov dword [ebp - 4], edi
call fcn.00413080
add esp, 8
test al, al
je 0x4128f0
mov dword [ebp - 0x21c], 0x22b8
jmp 0x412974
lea eax, [ebp - 0x220]
push 0x569094
push eax
call fcn.00413080
add esp, 8
test al, al
je 0x412952
push 0x56908c
push 0
call fcn.00515a0e
add esp, 8
test eax, eax
je 0x412974
push eax
lea ecx, [ebp - 0x22c]
call fcn.004075e0
lea ecx, [ebp - 0x22c]
push 0x569098
push ecx
call fcn.00413080
add esp, 8
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], 0x22b8
call fcn.00408290
jmp 0x412974
lea edx, [ebp - 0x220]
push 0x569098
push edx
call fcn.00413080
add esp, 8
test al, al
je 0x412974
mov dword [ebp - 0x21c], 0x2711
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41299d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x21c], 0
jbe 0x4129ca
lea ebx, [ebp - 0x21c]
mov eax, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
mov edi, SysReAllocStringLen
call fcn.004129f0
mov eax, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
mov edi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004129f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret
Function at 0x4129f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412a3d
mov ecx, dword [ebp - 4]
push 4
push ebx
push 4
push eax
push str.GameCardiCafeConsole_OfCard.exe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412a7b
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412a7b
mov edx, dword [ebp - 4]
push 4
push ebx
push 4
push eax
push str.GameCardiCafeConsole_OfCard.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
jmp 0x412a2b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412e00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538e98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e42
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x23a0]
test eax, eax
jne 0x412eb3
mov ecx, dword [ebp + 8]
add ecx, 0x239c
call fcn.0042b747
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e96
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x412fa7
mov edx, dword [eax]
mov eax, dword [eax + 8]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
mov dword [ebp - 0x14], edx
cmp esi, ebx
je 0x412f6e
cmp dword [ebx + 0xc], 0
jl 0x412f5e
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x412f5e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x412f02
cmp eax, dword [esi]
jne 0x412f02
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x412f3d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x412fac
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00514778
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412f56
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x412f6e
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00408080
mov edi, dword [ebp - 0x10]
push edi
call fcn.00515abc
add esp, 4
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412f98
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x412eb0
jmp 0x412e65
call fcn.00418869
call fcn.00408360
int3
Function at 0x4148f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jns 0x414907
push 0x80070057
call fcn.00408450
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or edx, eax
jge 0x414920
push ecx
mov ecx, esi
call fcn.004083b0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
push edi
mov edi, eax
test eax, eax
je 0x41493a
push ecx
push eax
call fcn.00514b64
add esp, 8
test eax, eax
js 0x4148fd
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4148fd
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push edi
mov word [ecx + eax*2], dx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41496a
shr eax, 4
and eax, 1
je 0x41496a
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
test byte [0x593c98], 1
jne 0x4149a8
or dword [0x593c98], 1
push 0x5697dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHCreateDirectoryExW
push eax
mov dword [0x593c78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53b930
mov dword [0x593c74], eax
call fcn.00514988
add esp, 4
push 0
push edi
push 0
call dword [0x593c74]
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x414c50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x414c78
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], 0
push edi
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414cf1
cmp dword [ebp - 0x108], 2
jne 0x414cf1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x414d5a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
mov dword [esi + 4], 0x414d70
mov dword [esi + 8], 0x415280
call edi
mov ecx, dword [esi + 0xc]
push str.GetModuleFileNameExW
push ecx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051447c
mov esp, ebp
pop ebp
ret
push 0x569974
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x414d5a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
mov dword [esi + 4], 0x415660
mov dword [esi + 8], 0x4158d0
call edi
mov edx, dword [esi + 0xc]
push str.Process32FirstW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
push str.Process32NextW
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.Module32FirstW
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0xc]
push str.Module32NextW
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0051447c
mov esp, ebp
pop ebp
ret
Function at 0x4161a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539268
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x5684c8
push 0xa2
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x41622d
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416204
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00408010
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41627f
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416256
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00408010
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4162ae
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x100000
mov dword [ebp - 4], 2
call fcn.00416564
push 0x100000
mov esi, eax
push 0
push esi
call fcn.005168b0
mov ecx, dword [ebp - 0x14]
push ebx
push ecx
push esi
call fcn.00518c40
add esp, 0x1c
push esi
lea ecx, [ebp - 0x10]
call fcn.00406970
lea ecx, [ebp - 0x10]
call fcn.00416490
push esi
call fcn.00416559
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, edi
call fcn.00407f80
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 0x416336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421f17
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 0x421f5e
call fcn.0041b517
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421f5e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421f7a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00421a17
mov esi, eax
test edi, edi
je 0x421f78
test ebx, ebx
je 0x421f78
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42504b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x538159
call fcn.005167a5
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x425070
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4250c2
call fcn.00418988
push eax
lea ecx, [ebp - 0x10]
call fcn.00408230
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.00518172
push eax
call fcn.004073a0
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.004082b0
mov eax, esi
call fcn.0051687d
ret 8

Function at 0x42769c
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.0041b517
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 0x4276d5
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.004272d9
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 0x427733
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 0x427757
cmp dword [edi + 0x74], 0
jne 0x427757
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b517
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.004276f4
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 0x4281ef
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.00427e93
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x428239
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041983d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414b70
jmp 0x428244
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042f734
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42824a
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.0042491a
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 0x428287
call fcn.00427e93
mov dword [esi + 0xc], 1
jmp 0x42828c
call fcn.00427e93
cmp dword [esi], 0
je 0x4282d5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4282ad
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041983d
jmp 0x4282bf
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00408410
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414b70
jmp 0x4282f9
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 0x4282f9
push dword [esi]
push dword [ebp + 8]
call fcn.0042f734
pop esi
pop ebp
ret 0xc

Function at 0x42a1f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42a239
call fcn.0041b517
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a239
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42a27c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42a265
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42a265
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42a279
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc