joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4426c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x442714
mov eax, esi
call fcn.0042a74c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442714
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x442714
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x442853
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x442754
cmp eax, 0x108
ja 0x442754
mov eax, esi
call fcn.0042a74c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44284a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x442853
jmp 0x44284a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x442833
cmp eax, 0x20a
ja 0x442833
test byte [esi + 0x50], 0x80
jne 0x442786
sub eax, 0x203
je 0x442783
sub eax, 3
je 0x442783
sub eax, 3
jne 0x442786
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44279a
dec eax
je 0x4427af
dec eax
je 0x4427cc
dec eax
je 0x4427af
jmp 0x4427d3
mov ecx, ebx
mov eax, dword [0x45343c]
mov eax, dword [eax]
mov edx, esi
call fcn.00433d74
jmp 0x44284a
cmp byte [esi + 0x5d], 1
jne 0x4427c5
mov eax, esi
mov si, 0xffed
call fcn.00403420
jmp 0x442853
or word [esi + 0x54], 1
jmp 0x44284a
and word [esi + 0x54], 0xfffe
jmp 0x44284a
mov eax, dword [0x454b4c]
cmp byte [eax + 0x20], 0
je 0x44284a
mov eax, dword [0x454b4c]
cmp dword [eax + 0x1c], 0
je 0x44284a
mov eax, dword [ebx]
mov edx, dword [0x454b4c]
cmp eax, dword [edx + 0x1c]
jne 0x44284a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042a690
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403420
jmp 0x442853
cmp eax, 0xb00b
jne 0x44284a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00441030
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445cd4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x445cf0
cmp dword [esi + 4], 0
je 0x445d1d
test byte [ebx + 0x55], 1
jne 0x445d0f
mov eax, ebx
call fcn.004448e0
test eax, eax
jne 0x445d0f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x445e2d
mov edx, esi
mov eax, ebx
call fcn.004457f8
jmp 0x445e2d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x445e26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447b44
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004425fc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445cd4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447b44
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445e2d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c23c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45359c]
cmp byte [eax + 0xc], 0
je 0x44c3a9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c3a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x454ba0], 0
jne 0x44c290
push 0x44c3b0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c3b8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454ba0], eax
cmp dword [0x452d24], 0
jne 0x44c38b
push 0x44c3c8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x452d24], eax
cmp dword [0x452d24], 0
je 0x44c38b
push 0x44c3d4
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454ba4], eax
push 0x44c3e4
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454ba8], eax
push 0x44c3f8
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bac], eax
push 0x44c410
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bb0], eax
push 0x44c428
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bb4], eax
push 0x44c43c
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bb8], eax
push 0x44c454
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bbc], eax
push 0x44c46c
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bc0], eax
push 0x44c488
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bc4], eax
push 0x44c494
mov eax, dword [0x452d24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454bc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c3a9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x451280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040440c
mov eax, dword [ebp - 8]
call fcn.0040440c
xor eax, eax
push ebp
push 0x451312
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0x451320
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004082d4
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004042dc
mov eax, dword [ebp - 0xc]
call fcn.0040441c
push eax
push 0x451324
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451319
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403f80
ret
Function at 0x4655e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x46560b
push 0x18b
push 0x10137810
call fcn.004b0a6e
test eax, eax
je 0x46560b
int3
xor ecx, ecx
test ecx, ecx
jne 0x4655ee
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.0040d02e
add esp, 0xc
call fcn.004c44c3
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [0x10145578]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [0x10145578]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x465663
cmp dword [ebp - 8], 0
jne 0x46569c
push 0x10137890
push 0x101378cc
call fcn.004326d3
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x465685
mov edx, dword [ebp - 0xc]
push edx
call dword [0x101453e0]
cmp dword [ebp - 8], 0
je 0x465695
mov eax, dword [ebp - 8]
push eax
call dword [0x101453e0]
xor eax, eax
jmp 0x4657d1
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x10061220
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00414aee
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x28], 0
jne 0x4656d9
xor eax, eax
jmp 0x4657d1
mov ecx, dword [ebp - 0x20]
call fcn.004b92ea
cmp eax, 0xffffffff
jne 0x4656fa
push 0x1a5
push 0x10137810
call fcn.004b0a6e
test eax, eax
je 0x4656fa
int3
xor eax, eax
test eax, eax
jne 0x4656d9
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x101453dc]
test eax, eax
je 0x465724
push 0x1a6
push 0x10137810
call fcn.004b0a6e
test eax, eax
je 0x465724
int3
xor edx, edx
test edx, edx
jne 0x465700
mov eax, dword [ebp - 0xc]
push eax
call dword [0x101453e0]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x46576a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x10145598]
cmp eax, 0xffffffff
jne 0x465764
push 0x1ab
push 0x10137810
call fcn.004b0a6e
test eax, eax
je 0x465764
int3
xor ecx, ecx
test ecx, ecx
jne 0x46573e
cmp dword [ebp - 4], 0
je 0x4657c2
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101453dc]
test eax, eax
je 0x465797
push 0x1b0
push 0x10137810
call fcn.004b0a6e
test eax, eax
je 0x465797
int3
xor ecx, ecx
test ecx, ecx
jne 0x465770
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x101453e0]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
push edx
call dword [0x101453e0]
xor eax, eax
jmp 0x4657d1
mov eax, dword [ebp - 8]
push eax
call dword [0x1014557c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
nop
nop
mov dword [ebp - 4], 0
xor ebx, ebx
nop
xor ecx, eax
nop
mov ebx, dword fs:[0x30]
nop
nop
mov ebx, dword [ebx + 0xc]
nop
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.0041e1a0
mov esp, ebp
pop ebp
ret

Function at 0x403174
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 0x403273
call fcn.004ded52
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 0x40321b
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 0x4031ec
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x5d70b0
call fcn.00451a25
add esp, 8
xor eax, eax
jmp 0x4032bc
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 0x403213
push 0x146
push str.occmgr.cpp
call fcn.004d5a20
test eax, eax
je 0x403213
int3
xor edx, edx
test edx, edx
jne 0x4031f9
jmp 0x403273
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x40323e
push 0x14e
push str.occmgr.cpp
call fcn.004d5a20
test eax, eax
je 0x40323e
int3
xor edx, edx
test edx, edx
jne 0x403224
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x403273
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x403268
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x5d70f0
call fcn.00451a25
add esp, 8
jmp 0x403273
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x403244
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x40329a
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 0x4032b9
cmp dword [ebp - 8], 0
je 0x4032b9
mov eax, dword [ebp - 8]
push eax
call fcn.00402aa0
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 0x440920
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.00422820
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4409eb
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 0x4409eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44099e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4409a9
or bh, 8
and edi, 0x8000000
je 0x4409c4
mov eax, dword [0x5ed67c]
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 0x4409eb
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 0x440dc0
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 0x440deb
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 0x440e0f
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 0x440e2a
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 0x451ec3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5373f9
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.004ea060
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 [0x5eb5e4], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5eb5e0], eax
cmp dword [0x5eb5f0], 0
je 0x451f4c
push 0x77
push 0x5d9878
call fcn.004d5a20
test eax, eax
je 0x451f4c
int3
xor ecx, ecx
test ecx, ecx
jne 0x451f32
push 0x451cf4
call fcn.004208a0
add esp, 4
mov dword [0x5eb5f0], eax
cmp dword [0x5eb5f4], 0
je 0x451f7e
push 0x7a
push 0x5d9888
call fcn.004d5a20
test eax, eax
je 0x451f7e
int3
xor edx, edx
test edx, edx
jne 0x451f64
push 0x451e66
call fcn.00421e20
add esp, 4
mov dword [0x5eb5f4], eax
push 4
push 2
call fcn.00421d40
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 0x47abc5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x47ac30
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x47ac30
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 0x47ac30
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x47ac30
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x47ac30
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x47ac30
mov dword [ebp - 4], 1
jmp 0x47ac37
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x47cc2d
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.004ded52
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 0x47cc86
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 0x47cca0
push 0xeb
push str.dlgcore.cpp
call fcn.004d5a20
test eax, eax
je 0x47cca0
int3
xor edx, edx
test edx, edx
jne 0x47cc86
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.0047ccfb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402aa0
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 0x47da4e
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 0x47daa1
call fcn.004ded52
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 0x47dab4
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 0x47db48
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 0x47daff
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 0x47db15
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 0x47db3b
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x47db3b
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x47db3b
mov dword [ebp - 0x28], 1
jmp 0x47db42
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 0x47db5a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x47db63
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402aa0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x47db76
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