joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x433a48]
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, eax
push edi
push ebx
push dword [0x433a48]
call esi
push 0
push 1
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xfe
push eax
push 0x552014
push dword [0x433a48]
call esi
push 0x433a50
push 0
push 0
push ebx
push 0
push 0
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x4014b8
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push esi
call edi
cmp eax, 0x102
je 0x4014a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xdb
push eax
push 0x552014
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push ebx
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [0x433a4c]
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042edc4
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x433008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x280], 0x22c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fdf
lea eax, [ebp - 0x280]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401fbd
nop word [eax + eax]
push str.PlantsVsZombies.exe
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x280]
push eax
cmove esi, dword [ebp - 0x278]
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401f90
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x401fe5
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042edc4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Plants_vs._Zombies
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402086
push 0x4307b0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wchdir]
add esp, 4
lea eax, [ebp - 0x50]
push 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x290]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x290], xmm0
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.PlantsVsZombies.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402084
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x28c]
call edi
mov eax, dword [ebp - 0x288]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042edc4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042edc4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x402160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x434a10]
push edi
push eax
push 0
push 0x1fffff
mov edi, ecx
mov dword [0x433a50], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 4
lea ecx, [ebp - 8]
mov dword [0x433a48], eax
push ecx
push 0x6a9ec0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [ebp - 8]
add eax, 0x350
push eax
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x1000
push 0x400
push 0
push dword [0x433a48]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 4]
mov dword [0x433a4c], eax
xor ecx, ebp
mov eax, edi
pop edi
call fcn.0042edc4
mov esp, ebp
pop ebp
ret 4
Function at 0x402520
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp esi, esp
call fcn.00454ae0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000000
jae 0x4025fe
mov dword [ebp - 4], 1
push 0x94
call fcn.00454c50
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4025f9
push 0x94
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00456f90
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0x94
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.00454ae0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x4025b9
mov dword [ebp - 4], 5
jmp 0x4025ed
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 5
jne 0x4025d4
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
jne 0x4025d4
mov dword [ebp - 4], 6
jmp 0x4025ed
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 5
jne 0x4025ed
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 1
jne 0x4025ed
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0xc]
push edx
call fcn.004557e0
add esp, 4
jmp 0x4026a3
mov eax, dword [ebp - 8]
and eax, 0xff
cmp eax, 4
jge 0x402617
mov dword [ebp - 4], 0
jmp 0x4026a3
mov dword [ebp - 4], 2
push 0x94
call fcn.00454c50
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4026a3
push 0x94
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00456f90
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x94
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.00454ae0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 4
jne 0x40267e
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0xa
jne 0x40267e
mov dword [ebp - 4], 3
jmp 0x402697
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x402697
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0x5a
jne 0x402697
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.004557e0
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call fcn.00454ae0
mov esp, ebp
pop ebp
ret
Function at 0x43a254
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x43a353
call fcn.005162a2
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43a2fb
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43a2cc
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x643ce0
call fcn.0048d565
add esp, 8
xor eax, eax
jmp 0x43a39c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43a2f3
push 0x146
push str.occmgr.cpp
call fcn.005134b0
test eax, eax
je 0x43a2f3
int3
xor edx, edx
test edx, edx
jne 0x43a2d9
jmp 0x43a353
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x43a31e
push 0x14e
push str.occmgr.cpp
call fcn.005134b0
test eax, eax
je 0x43a31e
int3
xor edx, edx
test edx, edx
jne 0x43a304
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x43a353
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x43a348
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x643d20
call fcn.0048d565
add esp, 8
jmp 0x43a353
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x43a324
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x43a37a
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x43a399
cmp dword [ebp - 8], 0
je 0x43a399
mov eax, dword [ebp - 8]
push eax
call fcn.004013d9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x478db0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00456ff0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x478e7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x478e7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x478e2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x478e39
or bh, 8
and edi, 0x8000000
je 0x478e54
mov eax, dword [0x658e5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x478e7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47927b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x47929f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4792ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x48edb3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b689
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0052a0f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable._AFX_DEBUG_STATE.0
push str.AFX.INI
push 1
push str.TraceEnabled
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x656e44], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x656e40], eax
cmp dword [0x656e50], 0
je 0x48ee3c
push 0x77
push 0x646eb0
call fcn.005134b0
test eax, eax
je 0x48ee3c
int3
xor ecx, ecx
test ecx, ecx
jne 0x48ee22
push 0x48ebe4
call fcn.00456720
add esp, 4
mov dword [0x656e50], eax
cmp dword [0x656e54], 0
je 0x48ee6e
push 0x7a
push 0x646ec0
call fcn.005134b0
test eax, eax
je 0x48ee6e
int3
xor edx, edx
test edx, edx
jne 0x48ee54
push 0x48ed56
call fcn.004596a0
add esp, 4
mov dword [0x656e54], eax
push 4
push 2
call fcn.004595c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9ca1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b9cd2
push 0x43d
push str.wincore.cpp
call fcn.005134b0
test eax, eax
je 0x4b9cd2
int3
xor edx, edx
test edx, edx
jne 0x4b9cad
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x4b9d1e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b6da7
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.004b6d33
jmp 0x4b9d36
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bd590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4bd61c
call fcn.005162a2
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4bd61c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4bd5ef
xor eax, eax
jmp 0x4bd64d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4bd616
push 0xcc5
push str.wincore.cpp
call fcn.005134b0
test eax, eax
je 0x4bd616
int3
xor edx, edx
test edx, edx
jne 0x4bd5fc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004bd656
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4bd64a
cmp dword [ebp - 8], 0
je 0x4bd64a
mov ecx, dword [ebp - 8]
push ecx
call fcn.004013d9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3205
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x4c3270
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x4c3270
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and eax, 0x4000
test eax, eax
jne 0x4c3270
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x4c3270
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x4c3270
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x4c3270
mov dword [ebp - 4], 1
jmp 0x4c3277
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4c3e0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.005162a2
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c3e66
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c3e80
push 0xeb
push str.dlgcore.cpp
call fcn.005134b0
test eax, eax
je 0x4c3e80
int3
xor edx, edx
test edx, edx
jne 0x4c3e66
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004c3edb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004013d9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c4c2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x40], 0
je 0x4c4c81
call fcn.005162a2
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c4c94
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x4c4d28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x4c4cdf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x12]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x1c], dx
jmp 0x4c4cf5
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
test ecx, ecx
jne 0x4c4d1b
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x4c4d1b
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x4c4d1b
mov dword [ebp - 0x28], 1
jmp 0x4c4d22
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
jne 0x4c4d3a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x4c4d43
mov ecx, dword [ebp - 4]
push ecx
call fcn.004013d9
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x4c4d56
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4c4eef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4c4f12
push 0x33c
push str.dlgcore.cpp
call fcn.005134b0
test eax, eax
je 0x4c4f12
int3
xor eax, eax
test eax, eax
jne 0x4c4ef8
call fcn.005162a2
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c4f7e
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x4c4f60
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.0048d565
add esp, 8
jmp 0x4c4f77
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.0048d565
add esp, 8
xor eax, eax
jmp 0x4c50a8
cmp dword [ebp + 0xc], 0
jne 0x4c4f8e
mov eax, 1
jmp 0x4c50a8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c4fc1
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x643bb4
call fcn.0048d565
add esp, 8
mov eax, 1
jmp 0x4c50a8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x4c4fea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4c4ff2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004013d9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x4c5054
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x4c5039
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.0048d565
add esp, 8
jmp 0x4c5050
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.0048d565
add esp, 8
xor eax, eax
jmp 0x4c50a8
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x4c50a3
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x4c5089
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.0048d565
add esp, 8
jmp 0x4c509f
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
call fcn.0048d565
add esp, 8
xor eax, eax
jmp 0x4c50a8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8