joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4242f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a7b74]
sub esp, 0xc
cmp word [eax + 0xfe], 0
je 0x424562
xor ecx, ecx
mov word [eax + 0xfe], cx
mov edx, dword [0x4a7b74]
push ebx
mov eax, dword [edx + 0x1168]
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push edi
jmp 0x424330
mov edi, dword [eax]
test edi, edi
je 0x42454a
mov dword [eax], 0
mov edx, dword [0x4a7b74]
mov eax, edi
shr edi, 1
mov dword [ebp - 0xc], edi
test al, 1
je 0x424534
mov eax, dword [edx + 0x1278]
lea esi, [ecx*8]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x42438b
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x10], 1
jne 0x42438b
movsx eax, word [ecx + 0x18]
or eax, 0xffdf0000
push eax
push ecx
call fcn.00453d70
mov edx, dword [0x4a7b74]
add esp, 8
mov ebx, dword [edx + 0x1278]
add ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x424531
push esi
call fcn.0042a020
push esi
call fcn.0042cf40
push esi
call fcn.00402280
mov eax, dword [esi + 0x78]
add esp, 0xc
test al, 0x40
je 0x4243c8
test al, al
jns 0x4243c8
mov eax, dword [0x4a7b74]
dec dword [eax + 0x518]
cmp dword [0x4a3a08], 0xffff
mov edi, 0x4a3a08
je 0x4243fd
lea esp, [esp]
mov eax, dword [edi]
test dword [esi + 0x78], eax
je 0x4243f2
mov eax, dword [edi + 4]
push 0
push esi
call eax
add esp, 8
add edi, 8
cmp dword [edi], 0xffff
jne 0x4243e0
movzx eax, word [esi + 0x18]
cmp ax, 0x20
jge 0x42441d
cwde
mov eax, dword [eax*4 + 0x4a3940]
test eax, eax
je 0x424441
push 0
push esi
call eax
add esp, 8
jmp 0x424441
movsx ecx, ax
mov eax, dword [0x4a7b74]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x424441
push 0
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x42446c
mov edi, dword [esi + 0xbc]
cmp word [edi + esi + 0x18], 0xd
jne 0x42446c
push dword [edi + esi + 0x1c]
call fcn.00433fb0
add esp, 4
mov dword [edi + esi + 0x1c], 0
push esi
call fcn.00426550
mov eax, dword [0x4a7b74]
add esp, 4
test byte [eax + 0x28], 0x20
je 0x424493
movsx eax, word [esi + 0x12]
push eax
call fcn.00436090
push eax
call fcn.00414fb0
add esp, 8
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, 0x200
jne 0x4244a6
mov edi, 1
jmp 0x4244ee
test eax, 0x1000
jne 0x4244cb
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x4244c4
test byte [eax + esi + 0x20], 4
je 0x4244ee
mov edi, 1
jmp 0x4244ee
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x4244de
cmp ax, 0xffff
jne 0x4244ee
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.004015e0
xor eax, eax
mov word [esi + 0x1a], ax
test edi, edi
je 0x424521
test dword [esi + 0x78], 0x1000
je 0x42450a
push esi
call fcn.004012e0
add esp, 4
push esi
call fcn.00467cf6
mov dword [ebx], 0
mov eax, dword [0x4a7b74]
add esp, 4
dec dword [eax + 0x3c]
mov edi, dword [ebp - 0xc]
mov dword [ebx + 4], 0
mov edx, dword [0x4a7b74]
mov ecx, dword [ebp - 4]
test edi, edi
je 0x424541
inc ecx
mov dword [ebp - 4], ecx
jmp 0x424346
mov eax, dword [ebp - 8]
and ecx, 0xffe0
add ecx, 0x20
add eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp ecx, dword [edx + 0x40]
jl 0x424330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4259c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a7b74]
push ebx
mov ecx, dword [eax + 0x1278]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + eax*8]
lea ebx, [ecx + eax*8]
mov dword [ebp + 8], ebx
test esi, esi
je 0x425b9a
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x425a10
cmp word [esi + 0x1a], 0
jne 0x425a10
push esi
call fcn.00467cf6
add esp, 4
mov dword [ebx], 0
mov eax, dword [0x4a7b74]
pop edi
dec dword [eax + 0x3c]
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.0042a020
push esi
call fcn.0042cf40
push esi
call fcn.00402280
mov eax, dword [esi + 0x78]
add esp, 0xc
test al, 0x40
je 0x425a3b
test al, al
jns 0x425a3b
mov eax, dword [0x4a7b74]
dec dword [eax + 0x518]
push edi
push 0x4a3a08
push esi
call fcn.004269c0
movzx eax, word [esi + 0x18]
add esp, 0xc
cmp ax, 0x20
jge 0x425a69
cwde
mov eax, dword [eax*4 + 0x4a3940]
test eax, eax
je 0x425a8c
push edi
push esi
call eax
add esp, 8
jmp 0x425a8c
movsx ecx, ax
mov eax, dword [0x4a7b74]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x425a8c
push edi
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x425ab7
mov ebx, dword [esi + 0xbc]
cmp word [ebx + esi + 0x18], 0xd
jne 0x425ab7
push dword [ebx + esi + 0x1c]
call fcn.00433fb0
add esp, 4
mov dword [ebx + esi + 0x1c], 0
push esi
call fcn.00426550
mov eax, dword [0x4a7b74]
add esp, 4
test byte [eax + 0x28], 0x20
je 0x425ade
movsx eax, word [esi + 0x12]
push eax
call fcn.00436090
push eax
call fcn.00414fb0
add esp, 8
mov eax, dword [esi + 0x78]
xor ebx, ebx
test eax, 0x200
jne 0x425af1
mov ebx, 1
jmp 0x425b4d
test edi, edi
je 0x425b05
push esi
call fcn.00401df0
add esp, 4
mov ebx, 1
jmp 0x425b4d
test eax, 0x1000
jne 0x425b2a
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x425b23
test byte [eax + esi + 0x20], 4
je 0x425b4d
mov ebx, 1
jmp 0x425b4d
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x425b3d
cmp ax, 0xffff
jne 0x425b4d
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.004015e0
xor eax, eax
mov word [esi + 0x1a], ax
test ebx, ebx
je 0x425b8f
test dword [esi + 0x78], 0x1000
je 0x425b69
push esi
call fcn.004012e0
add esp, 4
push esi
call fcn.00467cf6
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], 0
mov eax, dword [0x4a7b74]
pop edi
dec dword [eax + 0x3c]
pop esi
mov dword [ecx + 4], 0
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx + 4], 0
pop esi
pop ebx
pop ebp
ret

Function at 0x427280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x4a7b74]
cmp eax, dword [ecx + 0x14]
je 0x4272a2
cmp eax, dword [ecx + 0xc]
je 0x4272a2
cmp eax, dword [ecx + 0x10]
je 0x4272a2
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
pop ebp
ret
Function at 0x4273f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x4a7b74]
add edi, 0x2c
mov dword [ebp - 0x44], edi
mov dword [edi], 0
mov ecx, dword [0x4a7b74]
cmp eax, dword [ecx + 0xc]
je 0x42742d
cmp eax, dword [ecx + 0x10]
jne 0x427541
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 [0x4a7b6c]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
test eax, eax
jle 0x427526
cmp eax, 4
jle 0x427492
cmp eax, 5
jne 0x427526
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 0x427484
or ebx, 1
sub esi, 2
dec edi
jne 0x427470
mov edi, dword [ebp - 0x44]
jmp 0x42751e
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 0x42751e
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a7ba8]
mov ecx, dword [esi + 0x4a7bac]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4274d8
mov ebx, 4
jmp 0x4274e8
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a7bb0]
mov ecx, dword [esi + 0x4a7bb4]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427509
or ebx, 1
jmp 0x427516
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x427516
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 0x427440
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00468a6b
mov esp, ebp
pop ebp
ret

Function at 0x43b980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43ba3e
mov eax, dword [0x4a7d3c]
test eax, eax
je 0x43b9db
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x43b9c5
cmp dword [ebp + 0xc], 0x103
jne 0x43b9c5
cmp dword [0x4a7d3c], 0
jne 0x43ba3e
jmp 0x43b9db
push dword [0x4a7d3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a7d3c], 0
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00468a80
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x4815a8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [0x4a7d40], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4a7d3c]
test eax, eax
cmovne ecx, dword [ebp - 4]
mov dword [0x4a7d3c], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bbe0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4a7cf4]
test eax, eax
je 0x43bc06
cmp dword [0x4a7cf8], 0
je 0x43bbf9
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x4a7cf4
call fcn.00427af0
add esp, 4
mov eax, dword [0x4a7b84]
test eax, eax
je 0x43bc22
push eax
call fcn.00467cf6
add esp, 4
mov dword [0x4a7b84], 0
mov eax, dword [0x4a7cfc]
test eax, eax
je 0x43bc32
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4a7d38]
test eax, eax
je 0x43bc42
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x43bd20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4a7b48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x43bd47
push 0
push dword [0x4a7b48]
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 [0x4a7b48]
call ebx
mov esi, eax
test esi, esi
je 0x43bd97
jmp 0x43bd80
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43bd80
mov eax, dword [0x4a7b6c]
cmp dword [eax + 0x1fc], 0
jne 0x43bdee
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 0x43bdee
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 0x43bdd0
push dword [0x4a7b44]
call sub.MMFS2.dll_Ordinal_35
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x43be10
push 5
push dword [0x4a7b48]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x43c090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push 2
push 0x104
call fcn.00468954
mov edi, eax
add esp, 8
test edi, edi
je 0x43c0d7
push esi
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.00467cf6
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x43c660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4a7b74]
xor eax, eax
test ecx, ecx
jne 0x43c671
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp edx, 0x100
jne 0x43c6b7
cmp dword [ebp + 0x10], 9
jne 0x43c6e0
cmp dword [ecx + 0x518], eax
jle 0x43c6e0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push dword [0x4a7b74]
test ax, ax
js 0x43c6a4
call fcn.00449740
jmp 0x43c6a9
call fcn.00449920
add esp, 4
test eax, eax
je 0x43c6d5
mov eax, 4
pop ebp
ret
cmp edx, 5
jne 0x43c6e0
mov eax, dword [0x4a7b6c]
test byte [eax + 0x14], 0x10
je 0x43c6de
cmp byte [ecx + 0x4c8], 0
je 0x43c6de
call fcn.00425ed0
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x4a7b74]
xor eax, eax
push ebx
movsx ebx, word [ecx + 0x1d8]
test ebx, ebx
je 0x43c72a
push esi
xor esi, esi
test ebx, ebx
jle 0x43c729
push edi
mov edi, 0x1dc
lea esp, [esp]
push dword [ebp + 0x14]
mov eax, dword [edi + ecx]
push dword [ebp + 0x10]
push edx
push dword [ebp + 8]
push ecx
call eax
cwde
test al, 0x5c
jne 0x43c728
inc esi
add edi, 4
cmp esi, ebx
jge 0x43c728
mov ecx, dword [0x4a7b74]
mov edx, dword [ebp + 0xc]
jmp 0x43c700
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43cac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4a7d08], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43cb35
cmp dword [ebp - 0x108], 2
jne 0x43cb35
cmp dword [ebp - 0x114], 5
mov dword [0x4a7d0c], 1
jb 0x43cb35
mov eax, dword [0x4a7d10]
cmp dword [ebp - 0x110], 0
mov ecx, 1
cmovne eax, ecx
mov dword [0x4a7d10], eax
call fcn.0043cb50
call fcn.0041e1d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00468a6b
mov esp, ebp
pop ebp
ret
Function at 0x440c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
je 0x440cb1
cmp dword [ebp - 8], 2
jb 0x440cb1
movsx eax, word [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
sub eax, 0
je 0x440c7d
dec eax
je 0x440ca8
dec eax
jne 0x440ca8
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push edi
call ebx
test eax, eax
je 0x440ca8
cmp dword [ebp - 8], 8
jb 0x440ca8
movsd xmm0, qword [ebp - 0x14]
movsd qword [esi + 8], xmm0
pop esi
pop edi
mov eax, 1
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 0x440ca8
cmp dword [ebp - 8], 4
jb 0x440ca8
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, word [esi]
mov edi, dword [ebp + 8]
push 0
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push edi
call ebx
test eax, eax
jne 0x443bb7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp + 0xc]
sub eax, 0
je 0x443c01
sub eax, 2
jne 0x443bae
mov eax, dword [esi]
sub eax, 0
je 0x443bdd
sub eax, 2
je 0x443bd6
xorps xmm0, xmm0
jmp 0x443be6
movsd xmm0, qword [esi + 8]
jmp 0x443be6
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
movsd qword [ebp - 0x10], xmm0
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x443c18
sub eax, 2
je 0x443c11
xor eax, eax
jmp 0x443c1b
cvttsd2si eax, qword [esi + 8]
jmp 0x443c1b
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4480a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1fc], 0
je 0x4480ff
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x448115
cmp dword [ebp - 0x14], 0xc
jne 0x448115
push 0
push dword [ebp - 0x10]
push esi
call fcn.00446740
push 0
push dword [ebp - 0xc]
push esi
call fcn.004467c0
push 0
push dword [ebp - 8]
push esi
call fcn.00446840
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468a6b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00468a6b
mov esp, ebp
pop ebp
ret 8

Function at 0x448bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0
push eax
push dword [ebp + 0xc]
call dword [0x4a7cac]
mov esi, eax
cmp esi, 0xffffffff
je 0x448c21
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x448c21
push ebx
call fcn.00467d2e
mov edi, eax
add esp, 4
test edi, edi
je 0x448c1a
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 8], ecx
jne 0x448c11
mov eax, dword [ebp + 8]
push esi
mov dword [eax], ecx
call dword [0x4a7c7c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00467cf6
add esp, 4
push esi
call dword [0x4a7c7c]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a220
Capabilities:
Check os version
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480250
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4a6110]
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 [0x4a7b40], 0
mov dword [0x4a7d64], 1
je 0x44a36a
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44a2fa
cmp dword [ebp - 0x118], 2
jne 0x44a2fa
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x44a2a2
jne 0x44a2fa
cmp dword [ebp - 0x120], 1
jbe 0x44a2fa
push str.Imm32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44a2fa
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmDisableIME
push esi
call ebx
mov edi, eax
test edi, edi
je 0x44a2f3
push str.ImmIsIME
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x44a2ef
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x44a2ef
push eax
call ebx
test eax, eax
je 0x44a2f3
push 0xffffffffffffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x4a7b40]
call sub.MMFS2.dll_Ordinal_14
push 0
mov dword [0x4a7b40], 0
mov dword [0x4a7b48], 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 0x44a36a
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 0x44a36a
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
jne 0x44a342
mov eax, dword [0x4a7d18]
test eax, eax
je 0x44a383
push eax
call sub.MMFS2.dll_Ordinal_4
mov dword [0x4a7d18], 0
mov eax, dword [0x4a7b50]
test eax, eax
je 0x44a39d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4a7b50], 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.00468a6b
mov esp, ebp
pop ebp
ret
Function at 0x44b4f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
push 0x78
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x79
push ebx
call esi
push eax
call edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov edi, edi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x44b566
push 2
push 0x80
call fcn.00468954
mov edi, eax
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + esi*2]
push ecx
push edi
call fcn.0044b860
add esp, 0x10
lea ecx, [esi + 0x6e]
push edi
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00467cf6
mov edi, dword [ebp + 0xc]
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 0x44b520
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x44b860
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x44b8b0
push esi
push 2
push 0x40
call fcn.00468954
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4a7b38]
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.00467cf6
add esp, 0x10
pop esi
jmp 0x44b8f7
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x44b8cd
lea eax, [edi - 0x6f]
push eax
push 0x481980
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x44b8f7
xor eax, eax
nop
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x44b8e1
inc eax
cmp eax, 0x14
jl 0x44b8d0
jmp 0x44b8f7
push 0x3f
push ebx
push dword [eax*8 + 0x4a5124]
push dword [0x4a7b38]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x44b90f
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
pop ebp
ret
Function at 0x44ed50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
jne 0x44ed64
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
jmp 0x44ed70
cmp ax, word [esi + 2]
jne 0x44edc3
mov al, byte [esi]
and al, 0x10
je 0x44ed80
test ebx, ebx
jne 0x44ed88
test al, al
jne 0x44edc0
test ebx, ebx
jne 0x44edc0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x44ed9c
test eax, eax
jns 0x44edc0
jmp 0x44eda0
test eax, eax
js 0x44edc0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 4
cwde
je 0x44edb4
test eax, eax
jns 0x44edbc
jmp 0x44edb8
test eax, eax
js 0x44edbc
movzx edi, word [esi + 4]
test edi, edi
jne 0x44edcd
mov eax, dword [ebp + 0x10]
test byte [esi], 0x80
jne 0x44ee26
add esi, 8
jmp 0x44ed70
test byte [esi], 0x40
mov esi, dword [ebp + 8]
jne 0x44eddf
cmp edi, 0x7d0
jl 0x44ee05
jmp 0x44ede7
cmp edi, 0x7d0
jge 0x44ee05
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x44ee26
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x44ee26
test al, 1
jne 0x44ee26
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 ebx
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x450790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x1f6], 0
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push edi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4507f7
cmp byte [ebp + 0xb], 0
je 0x4507ea
push dword [esi + 0x1f6]
call fcn.004056e0
push edi
mov esi, eax
call fcn.00443c50
push esi
mov edi, eax
call fcn.004056e0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret