joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e34f2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x30]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [esp + 0x34]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 1
call fcn.00535eb0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call fcn.005382e0
mov edx, dword [esp + 0x38]
test edx, edx
je 0x538ae7
lea ecx, [esp + 0x10]
call fcn.00535ee0
mov dword [edx], eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc

Function at 0x53ba30
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 0xfc]
call fcn.00523a50
mov ebx, eax
mov eax, dword [esi + 0xd0]
cmp eax, 0xffffffff
je 0x53ba97
cmp dword [esi + 0x100], 5
jne 0x53ba97
cmp dword [esi + 0xf8], 1
jne 0x53ba97
test ebx, ebx
je 0x53ba74
cmp dword [ebx + 0x80], eax
je 0x53ba97
cmp eax, dword [esi + 0xcc]
jne 0x53ba8c
mov edx, dword [esi]
mov eax, dword [edx + 0x150]
push 0
push 0xffffffffffffffff
mov ecx, esi
call eax
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0053af60
mov ecx, esi
test ebx, ebx
je 0x53bb97
push edi
call fcn.00538ee0
test eax, eax
jne 0x53bb5e
mov edx, dword [ebx]
mov eax, dword [edx + 0x130]
mov ecx, ebx
call eax
test eax, eax
je 0x53bb5e
push esi
call fcn.0053cfe0
push eax
call sub.mfc90u.dll_AfxDynamicDownCast
add esp, 8
test eax, eax
je 0x53bb5e
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x53bb5e
mov ecx, esi
call fcn.00538eb0
mov edi, eax
test edi, edi
je 0x53bb5e
cmp dword [edi + 0x60], 0
je 0x53bb5e
mov ecx, dword [edi + 0x74]
cmp dword [ecx + 0x44], 0
je 0x53bb5e
push 1
mov ecx, edi
call fcn.0052aa20
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0053af60
mov edx, dword [esi]
mov eax, dword [edx + 0x150]
push 0
push 0xffffffffffffffff
mov ecx, esi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x108]
push eax
push ecx
mov ecx, ebx
call edx
push 0
mov ecx, edi
call fcn.0052aa20
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
push 0
mov ecx, edi
call edx
mov ecx, edi
call fcn.00529f10
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, esi
call fcn.00538ee0
test eax, eax
je 0x53bb79
mov eax, dword [ebx]
mov edx, dword [eax + 0x130]
mov ecx, ebx
call edx
test eax, eax
je 0x53bb58
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xd4]
push ecx
push edx
push 0
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
ret 0xc
call sub.mfc90u.dll_CWnd::Default
pop esi
pop ebx
ret 0xc
Function at 0x53db90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0xfc]
push edi
movzx edi, word [esp + 0x10]
call fcn.00523700
test edi, edi
jne 0x53dbb1
pop edi
xor eax, eax
pop ebp
pop ecx
ret 8
push esi
push 0xf1
push edi
call sub.mfc90u.dll_AfxFindResourceHandle
mov esi, eax
test esi, esi
je 0x53dbf1
push 0xf1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x53dbf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x53dbf1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x53dbfa
pop esi
pop edi
xor eax, eax
pop ebp
pop ecx
ret 8
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov edi, eax
xor eax, eax
add esp, 4
xor ecx, ecx
cmp ax, word [esi + 6]
jae 0x53dc40
mov eax, esi
call fcn.0053d420
lea ebx, [ebx]
movzx edx, word [eax + ecx*2]
mov dword [edi + ecx*4], edx
movzx edx, word [esi + 6]
inc ecx
cmp ecx, edx
jl 0x53dc30
movzx eax, word [esi + 6]
push ebx
push eax
push edi
mov ecx, ebp
call fcn.0053d990
cmp dword [esp + 0x1c], 0
mov ebx, eax
je 0x53dc9f
mov ecx, ebp
call fcn.00538ff0
movzx edx, word [esi + 4]
movzx ecx, word [esi + 2]
push 0
push edx
mov edx, dword [esp + 0x20]
push ecx
movzx ecx, word [esi + 6]
push ecx
push edi
push edx
mov ecx, eax
call fcn.0054ee40
test eax, eax
jne 0x53dc82
xor ebx, ebx
movzx eax, word [esi + 2]
cmp ax, 0x10
je 0x53dc9f
movzx ecx, word [esi + 4]
movzx eax, ax
mov dword [ebp + 0x10c], eax
mov dword [ebp + 0x110], ecx
push edi
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
pop ecx
ret 8

Function at 0x5402f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e3ab4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x30
push 0
push 0x239e
call fcn.005dfb7c
lea edi, [esi + 0x9c]
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.CXTPCustomizeOptionsPage.0
call fcn.005df096
mov dword [edi], vtable.CComboBox.0
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 1
call fcn.0053ff70
lea ecx, [esi + 0x158]
mov byte [esp + 0x18], 2
call fcn.0053ff70
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xb8]
mov eax, dword [eax + 0x74]
mov edx, dword [eax + 0x20]
mov dword [esi + 0x88], edx
mov edx, dword [eax + 0x24]
mov dword [esi + 0x8c], edx
mov edx, dword [eax + 0x30]
mov dword [esi + 0x90], edx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x94], edx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x98], edx
mov eax, dword [eax + 0x58]
mov dword [esi + 0xf0], eax
mov dword [esi + 0x1bc], ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x544a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5e40a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x544b71
test al, 0x10
jne 0x544b71
mov ecx, esi
call fcn.00544350
test eax, eax
je 0x544b71
xor eax, eax
push edi
lea ecx, [esp + 0x14]
mov word [esp + 0x14], ax
call fcn.005dfdbc
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
mov dword [esp + 0x28], 0
test ecx, ecx
jne 0x544ae0
push 0x80004003
call fcn.005e0cf0
mov ebx, dword [esp + 0x10]
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x30]
push ecx
mov ecx, dword [edx + 0xe8]
mov dword [eax + 0xc], ebx
call ecx
lea edx, [esp + 0x10]
push edx
mov ebx, eax
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jl 0x544b71
cmp word [esp + 0x30], 0
je 0x544b71
push edi
lea ecx, [esi + 0x48]
call fcn.00544a20
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x544b50
mov dword [esi + 0x4c], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x38], 0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x547630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ebx, ecx
xor esi, esi
mov ecx, ebp
mov dword [esp + 0xc], esi
call fcn.00539390
test eax, eax
jle 0x5477dc
push edi
push esi
mov ecx, ebp
call fcn.00539370
mov esi, eax
push esi
call fcn.0053cfe0
push eax
call sub.mfc90u.dll_AfxDynamicDownCast
mov edi, eax
add esp, 8
test edi, edi
je 0x5476fe
mov eax, dword [edi + 0xd8]
push eax
mov ecx, ebx
call fcn.00528bc0
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x1ec]
push ecx
mov ecx, esi
call edx
test ebp, ebp
je 0x5476b2
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov edx, dword [eax + 0x218]
push ecx
push esi
mov ecx, ebp
call edx
jmp 0x5477bf
mov eax, dword [ebx + 0x84]
lea ecx, [ebx + 0x7c]
push edi
push eax
call fcn.00557a50
lea ecx, [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [edi]
mov eax, dword [ebx + 0xa0]
mov edx, dword [edx + 0x20c]
push 0
push eax
mov ecx, edi
call edx
mov eax, dword [edi + 0xec]
push eax
mov ecx, edi
call fcn.0053d390
mov edx, dword [ebx]
mov eax, dword [edx + 0x7c]
push edi
mov ecx, ebx
call eax
jmp 0x5477bf
mov edx, dword [esi]
mov eax, dword [edx + 0x1a0]
mov ecx, esi
call eax
test eax, eax
je 0x5477bf
cmp dword [esi + 0x21c], 0
je 0x5477bf
mov eax, dword [esi + 0xd8]
mov ecx, dword [ebx + 0x78]
push eax
call fcn.00539430
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x1ec]
push ebp
mov ecx, esi
call eax
test edi, edi
je 0x547797
mov eax, dword [esi + 0xfc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x547759
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [edi + 0xfc]
mov ebp, dword [ecx + 0x3c]
test ebp, ebp
je 0x547770
lea edx, [ebp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.00538b60
push 0
mov ecx, esi
call fcn.00538b60
test ebp, ebp
je 0x5477bf
mov ecx, dword [edi + 0xfc]
push ebp
call fcn.00523630
jmp 0x5477bf
mov ecx, dword [ebx + 0x78]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
push esi
call eax
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi + 0xfc]
cmp dword [esi + 0x3c], 0
jne 0x5477bf
mov ecx, esi
call fcn.00526370
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
inc esi
mov ecx, ebp
mov dword [esp + 0x10], esi
call fcn.00539390
cmp esi, eax
jl 0x547652
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x548ae0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x548b0f
xor eax, eax
pop esi
add esp, 0x3c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe
lea edx, [esp + 0x18]
push edx
push esi
call edi
test eax, eax
je 0x548b6a
cmp dword [esp + 8], 0xe
jne 0x548b6a
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x548b6a
cmp dword [esp + 8], 0x28
jne 0x548b6a
xor edx, edx
cmp word [esp + 0x2a], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x548b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x548c49
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push edi
mov byte [esp + 0x18], 0x89
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x4e
mov byte [esp + 0x1b], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x548c42
cmp dword [esp + 0xc], 4
jne 0x548c42
mov eax, dword [esp + 8]
push esi
cmp eax, dword [esp + 8]
je 0x548c12
movzx esi, al
sub esi, 0x89
jne 0x548c28
movzx esi, ah
sub esi, 0x50
jne 0x548c28
movzx esi, byte [esp + 0xe]
sub esi, 0x4e
jne 0x548c28
movzx esi, byte [esp + 0xf]
sub esi, 0x47
jne 0x548c28
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
add esp, 0xc
ret
sar esi, 0x1f
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop esi
sete al
pop edi
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0xc
ret
Function at 0x548c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x69d544
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x548c82
pop esi
pop ecx
ret
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x548c95
pop edi
pop esi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax]
cmp ecx, dword [esp + 8]
je 0x548cca
movzx esi, cl
sub esi, 0x89
jne 0x548cde
movzx esi, byte [eax + 1]
sub esi, 0x50
jne 0x548cde
movzx esi, byte [eax + 2]
sub esi, 0x4e
jne 0x548cde
movzx esi, byte [eax + 3]
sub esi, 0x47
jne 0x548cde
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret
sar esi, 0x1f
push edi
or esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
pop ecx
ret

Function at 0x548d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x548d1b
xor eax, eax
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x548d17
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x548d17
xor ecx, ecx
cmp word [eax + 0xe], 0x20
push edi
sete cl
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret
Function at 0x549840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5e53d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x54991d
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x54991d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x54991d
mov esi, dword [edi + 8]
imul esi, dword [edi + 4]
add esi, esi
add esi, esi
cmp word [edi + 0xe], 0x20
mov dword [esp + 0x18], 0
jne 0x549999
mov ecx, dword [esp + 0x40]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esi + 0x28]
cmp eax, edx
jb 0x549999
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CDC::CDC
xor ebp, ebp
push ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDC::Attach
push 0x34
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x549933
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.005df384
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x28
push edi
push ebx
call fcn.0051b230
add esp, 0xc
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [ebx + 0x14], esi
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x54997a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54997a
push esi
add edi, 0x28
push edi
push eax
call fcn.0051b230
add esp, 0xc
mov dword [esp + 0x18], ebp
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.005df384
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x54a140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e54d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
test esi, esi
je 0x54a233
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test eax, eax
jne 0x54a185
test ecx, ecx
je 0x54a233
cmp esi, eax
jne 0x54a1a6
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.005df4ec
push 1
push 1
push 0x21
push edi
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call sub.mfc90u.dll_CImageList::Create_1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call fcn.0044f280
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call sub.mfc90u.dll_AfxGetModuleState
mov edx, dword [eax + 0x94]
mov ecx, dword [edx]
call fcn.005185f0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call sub.mfc90u.dll_CImageList::CImageList
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x54b910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e4731
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 2
call fcn.0054afc0
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.00548f80
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.00548f80
mov eax, dword [esi + 0x18]
add esi, 8
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.CXTPImageManagerResource::CBitmapDC.0
test eax, eax
je 0x54b98c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
call fcn.005df384
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x54c110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e481f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CXTPImageManagerIcon.0
push 1
mov dword [esp + 0x18], 8
call fcn.0054b6b0
lea ecx, [esi + 0x12c]
mov byte [esp + 0x14], 7
call fcn.0054bcc0
lea ecx, [esi + 0x108]
mov byte [esp + 0x14], 6
call fcn.0054bcc0
lea ecx, [esi + 0xe4]
mov byte [esp + 0x14], 5
call fcn.0054bcc0
lea ecx, [esi + 0xc0]
mov byte [esp + 0x14], 4
call fcn.0054bcc0
lea ecx, [esi + 0x9c]
mov byte [esp + 0x14], 3
call fcn.0054bcc0
lea ecx, [esi + 0x78]
mov byte [esp + 0x14], 2
call fcn.0054bcc0
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 1
call fcn.0054bcc0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.0054bcc0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.005dfbac
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x54df10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5e4ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x70]
push 0xe
push edi
call sub.mfc90u.dll_AfxFindResourceHandle
push 0xe
mov esi, eax
push edi
push esi
mov dword [esp + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x54e04a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54e046
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
xor eax, eax
test ebp, ebp
je 0x54e0c2
xor ebx, ebx
cmp ax, word [ebp + 4]
jae 0x54e02b
lea ecx, [esp + 0x18]
call fcn.00549d60
mov edx, dword [esp + 0x7c]
movzx eax, bx
lea ecx, [eax*8]
sub ecx, eax
movzx esi, byte [ebp + ecx*2 + 6]
movzx edi, byte [ebp + ecx*2 + 7]
lea eax, [ebp + ecx*2]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], 0
cmp ecx, esi
jne 0x54dfcb
cmp edx, edi
je 0x54dfd3
test ecx, ecx
jne 0x54e00f
test edx, edx
jne 0x54e00f
movzx edx, word [eax + 0x12]
mov eax, dword [esp + 0x70]
push 0
push edi
push esi
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.0054bcd0
test eax, eax
je 0x54e035
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
push edi
push esi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0054dd80
test eax, eax
je 0x54e035
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
call fcn.0054bcc0
inc ebx
cmp bx, word [ebp + 4]
jb 0x54df90
mov eax, 1
jmp 0x54e0c2
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
call fcn.0054bcc0
xor eax, eax
jmp 0x54e0c2
lea ecx, [esp + 0x3c]
call fcn.00549d60
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push 0
push ecx
push edx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 1
call fcn.0054c680
test eax, eax
jne 0x54e08a
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0054bcc0
xor eax, eax
jmp 0x54e0c2
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.0054dd80
lea ecx, [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.0054bcc0
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14