joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465618
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8790
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
call fcn.004a8847
test eax, eax
je 0x4656dd
call fcn.004c13ba
mov ecx, dword [eax + 4]
call fcn.004a8be6
lea eax, [esi + 0x110]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a8ede
mov ecx, dword [esp + 4]
mov byte [esp + 0x14], 1
mov eax, dword [ecx - 8]
test eax, eax
jne 0x465669
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004a619b
lea eax, [esp + 4]
lea ecx, [esi + 0x114]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.004a9398
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
call fcn.004a9169
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
mov dword [esi + 0x64], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004a9169
mov dword [esp + 0x14], 0xffffffff
call fcn.004c13ba
mov ecx, dword [eax + 4]
call fcn.004a8bfb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4d884b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.0044b8d0
xor edi, edi
mov eax, vtable.CBrush.0
mov dword [esp + 0x18], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], eax
lea ebx, [esi + 0x78]
mov byte [esp + 0x18], 8
mov ecx, ebx
call fcn.0042a490
mov dword [ebx], vtable.CPen.0
mov eax, 1
mov ecx, esi
mov byte [esp + 0x18], 9
mov dword [esi], 0x4edad8
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 4], eax
mov dword [esi + 8], 4
call fcn.00465c30
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x46bb80
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8dcb
push eax
mov dword fs:[0], esp
sub esp, 0x528
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x90]
test eax, eax
je 0x46bbb1
xor eax, eax
jmp 0x46bd8c
lea edi, [esi + 0x14]
push edi
call fcn.004ae0a3
mov ebx, dword [esp + 0x544]
lea ecx, [esp + 0xc]
push ebx
call fcn.004a91d7
push 0x50dc94
lea ecx, [esp + 0x10]
mov dword [esp + 0x540], 0
call fcn.004a1449
cmp eax, 0xffffffff
jne 0x46bca4
push 0x50da58
lea ecx, [esp + 0x10]
call fcn.004a1449
cmp eax, 0xffffffff
jne 0x46bca4
push 0x50df40
lea ecx, [esp + 0x10]
call fcn.004a1449
cmp eax, 0xffffffff
jne 0x46bca4
lea eax, [esp + 0x22c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jbe 0x46bca4
push 0
lea ecx, [esp + 0x130]
push 0
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x238]
push edx
push eax
call fcn.0043a1c3
lea ecx, [esp + 0x40]
lea edx, [esp + 0x344]
push ecx
push edx
push 0
push 0
push ebx
call fcn.0043a1c3
lea eax, [esp + 0x54]
lea ecx, [esp + 0x358]
push eax
lea edx, [esp + 0x158]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x464]
push eax
push ecx
call fcn.004a09b1
add esp, 0x3c
lea edx, [esp + 0x430]
lea ecx, [esp + 0xc]
push edx
call fcn.004a92f2
call fcn.004c13ba
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 8]
push 0x3010
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
mov dword [edi], eax
jne 0x46bce4
lea ecx, [esp + 0xc]
mov dword [esp + 0x53c], 0xffffffff
call fcn.004a9169
xor eax, eax
jmp 0x46bd8c
lea edx, [esp + 0x14]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x46bd1d
mov eax, dword [edi]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0xc]
mov dword [edi], 0
mov dword [esp + 0x53c], 0xffffffff
call fcn.004a9169
xor eax, eax
jmp 0x46bd8c
lea ecx, [esp + 0xc]
mov ebx, 1
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], ebx
call fcn.004a92a2
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test bl, al
je 0x46bd47
mov dword [esi + 0x8c], ebx
mov eax, dword [esp + 0x26]
and eax, 0xffff
cmp eax, 8
mov dword [esi + 0x9c], eax
jle 0x46bd68
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0046d820
mov ecx, esi
call fcn.0046c690
mov ecx, esi
call fcn.0046db30
lea ecx, [esp + 0xc]
mov dword [esp + 0x53c], 0xffffffff
call fcn.004a9169
mov eax, ebx
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x534
ret 4
Function at 0x46f6d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x514d10]
push esi
test eax, eax
je 0x46f79a
cmp dword [0x515468], 0xfffffffe
jne 0x46f782
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
je 0x46f79a
mov cl, byte [0x518de8]
mov al, 1
test al, cl
jne 0x46f725
mov dl, cl
mov ecx, 0x518dc8
or dl, al
mov byte [0x518de8], dl
call fcn.004162b0
push 0x46f7a0
call fcn.00438406
add esp, 4
push 0x518dd0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push 0x46f670
call fcn.004a0a42
add esp, 0xc
mov dword [0x518dec], eax
test eax, eax
jbe 0x46f76b
cmp eax, 0xffffffff
je 0x46f76b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push 0x518dd0
mov dword [0x515468], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
ret
push 0x518dd0
mov dword [0x518dec], 0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
ret
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
mov dword [0x515468], eax
jne 0x46f79a
mov dword [0x518dec], 0
pop esi
ret

Function at 0x470230
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, 0x60
jb 0x470258
cmp esi, 0x69
ja 0x470258
push 0x12
call edi
test ah, 0x80
je 0x47026b
mov eax, dword [0x518c64]
test eax, eax
je 0x4702c9
cmp esi, 0x41
jb 0x4702c9
cmp esi, 0x5a
ja 0x4702c9
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.004aa7c8
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
lea edx, [esp + 0xe]
push 1
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov cl, byte [esp + 0xa]
lea edx, [esp + 8]
push edx
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [esp + 8]
pop edi
pop esi
add esp, 0x104
ret
push 0x12
call edi
test ah, 0x80
je 0x4702dd
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push esi
call fcn.00441625
add esp, 4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x476920
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x476937
mov dword [eax], 1
mov eax, dword [0x518524]
test eax, eax
je 0x476979
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476979
mov edx, dword [0x518524]
mov ecx, dword [esp + 0x1c]
push 0
push ecx
mov eax, dword [edx + 0x1c]
push 0x100
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x476999
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8
mov eax, dword [0x518c54]
test eax, eax
jne 0x476ab0
mov ebx, dword [0x518ac4]
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x476a05
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
mov edx, dword [esi + 0x1c]
push edx
call fcn.004a57cc
test eax, eax
je 0x4769b4
mov ecx, esi
xor edi, edi
call fcn.004c70e0
test eax, eax
jle 0x4769b4
push edi
mov ecx, esi
call fcn.004b5540
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test eax, eax
jne 0x4769fd
mov ecx, esi
inc edi
call fcn.004c70e0
cmp edi, eax
jl 0x4769d9
jmp 0x4769b4
mov dword [esp + 0x14], 1
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
mov byte [esp + 0x17], 0
call esi
test ah, 0x80
je 0x476a1e
mov byte [esp + 0x13], 8
push 0x12
call esi
test ah, 0x80
je 0x476a2c
or byte [esp + 0x13], 0x10
push 0x10
call esi
test ah, 0x80
je 0x476a3a
or byte [esp + 0x13], 4
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test edi, edi
jne 0x476a7c
mov bl, byte [esp + 0x13]
mov eax, dword [ebp + 0x50]
or bl, 1
push 1
push eax
push ebx
push esi
call fcn.00470130
add esp, 0x10
test eax, eax
jne 0x476ab0
mov ecx, dword [ebp + 0x50]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc0]
push eax
push ebx
push esi
call fcn.00470130
add esp, 0x10
test eax, eax
jne 0x476ab0
cmp byte [esp + 0x13], 0x10
jne 0x476a9e
push esi
mov ecx, ebp
call fcn.00477780
test eax, eax
je 0x476a9e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8
test edi, edi
je 0x476ab0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x476ab0
mov dword [eax], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x47be70
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4d9c8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4ef088
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x14], 2
call dword [eax + 0x58]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47beb7
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
mov byte [esp + 0x14], 1
call fcn.00445990
lea ecx, [esi + 8]
mov byte [esp + 0x14], 0
call fcn.004a9169
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x14]
push ebp
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebp
jne 0x47f85f
mov eax, dword [esp + 0xc]
cmp eax, ebp
jbe 0x47f85f
mov ebp, eax
inc eax
push ebx
push eax
call fcn.004a8eaa
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x18]
push ebx
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x47f84a
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x47f84a
mov ecx, dword [esp + 0x20]
push ebx
call fcn.004a92f2
push ebx
call fcn.004a8ed3
add esp, 4
pop ebx
jmp 0x47f868
mov ecx, dword [esp + 0x20]
call fcn.004a90f4
push ebx
call fcn.004a8ed3
add esp, 4
pop ebx
jmp 0x47f868
mov ecx, dword [esp + 0x1c]
call fcn.004a90f4
mov edx, dword [esp + 0x10]
mov dword [edi + 4], esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebp
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
add esp, 8
ret 8

Function at 0x489e40
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db378
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov ecx, 0xc
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [esp + 0x54]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
or al, 1
cmp esi, 0x21
jb 0x489e94
cmp esi, 0x2f
ja 0x489e94
or eax, 0x1000000
push ebx
lea ecx, [esp + 0x10]
push 0x32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.004a91d7
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.004a966b
mov eax, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x489f12
mov edi, dword [sym.imp.USER32.dll_IsCharLowerA]
mov bl, byte [esi + eax]
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x489ef3
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x489ed5
jmp 0x489f12
movsx ecx, bl
push ecx
call fcn.00441625
mov byte [esp + 0x5c], al
add esp, 4
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.004a967d
mov esi, dword [esp + 0x54]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004a9581
mov eax, dword [esp + 0x5c]
pop ebx
test eax, eax
jne 0x489f34
push 0x2b
mov ecx, esi
call fcn.004a956c
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.004a9169
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc
Function at 0x490010
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x12c
push ebx
push ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, dword [esi + 0x78]
push edi
push edi
push 0xb
push eax
call ebx
mov ecx, dword [esi + 0x78]
push edi
push edi
push 0x184
push ecx
call ebx
mov dword [esi + 0xa0], 1
mov eax, dword [esi + 0xa8]
cmp eax, edi
je 0x490055
mov eax, dword [eax]
cmp eax, edi
jne 0x49004f
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa8], edi
call fcn.004a46ac
mov dword [esi + 0xb8], edi
mov edx, dword [esi + 0x98]
push 5
mov eax, dword [edx + 0xbc]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
cmp ebp, edi
je 0x4901fa
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4901e7
lea ecx, [esp + 0x3c]
push 0x100
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x3c]
push edx
push edi
push 0x180
push eax
call ebx
mov ecx, dword [esi + 0x78]
push ebp
push eax
push 0x19a
push ecx
call ebx
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
jne 0x4900f6
mov dword [esi + 0xa0], edi
jmp 0x4901e7
push edi
push ebp
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edx, eax
cmp edx, edi
jne 0x49010f
mov dword [esi + 0xa0], edi
jmp 0x4901e7
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2c
push eax
push 0
push 0xf060
push edx
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x49014e
test byte [esp + 0x1c], 3
je 0x4901e5
mov eax, dword [esi + 0xb4]
mov edi, dword [esi + 0xac]
test eax, eax
jne 0x49019d
mov ecx, dword [esi + 0xbc]
push 0xc
lea edx, [esi + 0xb8]
push ecx
push edx
call fcn.004a468c
mov ecx, dword [esi + 0xbc]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 0xc]
jl 0x49019d
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x490189
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax]
mov dword [esi + 0xb4], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov edi, dword [esi + 0xb0]
inc edi
mov dword [esi + 0xb0], edi
mov dword [eax + 8], 0
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x4901d9
mov dword [ecx], eax
jmp 0x4901df
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
xor edi, edi
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
cmp ebp, edi
jne 0x49009d
mov edx, dword [esi + 0x78]
push edi
push 1
push 0xb
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x492860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dbb0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push esi
push edi
mov esi, ecx
push eax
push 0x3f05
mov dword [esp + 0x10], esi
call fcn.004aa1f9
lea edi, [esi + 0x5c]
mov dword [esp + 0x2c], 0
mov ecx, edi
call fcn.004a5384
mov dword [edi], vtable.CStatic.0
lea edi, [esi + 0x98]
mov byte [esp + 0x2c], 1
mov ecx, edi
call fcn.004a5384
mov dword [edi], vtable.CStatic.0
lea edi, [esi + 0xd4]
mov byte [esp + 0x2c], 2
mov ecx, edi
call fcn.004a5384
mov dword [edi], vtable.CStatic.0
push esi
lea ecx, [esi + 0x110]
mov byte [esp + 0x30], 3
call fcn.00491440
mov ecx, dword [esp + 0x34]
lea edi, [esi + 0x1f4]
mov dword [esi + 0x1c4], ecx
mov ecx, edi
mov byte [esp + 0x2c], 4
call fcn.004c3ed0
mov dword [edi], 0x4f1808
lea ecx, [esi + 0x8c8]
mov byte [esp + 0x2c], 5
call fcn.0048aff0
mov eax, dword [esi + 0x1c4]
lea edx, [esp + 0xc]
mov dword [esi], method.CDialog.virtual_0
push edx
mov ecx, dword [eax + 4]
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c8], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
mov dword [esi + 0x1cc], ecx
jne 0x49295d
mov eax, dword [esp + 0x1e]
and eax, 0xffff
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1d0], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x49cd5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49cdb4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x515d3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49cda7
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49cdb6
xor eax, eax
pop esi
leave
ret 4
Function at 0x49fec0
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.004377e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49ff8b
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 0x49ff8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x49ff3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x49ff49
or bh, 8
and edi, 0x8000000
je 0x49ff64
mov eax, dword [0x51a3bc]
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 0x49ff8b
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 0x4a0360
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 0x4a038b
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 0x4a03af
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 0x4a03ca
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 0x4a619b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a61d3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a9610
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a95e8
jmp 0x4a61df
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4