joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dd40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov eax, dword [esp + 0x21c]
mov edx, dword [esp + 0x220]
mov dword [ecx + 0x154], eax
mov eax, dword [esp + 0x224]
mov dword [ecx + 0x158], edx
mov edx, dword [esp + 0x228]
mov dword [ecx + 0x168], eax
mov eax, dword [esp + 0x22c]
mov dword [ecx + 0x16c], edx
mov edx, dword [esp + 0x230]
push ebx
mov ebx, dword [esp + 0x21c]
mov dword [ecx + 0x170], eax
mov eax, dword [esp + 0x238]
mov dword [ecx + 0x174], edx
mov edx, dword [esp + 0x23c]
push ebp
mov ebp, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x220]
mov dword [ecx + 0x150], eax
mov eax, dword [esp + 0x24c]
mov dword [ecx + 0x15c], edx
mov edx, dword [esp + 0x250]
mov dword [ecx + 0x160], esi
mov dword [ecx + 0x164], edi
mov dword [ecx + 0x180], ebp
mov dword [ecx + 0x184], ebx
mov dword [ecx + 0x178], eax
mov dword [ecx + 0x17c], edx
mov dword [ecx + 0x98], 1
lea ecx, [esp + 0x1c]
call fcn.0040c7b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x214], 0
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x218], 1
call fcn.0040cce0
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x14]
push eax
call fcn.0042f26e
lea ecx, [esp + 0x10c]
push str.VolSpkrs__
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x10c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push eax
push str.SoftwareAnalog_DevicesSMax4Settings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42df68
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x24c]
mov eax, dword [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x248]
push edx
mov edx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x248]
push edx
mov edx, dword [esp + 0x248]
push eax
mov eax, dword [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x248]
push edx
push eax
push ecx
push ebx
push ebp
push edi
push esi
lea edx, [esp + 0x48]
push str._i__i__i__i__i__i__i__i__i__i__i__i__i__i
push edx
mov byte [esp + 0x254], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x50]
add esp, 0x40
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x118]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x214], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x214], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x214], 0xffffffff
call fcn.0040c870
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x208
ret 0x38
Function at 0x42dfb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
mov eax, dword [esp + 0x208]
push esi
lea esi, [ecx + 0x13c]
lea ecx, [esp + 0xc]
mov dword [esi], eax
call fcn.0040c7b0
lea ecx, [esp + 4]
mov dword [esp + 0x204], 0
call sub.MFC42.DLL_CString::CString_3
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x208], 1
call fcn.0040cce0
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 8]
call fcn.0042f26e
lea edx, [esp + 0xfc]
push str.VolMic__
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push ecx
push str.SoftwareAnalog_DevicesSMax4Settings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42e089
cmp dword [esi], 0xffffffff
je 0x42e07e
mov eax, dword [esp + 8]
push 4
push esi
push 4
lea edx, [esp + 0x108]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x204], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x204], 0xffffffff
call fcn.0040c870
mov ecx, dword [esp + 0x1fc]
pop esi
mov dword fs:[0], ecx
add esp, 0x204
ret 4

Function at 0x42efa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x434480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x435b54
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
push eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x5c]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
sub eax, ecx
sub eax, edx
mov esi, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, 3
add edx, esi
add ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
sub edx, esi
push 0
sub ecx, eax
push edx
push ecx
push esi
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x50], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x12be0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 0x20], ebp
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], 0x19000
mov dword [ebp - 0x2c], 0x13174
mov eax, dword fs:[0]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword fs:[0], eax
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x18304], eax
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x1830c], eax
call sub.KERNEL32.dll_GetVersion
mov dword [0x200dc], eax
mov al, ah
and eax, 0xff
mov dword [0x200e8], eax
mov eax, dword [0x200dc]
and eax, 0xff
mov dword [0x200e4], eax
shl eax, 8
add eax, dword [0x200e8]
mov dword [0x200e0], eax
shr dword [0x200dc], 0x10
call fcn.00013850
call fcn.00013760
call fcn.00013550
call fcn.00013480
call fcn.00013030
mov dword [ebp - 0x24], 0
mov esi, dword [0x18304]
mov al, byte [esi]
cmp al, 0x22
jne 0x12ca6
mov al, byte [ebp - 0x14]
inc esi
mov al, byte [esi]
or al, al
je 0x12c9e
cmp al, 0x22
jne 0x12c93
cmp byte [esi], 0x22
jne 0x12cb0
inc esi
jmp 0x12cb0
cmp al, 0x20
jbe 0x12cb0
inc esi
cmp byte [esi], 0x20
ja 0x12caa
cmp byte [esi], 0
je 0x12cc0
cmp byte [esi], 0x20
ja 0x12cc0
inc esi
cmp byte [esi], 0
jne 0x12cb5
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x74]
push eax
call sub.KERNEL32.dll_GetStartupInfoA
test byte [ebp - 0x48], 1
mov eax, 0xa
je 0x12ce3
mov eax, dword [ebp - 0x44]
and eax, 0xffff
push eax
push esi
push 0
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call fcn.00012540
push eax
call fcn.00013060
jmp 0x12d2c
add esp, 4
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x12e00
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.dll_MoveFileA
or eax, eax
mov eax, 0
jne 0x12e1d
call sub.KERNEL32.dll_GetLastError
or eax, eax
je 0x12e30
push eax
call fcn.00014530
add esp, 4
mov eax, 0xffffffff
ret
sub eax, eax
ret

Function at 0x12e40
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_DeleteFileA
or eax, eax
mov eax, 0
jne 0x12e58
call sub.KERNEL32.dll_GetLastError
or eax, eax
je 0x12e6b
push eax
call fcn.00014530
add esp, 4
mov eax, 0xffffffff
ret
sub eax, eax
ret
Function at 0x14d80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
push edi
push ebp
mov eax, dword [esp + 0x424]
cmp eax, dword [0x20188]
jb 0x14dc0
mov dword [0x200d0], 9
mov dword [0x200d4], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov dword [esp + 0x14], 0
sub ebx, ebx
mov ebp, dword [esp + 0x42c]
cmp ebp, ebx
jne 0x14de2
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x20190], 0x20
je 0x14dff
push 2
push 0
push eax
call fcn.00014fb0
add esp, 0xc
mov eax, dword [esp + 0x424]
test byte [eax + 0x20190], 0x80
je 0x14ea1
mov esi, dword [esp + 0x428]
mov dword [esp + 0x18], 0
mov eax, esi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x14ee9
lea edi, [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x428]
cmp eax, ebp
jae 0x14e62
mov al, byte [esi]
inc esi
cmp al, 0xa
jne 0x14e50
inc ebx
mov byte [edi], 0xd
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x1c]
sub eax, ecx
cmp eax, 0x400
jl 0x14e37
lea eax, [esp + 0x1c]
sub edi, eax
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x24]
push edi
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x201d0]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x14ee0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], edi
jge 0x14e22
jmp 0x14ee9
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x430]
push ebp
push eax
mov eax, dword [esp + 0x434]
mov eax, dword [eax*4 + 0x201d0]
push eax
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x14ee0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x14ee9
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0
jne 0x14f94
cmp dword [esp + 0x18], 0
je 0x14f42
cmp dword [esp + 0x18], 5
jne 0x14f25
mov dword [0x200d0], 9
mov eax, dword [esp + 0x18]
mov dword [0x200d4], eax
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.00014530
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
test byte [eax + 0x20190], 0x40
je 0x14f70
mov eax, dword [esp + 0x428]
cmp byte [eax], 0x1a
jne 0x14f70
sub eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov dword [0x200d0], 0x1c
mov dword [0x200d4], 0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x14]
sub eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x15d70
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00016210
push ebx
push esi
push edi
push ebp
sub ebx, ebx
mov esi, dword [esp + 0x1018]
cmp dword [0x20188], esi
ja 0x15da9
mov dword [0x200d0], 9
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
push 1
push 0
push esi
call fcn.00014fb0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x15ea9
push 2
push 0
push esi
call fcn.00014fb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x15ea9
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
or ebp, ebp
jle 0x15e51
lea edi, [esp + 0x14]
sub eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
push 0x8000
push esi
call fcn.00016170
add esp, 8
mov edi, eax
mov eax, ebp
cmp eax, 0x1000
jl 0x15e13
mov eax, 0x1000
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00014d80
add esp, 0xc
cmp eax, 0xffffffff
je 0x15e30
sub ebp, eax
or ebp, ebp
jg 0x15e05
jmp 0x15e45
cmp dword [0x200d4], 5
jne 0x15e43
mov dword [0x200d0], 0xd
mov ebx, eax
push edi
push esi
call fcn.00016170
add esp, 8
jmp 0x15e8c
jge 0x15e8c
push 0
push ecx
push esi
call fcn.00014fb0
add esp, 0xc
push esi
call fcn.00015270
add esp, 4
push eax
call sub.KERNEL32.dll_SetEndOfFile
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x15e8c
mov dword [0x200d0], 0xd
call sub.KERNEL32.dll_GetLastError
mov dword [0x200d4], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00014fb0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4050b4
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 0x4051b3
call fcn.004e0c72
mov dword [ebp - 0x10], eax
push pe_nt_image_headers32
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 0x40515b
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 0x40512c
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x5da030
call fcn.00455595
add esp, 8
xor eax, eax
jmp 0x4051fc
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 0x405153
push 0x146
push str.occmgr.cpp
call fcn.004d7940
test eax, eax
je 0x405153
int3
xor edx, edx
test edx, edx
jne 0x405139
jmp 0x4051b3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x40517e
push 0x14e
push str.occmgr.cpp
call fcn.004d7940
test eax, eax
je 0x40517e
int3
xor edx, edx
test edx, edx
jne 0x405164
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x4051b3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x4051a8
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x5da070
call fcn.00455595
add esp, 8
jmp 0x4051b3
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x405184
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4051da
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 0x4051f9
cmp dword [ebp - 8], 0
je 0x4051f9
mov eax, dword [ebp - 8]
push eax
call fcn.004049e0
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 0x442860
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.004251f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44292b
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 0x44292b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4428de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4428e9
or bh, 8
and edi, 0x8000000
je 0x442904
mov eax, dword [0x5f05dc]
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 0x44292b
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 0x442d00
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 0x442d2b
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 0x442d4f
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 0x442d6a
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 0x455a33
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539929
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.004ebf80
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 [0x5ee554], eax
push str.AFX.INI
push 0
push str.TraceFlags
push str.Diagnostics
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5ee550], eax
cmp dword [0x5ee560], 0
je 0x455abc
push 0x77
push 0x5dcbf0
call fcn.004d7940
test eax, eax
je 0x455abc
int3
xor ecx, ecx
test ecx, ecx
jne 0x455aa2
push 0x455864
call fcn.00422aa0
add esp, 4
mov dword [0x5ee560], eax
cmp dword [0x5ee564], 0
je 0x455aee
push 0x7a
push 0x5dcc00
call fcn.004d7940
test eax, eax
je 0x455aee
int3
xor edx, edx
test edx, edx
jne 0x455ad4
push 0x4559d6
call fcn.00425610
add esp, 4
mov dword [0x5ee564], eax
push 4
push 2
call fcn.00425530
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 0x47cac5
Capabilities:
Log keystrokes via polling

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

Function at 0x47eb2d
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.004e0c72
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 0x47eb86
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 0x47eba0
push 0xeb
push str.dlgcore.cpp
call fcn.004d7940
test eax, eax
je 0x47eba0
int3
xor edx, edx
test edx, edx
jne 0x47eb86
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.0047ebfb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004049e0
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