joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411eb0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, edx
call fcn.00472480
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411fc7
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x411fb3
call fcn.0042b5b0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x411f49
mov eax, dword [0x4b49d4]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b49d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411f49
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411f88
cmp dword [ebp + 8], 0x103
jne 0x411f88
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402c40
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x411f50
pop edi
test bx, bx
je 0x411fae
mov eax, dword [0x4b49d4]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b49d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411fae
push 5
push eax
call esi
call fcn.0042b680
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
pop ebx
movsx eax, cx
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, si
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4255a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
push 0x104
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
je 0x4256c9
push edi
push 2
push 0x104
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x4255fd
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4b1b28
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0046d737
add esp, 4
cmp word [esi], bx
je 0x4256ba
push esi
call fcn.0046f1b3
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425614
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x425643
lea edi, [esi - 2]
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x425630
mov eax, dword [0x492e18]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x425650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425650
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.0046d6a5
mov edx, eax
add esp, 4
test edx, edx
jne 0x425685
call fcn.00470d91
push edi
call fcn.0046d6a5
add esp, 4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [eax], edx
sub edx, esi
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x425690
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.0046d737
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ebx, 0xe
call fcn.0046d737
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4257f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 2
push 0x104
call fcn.0046def4
mov esi, eax
add esp, 8
test esi, esi
je 0x42582e
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x492e1c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0046fc68
push esi
call fcn.0046d737
add esp, 8
pop esi
ret
push 0x492e1c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
ret
Function at 0x425840
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push edi
push 1
push 0x250
mov esi, ecx
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x425919
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42590f
test byte [edi], 0x10
jne 0x4258f8
lea esi, [edi + 0x2c]
mov ecx, 0x492e24
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4258aa
test dx, dx
je 0x4258a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4258aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x425884
xor eax, eax
jmp 0x4258af
sbb eax, eax
or eax, 1
test eax, eax
je 0x4258f8
mov eax, 0x492e1c
mov ecx, esi
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4258e6
test dx, dx
je 0x4258e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4258e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4258c0
xor eax, eax
jmp 0x4258eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4258f8
push esi
call fcn.0046f1b3
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425871
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0046d737
add esp, 4
pop ebx
pop edi
pop esi
ret
Function at 0x42beb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov edx, dword [0x4b49d4]
push esi
mov eax, dword [edx + 0x1278]
push edi
mov esi, dword [eax + ecx*8]
lea edi, [eax + ecx*8]
mov dword [ebp - 4], edi
test esi, esi
je 0x42c0c8
cmp esi, dword [edx + 0x1270]
jne 0x42bee8
mov dword [edx + 0x1270], 0
cmp ebx, 1
jne 0x42bf12
cmp word [esi + 0x1a], 0
jne 0x42bf12
push esi
call fcn.0046d737
add esp, 4
mov dword [edi], 0
mov eax, dword [0x4b49d4]
pop edi
dec dword [eax + 0x3c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042e490
mov ecx, esi
call fcn.0042d730
mov ecx, esi
call fcn.00402610
mov eax, dword [esi + 0x78]
test al, 0x40
je 0x42bf3d
test al, al
jns 0x42bf3d
mov eax, dword [0x4b49d4]
dec dword [eax + 0x518]
cmp dword [0x4b1be8], 0xffff
mov edi, 0x4b1be8
je 0x42bf6c
mov edi, edi
mov eax, dword [edi]
test dword [esi + 0x78], eax
je 0x42bf61
mov eax, dword [edi + 4]
push ebx
push esi
call eax
add esp, 8
add edi, 8
cmp dword [edi], 0xffff
jne 0x42bf50
movzx eax, word [esi + 0x18]
cmp ax, 0x20
jge 0x42bf8b
cwde
mov eax, dword [eax*4 + 0x4b1c20]
test eax, eax
je 0x42bfae
push ebx
push esi
call eax
add esp, 8
jmp 0x42bfae
movsx ecx, ax
mov eax, dword [0x4b49d4]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x42bfae
push ebx
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x42bfdb
mov edi, dword [esi + 0xbc]
cmp word [edi + esi + 0x18], 0xd
jne 0x42bfdb
mov ecx, dword [edi + esi + 0x1c]
test ecx, ecx
je 0x42bfd3
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + esi + 0x1c], 0
mov ecx, esi
call fcn.0042cd80
mov eax, dword [0x4b49d4]
test byte [eax + 0x28], 0x20
je 0x42c00f
movsx edx, word [esi + 0x12]
mov ecx, dword [0x4b49cc]
cmp edx, dword [ecx + 0x194]
jge 0x42c00f
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 0x42c022
mov edi, 1
jmp 0x42c07c
test ebx, ebx
je 0x42c034
mov ecx, esi
call fcn.00401560
mov edi, 1
jmp 0x42c07c
test eax, 0x1000
jne 0x42c059
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x42c052
test byte [eax + esi + 0x20], 4
je 0x42c07c
mov edi, 1
jmp 0x42c07c
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x42c06c
cmp ax, 0xffff
jne 0x42c07c
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 0x42c0be
test dword [esi + 0x78], 0x1000
je 0x42c096
mov ecx, esi
call fcn.004015c0
push esi
call fcn.0046d737
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx], 0
mov eax, dword [0x4b49d4]
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 0x42c3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x4b49d4]
push ebx
mov al, byte [ecx + 0x1a7]
test al, al
jne 0x42c46c
mov ecx, 1
call fcn.00429e50
mov eax, dword [0x4b49d4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_59]
call fcn.004010a0
call fcn.0042cbe0
call fcn.004011c0
mov eax, dword [0x4b49d4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_61]
call fcn.00401210
mov eax, dword [0x4b49d4]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_60]
call fcn.00429f30
mov eax, dword [0x4b49d4]
cmp byte [eax + 0x4c8], 0
je 0x42c463
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 0x42c4c4
mov edx, dword [0x4b49d0]
mov ecx, dword [0x4b49d4]
movsx ebx, al
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x190]
jne 0x42c49c
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x194]
je 0x42c4a7
call fcn.00439100
mov edx, dword [0x4b49d0]
mov ecx, 6
test bl, 8
jne 0x42c4bd
test byte [edx + 0xc], 0x20
mov eax, 0x16
cmovne ecx, eax
call fcn.00437c80
jmp 0x42c4fb
test al, 1
je 0x42c521
mov ecx, dword [0x4b49d0]
mov edx, dword [0x4b49d4]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [edx + 0x190]
jne 0x42c4f6
mov eax, dword [ecx + 0x20]
cmp eax, dword [edx + 0x194]
jne 0x42c4f6
mov ecx, 6
call fcn.00437c80
jmp 0x42c4fb
call fcn.004391e0
mov ecx, dword [0x4b49d4]
mov eax, dword [ecx + 0xb0]
mov dword [ecx + 0x190], eax
mov ecx, dword [0x4b49d4]
mov eax, dword [ecx + 0xb4]
mov dword [ecx + 0x194], eax
pop ebx
ret
mov ecx, 0x86
pop ebx
jmp fcn.00437c80
Function at 0x42d2e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x4b49d4]
add edi, 0x2c
mov dword [ebp - 0x44], edi
mov dword [edi], 0
mov ecx, dword [0x4b49d4]
cmp eax, dword [ecx + 0xc]
je 0x42d31d
cmp eax, dword [ecx + 0x10]
jne 0x42d431
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 [0x4b49cc]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
test eax, eax
jle 0x42d416
cmp eax, 4
jle 0x42d382
cmp eax, 5
jne 0x42d416
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 0x42d374
or ebx, 1
sub esi, 2
dec edi
jne 0x42d360
mov edi, dword [ebp - 0x44]
jmp 0x42d40e
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 0x42d40e
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4b4a08]
mov ecx, dword [esi + 0x4b4a0c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42d3c8
mov ebx, 4
jmp 0x42d3d8
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4b4a10]
mov ecx, dword [esi + 0x4b4a14]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42d3f9
or ebx, 1
jmp 0x42d406
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x42d406
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 0x42d330
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046d696
mov esp, ebp
pop ebp
ret

Function at 0x432300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x104], ecx
sub ecx, dword [esi + 0x58]
mov dword [esi + 0x108], edx
sub edx, dword [esi + 0x5c]
add eax, ecx
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x64]
add eax, edx
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0x118], ecx
mov dword [esi + 0x11c], edx
mov dword [esi + 0x110], eax
mov edx, 1
mov ecx, esi
pop esi
pop ebp
jmp fcn.00432370
Function at 0x440e70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4b4b9c], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x440ee3
cmp dword [ebp - 0x108], 2
jne 0x440ee3
mov eax, dword [ebp - 0x114]
mov dword [0x4b4b98], 1
cmp eax, 5
ja 0x440ed9
jne 0x440ee3
cmp dword [ebp - 0x110], 0
je 0x440ee3
mov dword [0x4b4b94], 1
call fcn.00440df0
call fcn.00424c80
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d696
mov esp, ebp
pop ebp
ret

Function at 0x440f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0046def4
mov edi, eax
add esp, 8
test edi, edi
je 0x440f46
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.0046d737
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 0x441150
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4b4b30]
test eax, eax
je 0x441185
cmp dword [0x4b4b64], 0
je 0x44116e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [0x4b4b30]
test eax, eax
je 0x441185
push eax
call fcn.0046d737
add esp, 4
mov dword [0x4b4b30], 0
mov eax, dword [0x4b49e4]
test eax, eax
je 0x4411a1
push eax
call fcn.0046d737
add esp, 4
mov dword [0x4b49e4], 0
mov eax, dword [0x4b4b78]
test eax, eax
je 0x4411b1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4b4b7c]
test eax, eax
je 0x4411c1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x441a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b4b70]
sub esp, 0x40
push esi
mov esi, ecx
test eax, eax
je 0x441a62
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x441a4c
cmp dword [ebp - 4], 0x103
jne 0x441a4c
cmp dword [0x4b4b70], 0
jne 0x441ac5
jmp 0x441a62
push dword [0x4b4b70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4b4b70], 0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00472480
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], 0x492e00
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [0x4b4b74], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4b4b70]
test eax, eax
cmovne ecx, dword [ebp - 8]
mov dword [0x4b4b70], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x442150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x4b49d4]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x442170
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x100
jne 0x4421b3
cmp dword [ebp + 8], 9
jne 0x4421db
cmp dword [esi + 0x518], ecx
jle 0x4421db
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4b49d4]
test ax, ax
js 0x4421a0
call fcn.0044faa0
jmp 0x4421a5
call fcn.0044fc60
test eax, eax
je 0x4421d0
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 5
jne 0x4421db
mov eax, dword [0x4b49cc]
test byte [eax + 0x14], 0x10
je 0x4421db
cmp byte [esi + 0x4c8], cl
je 0x4421db
call fcn.0042cb00
mov edx, dword [ebp - 4]
mov esi, dword [0x4b49d4]
xor ecx, ecx
movsx eax, word [esi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x44221c
push edi
xor edi, edi
test eax, eax
jle 0x44221b
push ebx
lea ebx, [esi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push esi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x44221a
mov edx, dword [ebp - 4]
inc edi
add ebx, 4
cmp edi, dword [ebp - 0xc]
jl 0x4421f7
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442310
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x442337
push 0
push dword [0x4b49a8]
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 [0x4b49a8]
call ebx
mov esi, eax
test esi, esi
je 0x442387
jmp 0x442370
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x442370
mov eax, dword [0x4b49cc]
cmp dword [eax + 0x1fc], 0
jne 0x4423de
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 0x4423de
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 0x4423c0
push dword [0x4b49a4]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x442401
push 5
push dword [0x4b49a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x448000
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 0x448035
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x44807f
sub eax, 2
jne 0x44802c
mov eax, dword [esi]
sub eax, 0
je 0x44805b
sub eax, 2
je 0x448054
xorps xmm0, xmm0
jmp 0x448064
movsd xmm0, qword [esi + 8]
jmp 0x448064
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 0x448096
sub eax, 2
je 0x44808f
xor eax, eax
jmp 0x448099
cvttsd2si eax, qword [esi + 8]
jmp 0x448099
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 0x449d50
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 0x449de6
cmp dword [ebp - 8], 2
jb 0x449de6
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x449dbb
dec eax
je 0x449de6
dec eax
jne 0x449de6
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x449de6
cmp dword [ebp - 8], 8
jb 0x449de6
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 0x449de6
cmp dword [ebp - 8], 4
jb 0x449de6
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 0x44c570
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 [0x4b4b0c]
mov edi, eax
cmp edi, 0xffffffff
je 0x44c5e2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44c5e2
push ebx
call fcn.0046d6a5
mov esi, eax
add esp, 4
test esi, esi
je 0x44c5db
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 0x44c5d2
mov ecx, dword [ebp - 0xc]
push edi
mov dword [ecx], eax
call dword [0x4b4adc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0046d737
add esp, 4
push edi
call dword [0x4b4adc]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4af008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1fc], 0
je 0x44d16b
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 0x44d17f
cmp dword [ebp - 0x14], 0xc
jne 0x44d17f
push 0
push dword [ebp - 0x10]
push esi
call fcn.0044d190
push 0
push dword [ebp - 0xc]
push esi
call fcn.0044d210
push 0
push dword [ebp - 8]
push esi
call fcn.0044d290
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d696
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046d696
mov esp, ebp
pop ebp
ret
Function at 0x451620
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 0x4516f9
mov eax, dword [ebp + 8]
lea esp, [esp]
cmp ax, word [esi + 2]
jne 0x451693
mov al, byte [esi]
and al, 0x10
je 0x451650
test ebx, ebx
jne 0x451658
test al, al
jne 0x451690
test ebx, ebx
jne 0x451690
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45166c
test eax, eax
jns 0x451690
jmp 0x451670
test eax, eax
js 0x451690
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 4
cwde
je 0x451684
test eax, eax
jns 0x45168c
jmp 0x451688
test eax, eax
js 0x45168c
movzx edi, word [esi + 4]
test edi, edi
jne 0x45169d
mov eax, dword [ebp + 8]
test byte [esi], 0x80
jne 0x4516f9
add esi, 8
jmp 0x451640
test byte [esi], 0x40
jne 0x4516d0
cmp edi, 0x7d0
jge 0x4516d8
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 0x4516aa
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x4516f9
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x4516f9
test al, 1
je 0x4516ad
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451970
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 0x4519bb
push esi
push 2
push 0x40
call fcn.0046def4
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b4998]
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.0046d737
add esp, 0x10
pop esi
jmp 0x451a07
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x4519d8
lea eax, [edi - 0x6f]
push eax
push 0x493110
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x451a07
xor eax, eax
lea ebx, [ebx]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x4519f1
inc eax
cmp eax, 0x14
jl 0x4519e0
jmp 0x451a07
push 0x3f
push ebx
push dword [eax*8 + 0x4b332c]
push dword [0x4b4998]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x451a1f
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