joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d0c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4db056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x530b30]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004ca6ae
push str..
lea ecx, [esp + 0x10]
call fcn.004ca901
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x49d163
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004ca571
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004ca571
xor eax, eax
jmp 0x49d2a8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x529444
push edx
call fcn.004b8f54
add esp, 8
test eax, eax
je 0x49d259
lea eax, [esp + 0x48]
push 0x529440
push eax
call fcn.004b8f54
add esp, 8
test eax, eax
je 0x49d259
test ebp, ebp
jne 0x49d1c5
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004b9003
add esp, 8
test eax, eax
je 0x49d259
push esi
lea ecx, [esp + 0x14]
call fcn.004ca6ae
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004ca928
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004ca901
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x49d205
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x49d227
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0049d0c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x49d259
test edi, edi
je 0x49d24e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004b9003
add esp, 8
test eax, eax
jne 0x49d24e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0049d2d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49d173
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004ca571
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004ca571
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x49d2d0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db06b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004b9770
mov eax, dword [0x530b30]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004ca6ae
push 0x5c
lea ecx, [esp + 8]
call fcn.004ca928
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004ca901
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49d376
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004ca571
xor eax, eax
jmp 0x49d3f3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x49d3d1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x49d3c3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x49d39d
jmp 0x49d3d1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004ca571
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x49f770
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5295c4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x49f783
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x49f7c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x52966c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x49f7f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49f7fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49f7eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x49f818
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49f81c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49f80d
xor ecx, ecx
mov eax, 0x5295d4
xor ebx, ebx
mov bl, byte [ecx + 0x52967c]
cmp byte [esp + ebx + 0x14], 0
je 0x49f847
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x529694]
cmp byte [esp + ebx + 0x14], 0
je 0x49f85e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49f82e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x49f7b7
lea edx, [esp + 0x84]
push edx
call fcn.0049f8a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a3c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x563344]
xor edx, edx
cmp eax, edx
jne 0x4a3c76
xor eax, eax
mov byte [eax + 0x563244], al
inc eax
cmp eax, 0x100
jl 0x4a3c5e
mov dword [0x563344], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x563244
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a3d07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a3cda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a3ca8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a3d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a3dd3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a3dba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4db28e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004ab070
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x50b1ec
call fcn.004ca2b2
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4aa7e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ca2b2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4aa7dc
push 0
mov ecx, eax
call fcn.004a1880
mov dword [esi + 0xc], eax
jmp 0x4aa7e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4aa7e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4cc951
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cc989
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.004ca9cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ca9a4
jmp 0x4cc995
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce148
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ce18a
call fcn.004d4381
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce18a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce181
xor eax, eax
jmp 0x4ce192
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce198
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d48b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d48df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d48fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4817
jmp 0x4d48fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d48fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4817
test edi, edi
mov eax, edi
jne 0x4d48e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403db0
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x403db0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x404120
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x42ef2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x844
mov eax, dword [0x43d324]
xor eax, dword [esp + 0x850]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0x844], eax
push ebp
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push 0x410
lea eax, [esp + 0x43c]
push eax
push ebx
mov dword [esp + 0x860], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x410
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, ebx
je 0x4041fd
cmp eax, 0x410
jae 0x4041fd
mov eax, dword [esp + 8]
lea ecx, [esp + 0x28]
cmp eax, ecx
jbe 0x4041fd
dec eax
mov dword [esp + 8], eax
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041c3
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402280
mov eax, 0x431180
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041e3
sub eax, edx
push eax
push 0x431180
lea ecx, [esp + 0x14]
call fcn.00404010
jmp 0x40421d
mov eax, 0x43117c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404205
sub eax, edx
push eax
push 0x43117c
lea ecx, [esp + 0x14]
call fcn.00402280
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x43c264
call fcn.004021d0
mov eax, dword [0x43c278]
cmp eax, ebx
jbe 0x404278
mov edx, dword [0x43c27c]
cmp edx, 0x10
mov ebp, dword [0x43c268]
mov ecx, ebp
jae 0x404250
mov ecx, 0x43c268
cmp byte [ecx + eax - 1], 0x5c
je 0x40426a
cmp edx, 0x10
mov ecx, ebp
jae 0x404263
mov ecx, 0x43c268
cmp byte [ecx + eax - 1], 0x2f
jne 0x404278
push 1
dec eax
push eax
mov ecx, 0x43c264
call fcn.00401e50
mov eax, dword [0x43c27c]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [0x43c268]
jae 0x404290
mov eax, 0x43c268
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004021d0
cmp dword [esp + 0x24], ebp
pop ebp
pop ebx
jb 0x4042c8
mov edx, dword [esp + 8]
push edx
call fcn.0042600d
add esp, 4
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x840]
xor ecx, dword [esp + 0x850]
mov eax, esi
add esp, 0x850
jmp fcn.00412ec1

Function at 0x405390
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
mov dword [esi + 0x1c], 0
call edi
test ah, ah
jns 0x4053c5
or dword [esi + 0x1c], 1
push 2
call edi
test ah, ah
jns 0x4053d1
or dword [esi + 0x1c], 2
push 4
call edi
test ah, ah
jns 0x4053dd
or dword [esi + 0x1c], 4
pop edi
pop esi
ret
Function at 0x408730
Capabilities:
Get keyboard layout

Disassembly:
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
movzx eax, di
cmp eax, 0x412
jg 0x408786
je 0x40877a
sub eax, 0x404
cmp eax, 0xd
ja case.0x40875b.1029
movzx eax, byte [eax + 0x408874]
jmp dword [eax*4 + 0x408864]
mov dword [esi + 0x524], 0x3a4
jmp 0x4087cd
mov dword [esi + 0x524], 0x3b6
jmp 0x4087cd
mov dword [esi + 0x524], 0x3b5
jmp 0x4087cd
cmp eax, 0x804
jg 0x4087a7
je 0x40879b
sub eax, 0x413
je case.0x40875b.1031
sub eax, 0xa
jmp 0x4087b3
mov dword [esi + 0x524], 0x3a8
jmp 0x4087cd
cmp eax, 0x809
je case.0x40875b.1031
cmp eax, 0xc0a
je case.0x40875b.1031
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esi + 0x524], eax
jmp 0x4087cd
mov dword [esi + 0x524], 0x4e4
push edi
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x408837
mov eax, dword [esi + 0x520]
test eax, eax
jne 0x4087f3
mov ecx, dword [esi + 0x51c]
push ecx
call sub.IMM32.dll_ImmGetContext
mov dword [esi + 0x520], eax
push 4
push edi
call sub.IMM32.dll_ImmGetProperty
mov edx, dword [esi + 0x520]
push edx
mov dword [esi + 0x528], eax
call sub.IMM32.dll_ImmGetOpenStatus
mov edx, dword [esi + 0x520]
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x536], al
lea eax, [esi + 0x530]
push eax
lea ecx, [esi + 0x52c]
push ecx
push edx
call sub.IMM32.dll_ImmGetConversionStatus
pop edi
pop esi
ret
mov eax, dword [esi + 0x520]
test eax, eax
je 0x40884e
push eax
mov eax, dword [esi + 0x51c]
push eax
call sub.IMM32.dll_ImmReleaseContext
pop edi
mov dword [esi + 0x520], 0
mov byte [esi + 0x536], 0
pop esi
ret

Function at 0x408cb0
Capabilities:
Log keystrokes via polling

Disassembly:
add ecx, 0x414
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
ret

Function at 0x409824
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409839
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40984b
xor eax, eax
jmp 0x40987d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40986f
cmp esi, eax
jae 0x409847
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409861
cmp esi, eax
jae 0x409847
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40ae31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40ae84
call fcn.0042b9e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40ae84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ae7a
xor eax, eax
jmp 0x40af99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40aeb3
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40aeb3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40af96
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x40aee2
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x40af96
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40af20
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40af20
test edi, edi
mov dword [ebp - 8], edi
je 0x40af1a
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x40af86
and dword [ebp + 0x10], 0
jmp 0x40af86
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40af86
push 0xc
call fcn.00425fe2
mov esi, eax
test esi, esi
pop ecx
je 0x40af65
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40af67
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40af81
push dword [ebp - 8]
call fcn.00421172
jmp 0x40af86
call fcn.00421149
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x40aeee
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41402a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4347d8
call fcn.00415ed8
mov edi, 0x94
mov eax, edi
call fcn.00413000
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x441ac0], ecx
mov eax, dword [esi + 4]
mov dword [0x441acc], eax
mov edx, dword [esi + 8]
mov dword [0x441ad0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x441ac4], esi
cmp ecx, 2
je 0x41408a
or esi, 0x8000
mov dword [0x441ac4], esi
shl eax, 8
add eax, edx
mov dword [0x441ac8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4140c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4140c5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4140dd
cmp eax, 0x20b
je 0x4140ca
mov dword [ebp - 0x1c], esi
jmp 0x4140f1
cmp dword [ecx + 0x84], 0xe
jbe 0x4140c5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4140eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4140c5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004160a1
pop ecx
test eax, eax
jne 0x414105
push 0x1c
call fcn.00414006
pop ecx
call fcn.0041758c
test eax, eax
jne 0x414116
push 0x10
call fcn.00414006
pop ecx
call fcn.00419bbc
mov dword [ebp - 4], esi
call fcn.004199be
test eax, eax
jge 0x41412f
push 0x1b
call fcn.00413fe1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x443330], eax
call fcn.0041989c
mov dword [0x441ab0], eax
call fcn.004197fa
test eax, eax
jge 0x414155
push 8
call fcn.00413fe1
pop ecx
call fcn.004195c7
test eax, eax
jge 0x414166
push 9
call fcn.00413fe1
pop ecx
call fcn.004149d6
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x414179
push eax
call fcn.00413fe1
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041955e
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41419a
movzx eax, word [ebp - 0x34]
jmp 0x41419d
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00420b84
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4141bb
push edi
call fcn.00414b0e
call fcn.00414b30
jmp 0x4141ed
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00415f13
ret
Function at 0x414a3b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00416056
xor esi, esi
inc esi
cmp dword [0x441b00], esi
pop ecx
jne 0x414a63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x441afc], esi
mov byte [0x441af8], al
jne 0x414ac9
mov ecx, dword [0x443328]
test ecx, ecx
je 0x414aaa
mov eax, dword [0x443324]
sub eax, 4
cmp eax, ecx
jmp 0x414aa3
mov eax, dword [eax]
test eax, eax
je 0x414a95
call eax
mov eax, dword [0x443324]
sub eax, 4
cmp eax, dword [0x443328]
mov dword [0x443324], eax
jae 0x414a8d
mov eax, 0x43c090
mov esi, 0x43c098
cmp eax, esi
mov edi, eax
jae 0x414ac9
mov eax, dword [edi]
test eax, eax
je 0x414ac2
call eax
add edi, 4
cmp edi, esi
jb 0x414aba
mov eax, 0x43c09c
mov esi, 0x43c0a4
cmp eax, esi
mov edi, eax
jae 0x414ae8
mov eax, dword [edi]
test eax, eax
je 0x414ae1
call eax
add edi, 4
cmp edi, esi
jb 0x414ad9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x414af9
push 8
call fcn.00415fc2
jmp 0x414b0b
push dword [ebp + 8]
mov dword [0x441b00], 1
call fcn.00414994
pop ecx
pop ebp
ret