joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424d50
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push edi
push 1
push 0x250
mov esi, ecx
call fcn.0046cff4
mov edi, eax
add esp, 8
test edi, edi
je 0x424e29
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424e1f
test byte [edi], 0x10
jne 0x424e08
lea esi, [edi + 0x2c]
mov ecx, 0x48af48
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424dba
test dx, dx
je 0x424db6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424dba
add eax, 4
add ecx, 4
test dx, dx
jne 0x424d94
xor eax, eax
jmp 0x424dbf
sbb eax, eax
or eax, 1
test eax, eax
je 0x424e08
mov eax, 0x48af40
mov ecx, esi
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x424df6
test dx, dx
je 0x424df2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x424df6
add ecx, 4
add eax, 4
test dx, dx
jne 0x424dd0
xor eax, eax
jmp 0x424dfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x424e08
push esi
call fcn.0046d3c8
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424d81
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0046c837
add esp, 4
pop ebx
pop edi
pop esi
ret
Function at 0x42b440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4ac9b4]
push ebx
mov eax, dword [eax + 0x1278]
push esi
mov esi, dword [eax + ecx*8]
push edi
lea edi, [eax + ecx*8]
mov ebx, edx
mov dword [ebp - 4], edi
test esi, esi
je 0x42b648
cmp ebx, 1
jne 0x42b48f
cmp word [esi + 0x1a], 0
jne 0x42b48f
push esi
call fcn.0046c837
add esp, 4
mov dword [edi], 0
mov eax, dword [0x4ac9b4]
pop edi
dec dword [eax + 0x3c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042d960
mov ecx, esi
call fcn.0042cbf0
mov ecx, esi
call fcn.00402550
mov eax, dword [esi + 0x78]
test al, 0x40
je 0x42b4ba
test al, al
jns 0x42b4ba
mov eax, dword [0x4ac9b4]
dec dword [eax + 0x518]
cmp dword [0x4a9be0], 0xffff
mov edi, 0x4a9be0
je 0x42b4ec
jmp 0x42b4d0
mov eax, dword [edi]
test dword [esi + 0x78], eax
je 0x42b4e1
mov eax, dword [edi + 4]
push ebx
push esi
call eax
add esp, 8
add edi, 8
cmp dword [edi], 0xffff
jne 0x42b4d0
movzx eax, word [esi + 0x18]
cmp ax, 0x20
jge 0x42b50b
cwde
mov eax, dword [eax*4 + 0x4a9c18]
test eax, eax
je 0x42b52e
push ebx
push esi
call eax
add esp, 8
jmp 0x42b52e
movsx ecx, ax
mov eax, dword [0x4ac9b4]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x42b52e
push ebx
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x42b55b
mov edi, dword [esi + 0xbc]
cmp word [edi + esi + 0x18], 0xd
jne 0x42b55b
mov ecx, dword [edi + esi + 0x1c]
test ecx, ecx
je 0x42b553
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + esi + 0x1c], 0
mov ecx, esi
call fcn.0042c2f0
mov eax, dword [0x4ac9b4]
test byte [eax + 0x28], 0x20
je 0x42b58f
movsx edx, word [esi + 0x12]
mov ecx, dword [0x4ac9ac]
cmp edx, dword [ecx + 0x194]
jge 0x42b58f
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, 0x200
jne 0x42b5a2
mov edi, 1
jmp 0x42b5fc
test ebx, ebx
je 0x42b5b4
mov ecx, esi
call fcn.00401560
mov edi, 1
jmp 0x42b5fc
test eax, 0x1000
jne 0x42b5d9
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x42b5d2
test byte [eax + esi + 0x20], 4
je 0x42b5fc
mov edi, 1
jmp 0x42b5fc
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x42b5ec
cmp ax, 0xffff
jne 0x42b5fc
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.00401010
xor eax, eax
mov word [esi + 0x1a], ax
test edi, edi
je 0x42b63e
test dword [esi + 0x78], 0x1000
je 0x42b616
mov ecx, esi
call fcn.004015c0
push esi
call fcn.0046c837
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx], 0
mov eax, dword [0x4ac9b4]
pop edi
dec dword [eax + 0x3c]
pop esi
mov dword [ecx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x4ac9b4]
push ebx
mov al, byte [ecx + 0x1a7]
test al, al
jne 0x42b9ec
mov ecx, 1
call fcn.00429370
mov eax, dword [0x4ac9b4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_59]
call fcn.004010a0
call fcn.0042c150
call fcn.004011c0
mov eax, dword [0x4ac9b4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_61]
call fcn.00401210
mov eax, dword [0x4ac9b4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_60]
call fcn.00429470
mov eax, dword [0x4ac9b4]
cmp byte [eax + 0x4c8], 0
je 0x42b9e3
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_62]
pop ebx
ret
mov byte [eax + 0x4c8], 1
pop ebx
ret
mov byte [ecx + 0x1a7], 0
test al, 4
je 0x42ba44
mov edx, dword [0x4ac9b0]
mov ecx, dword [0x4ac9b4]
movsx ebx, al
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x190]
jne 0x42ba1c
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x194]
je 0x42ba27
call fcn.004384f0
mov edx, dword [0x4ac9b0]
mov ecx, 6
test bl, 8
jne 0x42ba3d
test byte [edx + 0xc], 0x20
mov eax, 0x16
cmovne ecx, eax
call fcn.00437070
jmp 0x42ba7b
test al, 1
je 0x42baa1
mov ecx, dword [0x4ac9b0]
mov edx, dword [0x4ac9b4]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [edx + 0x190]
jne 0x42ba76
mov eax, dword [ecx + 0x20]
cmp eax, dword [edx + 0x194]
jne 0x42ba76
mov ecx, 6
call fcn.00437070
jmp 0x42ba7b
call fcn.004385d0
mov ecx, dword [0x4ac9b4]
mov eax, dword [ecx + 0xb0]
mov dword [ecx + 0x190], eax
mov ecx, dword [0x4ac9b4]
mov eax, dword [ecx + 0xb4]
mov dword [ecx + 0x194], eax
pop ebx
ret
mov ecx, 0x86
pop ebx
jmp fcn.00437070
Function at 0x42c850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a6ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x4ac9b4]
add edi, 0x2c
mov dword [ebp - 0x44], edi
mov dword [edi], 0
mov ecx, dword [0x4ac9b4]
cmp eax, dword [ecx + 0xc]
je 0x42c88d
cmp eax, dword [ecx + 0x10]
jne 0x42c9a1
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edx
lea esp, [esp]
mov eax, dword [0x4ac9ac]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
test eax, eax
jle 0x42c986
cmp eax, 4
jle 0x42c8f2
cmp eax, 5
jne 0x42c986
lea esi, [ecx + 0x16]
add esi, edx
lea edi, [ebx + 8]
nop
movzx eax, word [esi]
push eax
add ebx, ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x42c8e4
or ebx, 1
sub esi, 2
dec edi
jne 0x42c8d0
mov edi, dword [ebp - 0x44]
jmp 0x42c97e
lea esi, [eax - 1]
lea eax, [ebp - 0x38]
push eax
push esi
mov dword [ebp - 0x38], 0x34
mov dword [ebp - 0x34], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x42c97e
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4ac9e8]
mov ecx, dword [esi + 0x4ac9ec]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42c938
mov ebx, 4
jmp 0x42c948
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4ac9f0]
mov ecx, dword [esi + 0x4ac9f4]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42c969
or ebx, 1
jmp 0x42c976
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x42c976
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov byte [edi], bl
add edx, 0x10
add esi, 2
inc edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], edi
cmp edx, 0x40
jl 0x42c8a0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046c796
mov esp, ebp
pop ebp
ret
Function at 0x440220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a6ff8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4acb7c], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x440295
cmp dword [ebp - 0x108], 2
jne 0x440295
cmp dword [ebp - 0x114], 5
mov dword [0x4acb78], 1
jb 0x440295
mov eax, dword [0x4acb74]
cmp dword [ebp - 0x110], 0
mov ecx, 1
cmovne eax, ecx
mov dword [0x4acb74], eax
call fcn.004401a0
call fcn.004241f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046c796
mov esp, ebp
pop ebp
ret

Function at 0x4402b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0046cff4
mov edi, eax
add esp, 8
test edi, edi
je 0x4402f6
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.0046c837
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x440500
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4acb10]
test eax, eax
je 0x440535
cmp dword [0x4acb44], 0
je 0x44051e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4acb10]
test eax, eax
je 0x440535
push eax
call fcn.0046c837
add esp, 4
mov dword [0x4acb10], 0
mov eax, dword [0x4ac9c4]
test eax, eax
je 0x440551
push eax
call fcn.0046c837
add esp, 4
mov dword [0x4ac9c4], 0
mov eax, dword [0x4acb58]
test eax, eax
je 0x440561
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4acb5c]
test eax, eax
je 0x440571
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x440dc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4acb50]
sub esp, 0x40
push esi
mov esi, ecx
test eax, eax
je 0x440e12
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x440dfc
cmp dword [ebp - 4], 0x103
jne 0x440dfc
cmp dword [0x4acb50], 0
jne 0x440e75
jmp 0x440e12
push dword [0x4acb50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4acb50], 0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00470670
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x48af24
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [0x4acb54], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4acb50]
test eax, eax
cmovne ecx, dword [ebp - 8]
mov dword [0x4acb50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4413f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x4ac9b4]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x441410
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x100
jne 0x441453
cmp dword [ebp + 8], 9
jne 0x44147b
cmp dword [esi + 0x518], ecx
jle 0x44147b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4ac9b4]
test ax, ax
js 0x441440
call fcn.0044ebb0
jmp 0x441445
call fcn.0044ed70
test eax, eax
je 0x441470
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 5
jne 0x44147b
mov eax, dword [0x4ac9ac]
test byte [eax + 0x14], 0x10
je 0x44147b
cmp byte [esi + 0x4c8], cl
je 0x44147b
call fcn.0042c070
mov edx, dword [ebp - 4]
mov esi, dword [0x4ac9b4]
xor ecx, ecx
movsx eax, word [esi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4414c4
push edi
xor edi, edi
test eax, eax
jle 0x4414c3
push ebx
mov ebx, 0x1dc
push dword [ebp + 0xc]
mov eax, dword [ebx + esi]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push esi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x4414c2
inc edi
add ebx, 4
cmp edi, dword [ebp - 0xc]
jge 0x4414c2
mov esi, dword [0x4ac9b4]
mov edx, dword [ebp - 4]
jmp 0x441496
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4415b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4ac988]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x4415d7
push 0
push dword [0x4ac988]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
push edi
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [0x4ac988]
call ebx
mov esi, eax
test esi, esi
je 0x441627
jmp 0x441610
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x441610
mov eax, dword [0x4ac9ac]
cmp dword [eax + 0x1fc], 0
jne 0x44167e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x44167e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x441660
push dword [0x4ac984]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x4416a1
push 5
push dword [0x4ac988]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x447120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, edx
push edi
movzx eax, word [esi]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
call ebx
test eax, eax
jne 0x447155
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x44719f
sub eax, 2
jne 0x44714c
mov eax, dword [esi]
sub eax, 0
je 0x44717b
sub eax, 2
je 0x447174
xorps xmm0, xmm0
jmp 0x447184
movsd xmm0, qword [esi + 8]
jmp 0x447184
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
movsd qword [ebp - 0x18], xmm0
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x4471b6
sub eax, 2
je 0x4471af
xor eax, eax
jmp 0x4471b9
cvttsd2si eax, qword [esi + 8]
jmp 0x4471b9
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x448f06
cmp dword [ebp - 8], 2
jb 0x448f06
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x448edb
dec eax
je 0x448f06
dec eax
jne 0x448f06
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x448f06
cmp dword [ebp - 8], 8
jb 0x448f06
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi + 8], xmm0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x448f06
cmp dword [ebp - 8], 4
jb 0x448f06
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
lea eax, [ebp - 4]
push eax
push edx
mov dword [ebp - 0xc], ecx
call dword [0x4acaec]
mov edi, eax
cmp edi, 0xffffffff
je 0x44b6f2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44b6f2
push ebx
call fcn.0046c7a5
mov esi, eax
add esp, 4
test esi, esi
je 0x44b6eb
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x44b6e2
mov ecx, dword [ebp - 0xc]
push edi
mov dword [ecx], eax
call dword [0x4acabc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0046c837
add esp, 4
push edi
call dword [0x4acabc]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a6ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1fc], 0
je 0x44c27b
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x44c28f
cmp dword [ebp - 0x14], 0xc
jne 0x44c28f
push 0
push dword [ebp - 0x10]
push esi
call fcn.0044c2a0
push 0
push dword [ebp - 0xc]
push esi
call fcn.0044c320
push 0
push dword [ebp - 8]
push esi
call fcn.0044c3a0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c796
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046c796
mov esp, ebp
pop ebp
ret
Function at 0x450800
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov ebx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x4508d9
mov eax, dword [ebp + 8]
lea esp, [esp]
cmp ax, word [esi + 2]
jne 0x450873
mov al, byte [esi]
and al, 0x10
je 0x450830
test ebx, ebx
jne 0x450838
test al, al
jne 0x450870
test ebx, ebx
jne 0x450870
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45084c
test eax, eax
jns 0x450870
jmp 0x450850
test eax, eax
js 0x450870
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 4
cwde
je 0x450864
test eax, eax
jns 0x45086c
jmp 0x450868
test eax, eax
js 0x45086c
movzx edi, word [esi + 4]
test edi, edi
jne 0x45087d
mov eax, dword [ebp + 8]
test byte [esi], 0x80
jne 0x4508d9
add esi, 8
jmp 0x450820
test byte [esi], 0x40
jne 0x4508b0
cmp edi, 0x7d0
jge 0x4508b8
mov esi, dword [ebp - 4]
movzx eax, di
push 0
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jge 0x45088a
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x4508d9
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4508d9
test al, 1
je 0x45088d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450b50
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor eax, eax
push edi
mov ebx, ecx
mov edi, edx
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x450b9b
push esi
push 2
push 0x40
call fcn.0046cff4
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4ac978]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0046c837
add esp, 0x10
pop esi
jmp 0x450be7
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x450bb8
lea eax, [edi - 0x6f]
push eax
push 0x48b230
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x450be7
xor eax, eax
lea ebx, [ebx]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x450bd1
inc eax
cmp eax, 0x14
jl 0x450bc0
jmp 0x450be7
push 0x3f
push ebx
push dword [eax*8 + 0x4ab31c]
push dword [0x4ac978]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x450bff
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x450c10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
mov ebx, ecx
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x450c88
push 2
push 0x80
call fcn.0046cff4
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 8
movsx edx, word [eax + esi*2]
mov ecx, edi
call fcn.00450b50
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0046c837
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x450c42
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4545c0
Capabilities:
Check os version
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4a6ff8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x4ac980], 0
mov dword [0x4acb98], 1
je 0x45470b
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45469a
cmp dword [ebp - 0x118], 2
jne 0x45469a
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x454642
jne 0x45469a
cmp dword [ebp - 0x120], 1
jbe 0x45469a
push str.Imm32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45469a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmDisableIME
push esi
call ebx
mov edi, eax
test edi, edi
je 0x454693
push str.ImmIsIME
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x45468f
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x45468f
push eax
call ebx
test eax, eax
je 0x454693
push 0xffffffffffffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x4ac980]
call dword [sym.imp.MMFS2.dll_Ordinal_14]
push 0
mov dword [0x4ac980], 0
mov dword [0x4ac988], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
je 0x45470b
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call edi
test eax, eax
je 0x45470b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
jne 0x4546e3
mov eax, dword [0x4acb14]
test eax, eax
je 0x454725
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_4]
mov dword [0x4acb14], 0
mov eax, dword [0x4ac990]
test eax, eax
je 0x45473f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4ac990], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c796
mov esp, ebp
pop ebp
ret