joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a60
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.0049277a
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x409b21
mov ecx, ebx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409a90
push 0x5c
push ebx
call fcn.00489aa0
add esp, 8
test eax, eax
je 0x409ab5
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x409ade
cmp word [ebx + 2], 0x5c
jne 0x409ade
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00489b42
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x409b01
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x409af7
cmp word [ebx + 2], 0x3a
jne 0x409af4
cmp word [ebx + 4], 0x5c
jne 0x409af4
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x409af7
push 0x5c
push ebx
call fcn.00489b42
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.0049277a
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b2b
push dword [ebp - 4]
call fcn.00492790
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x409b98
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.004a633d
push esi
call fcn.004a6718
add esp, 0x10
test eax, eax
je 0x409b74
push esi
call fcn.004a6723
add esp, 4
test eax, eax
je 0x409b61
mov edi, 1
jmp 0x409b74
push esi
call fcn.004a6718
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.00489b42
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x409c0c
mov ecx, dword [ebp - 8]
test edi, edi
je 0x409b32
jmp 0x409c0c
mov edx, esi
sub edx, dword [ebp - 4]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x409ba0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bb5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x409bd8
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x409bd8
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.004a6718
add esp, 4
test eax, eax
je 0x409c0c
push esi
call fcn.004a6723
add esp, 4
test eax, eax
je 0x409bf9
mov edi, 1
jmp 0x409c0c
push esi
call fcn.004a6718
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.00492790
push dword [ebp - 4]
call fcn.00492790
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8b0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4f3d70]
test eax, eax
je 0x40a8e3
cmp dword [0x4f3d6c], 0
je 0x40a8d2
push eax
mov ecx, 0x4f3ec8
call fcn.00475ac0
mov eax, dword [0x4f3d70]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4f3d70], 0
mov eax, dword [0x4f3994]
test eax, eax
je 0x40a920
push 0x5c
push eax
call fcn.00489aa0
add esp, 8
test eax, eax
je 0x40a920
mov edx, dword [0x4f3994]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x40a914
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x40a919
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4f398c]
test edi, edi
je 0x40aa0d
cmp word [edi], 0
je 0x40aa04
xor esi, esi
push edi
call fcn.00494089
add esp, 4
test eax, eax
je 0x40a969
call fcn.004a693b
cmp dword [eax], 2
je 0x40a969
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x40a943
jmp 0x40a9d6
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a970
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.0049277a
mov esi, eax
add esp, 8
test esi, esi
je 0x40a9d6
mov edx, esi
mov ecx, edi
sub edx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40a9a0
push 0x5c
push esi
call fcn.00489aa0
add esp, 8
test eax, eax
je 0x40a9cd
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004a69da
add esp, 4
push esi
call fcn.00492790
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a9e0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x40a941
mov edi, dword [0x4f398c]
push edi
call fcn.00492790
add esp, 4
mov edx, dword [0x4f3988]
test edx, edx
je 0x40aa7a
xor esi, esi
nop dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa25
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x40aa48
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x40aa48
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.004a69da
add esp, 4
test eax, eax
je 0x40aa74
call fcn.004a693b
cmp dword [eax], 2
je 0x40aa74
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x40aa74
mov edx, dword [0x4f3988]
jmp 0x40aa20
mov edx, dword [0x4f3988]
push edx
call fcn.00492790
push dword [0x4f3994]
mov dword [0x4f3988], 0
call fcn.00492790
add esp, 8
mov dword [0x4f3994], 0
pop edi
pop esi
pop ebx
ret
Function at 0x414650
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push edi
push eax
mov dword [ebp - 0x50], 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x414774
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x414762
call fcn.00432980
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x4146f3
mov eax, dword [0x4f3bec]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4f3bec]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x4146f3
push 0
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop dword [eax]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x414738
cmp dword [ebp + 8], 0x103
jne 0x414738
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.004034a0
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x414700
test bx, bx
je 0x41475d
mov eax, dword [0x4f3bec]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4f3bec]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x41475d
push 5
push eax
call esi
call fcn.00432a90
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b590
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.0049277a
mov esi, eax
add esp, 8
test esi, esi
je 0x42b6ba
push edi
push 2
push 0x104
call fcn.0049277a
mov edi, eax
add esp, 8
test edi, edi
je 0x42b5ed
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4f1184
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.00492790
add esp, 4
cmp word [esi], bx
je 0x42b6ab
push esi
call fcn.00494089
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b604
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x42b633
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42b620
mov eax, dword [0x4df4b0]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b640
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.0049276f
mov edx, eax
add esp, 4
test edx, edx
jne 0x42b675
call fcn.004aefaf
push edi
call fcn.0049276f
add esp, 4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [eax], edx
sub edx, esi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42b680
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00492790
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.00492790
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4353c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4efca4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [0x4f3bec]
add edi, 0x2c
cmp dword [0x4f3ed8], 0
mov dword [ebp - 0x44], edi
mov dword [edi], 0
je 0x435502
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
nop dword [eax]
mov eax, dword [0x4f3be4]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
mov esi, eax
test esi, esi
je 0x4354e4
cmp esi, 4
jbe 0x435455
cmp eax, 5
jne 0x4354e4
lea esi, [ecx + 0x16]
add esi, edx
lea edi, [ebx + 8]
movzx eax, word [esi]
add ebx, ebx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x435445
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x435431
mov edi, dword [ebp - 0x44]
jmp 0x4354df
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x34
push eax
dec esi
mov dword [ebp - 0x34], 0x83
push esi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x4354df
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4f3c20]
sub edx, eax
mov ecx, dword [esi + 0x4f3c24]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x435499
mov ebx, 4
jmp 0x4354a9
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4f3c28]
mov ecx, dword [esi + 0x4f3c2c]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4354ca
or ebx, 1
jmp 0x4354d7
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x4354d7
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov edx, dword [ebp - 0x3c]
mov byte [edi], bl
mov esi, dword [ebp - 0x40]
add edx, 0x10
add esi, 2
mov dword [ebp - 0x3c], edx
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
cmp edx, 0x40
jl 0x435400
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00488295
mov esp, ebp
pop ebp
ret

Function at 0x43af30
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]
add eax, ecx
mov dword [esi + 0x108], edx
sub edx, dword [esi + 0x5c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x64]
add eax, edx
mov dword [esi + 0x118], ecx
mov dword [esi + 0x124], eax
mov ecx, esi
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0x11c], edx
mov edx, 1
mov dword [esi + 0x110], eax
pop esi
pop ebp
jmp fcn.0043afb0
Function at 0x44be30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0049277a
mov edi, eax
add esp, 8
test edi, edi
je 0x44be76
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.00492790
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 0x44d370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x4f3bec]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x44d390
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp edx, 0x100
jne 0x44d3e7
cmp dword [ebp + 8], 9
jne 0x44d44c
cmp dword [edi + 0x518], ecx
jle 0x44d44c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4f3bec]
test ax, ax
js 0x44d3ca
call fcn.0045d260
jmp 0x44d3cf
call fcn.0045d420
test eax, eax
je 0x44d3df
pop esi
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4f3bec]
jmp 0x44d447
cmp edx, 5
jne 0x44d44c
mov eax, dword [0x4f3be4]
test byte [eax + 0x14], 0x10
je 0x44d44c
cmp byte [edi + 0x4c8], cl
je 0x44d44c
mov esi, dword [edi + 0x1278]
xor ebx, ebx
cmp dword [edi + 0x3c], ecx
jle 0x44d44c
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x44d420
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x44d416
test byte [eax + 0x7c], 4
jne 0x44d43e
test dword [eax + 0x78], 0x2b0
je 0x44d43e
push eax
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [0x4f3bec]
inc ebx
add esi, 8
cmp ebx, dword [edi + 0x3c]
jl 0x44d410
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [edi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x44d489
xor esi, esi
test eax, eax
jle 0x44d489
lea ebx, [edi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push edi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x44d489
mov edx, dword [ebp - 4]
inc esi
add ebx, 4
cmp esi, dword [ebp - 0xc]
jl 0x44d466
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44d580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4f3bc0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x44d5a7
push 0
push dword [0x4f3bc0]
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 [0x4f3bc0]
call ebx
mov esi, eax
test esi, esi
je 0x44d5f7
nop dword [eax + eax]
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x44d5e0
mov eax, dword [0x4f3be4]
cmp dword [eax + 0x1fc], 0
jne 0x44d64e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x44d64e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
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 0x44d630
push dword [0x4f3bbc]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x44d671
push 5
push dword [0x4f3bc0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x454770
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
push 0
mov edi, ecx
movzx eax, word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
jne 0x4547a5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x4547ef
sub eax, 2
jne 0x45479c
mov eax, dword [esi]
sub eax, 0
je 0x4547cb
sub eax, 2
je 0x4547c4
xorps xmm0, xmm0
jmp 0x4547d4
movsd xmm0, qword [esi + 8]
jmp 0x4547d4
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
movsd qword [ebp - 0x18], xmm0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x454806
sub eax, 2
je 0x4547ff
xor eax, eax
jmp 0x454809
cvttsd2si eax, qword [esi + 8]
jmp 0x454809
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 0x4566a0
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 0x45673a
cmp dword [ebp - 8], 2
jb 0x45673a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x45670f
sub eax, 1
je 0x45673a
sub eax, 1
jne 0x45673a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x45673a
cmp dword [ebp - 8], 8
jb 0x45673a
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
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 0x45673a
cmp dword [ebp - 8], 4
jb 0x45673a
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 0x459480
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 edx
mov ebx, ecx
call dword [0x4f3d24]
mov edi, eax
cmp edi, 0xffffffff
je 0x4594f0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4594f0
push eax
call fcn.0049276f
mov esi, eax
add esp, 4
test esi, esi
je 0x4594e9
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x4594e0
push edi
mov dword [ebx], eax
call dword [0x4f3cf4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00492790
add esp, 4
push edi
call dword [0x4f3cf4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f1b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x45f288
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x45f222
test byte [esi], 0x10
je 0x45f1e1
test ebx, ebx
jne 0x45f1e5
jmp 0x45f222
test ebx, ebx
jne 0x45f222
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45f1f9
test eax, eax
jns 0x45f21f
jmp 0x45f1fd
test eax, eax
js 0x45f21f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x45f213
test eax, eax
jns 0x45f21b
jmp 0x45f217
test eax, eax
js 0x45f21b
movzx edi, word [esi + 4]
test edi, edi
jne 0x45f22c
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x45f288
add esi, 8
jmp 0x45f1d0
test cl, 0x40
je 0x45f25f
cmp edi, 0x7d0
jl 0x45f267
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x45f239
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x45f288
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x45f288
test al, 1
je 0x45f23c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f520
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov ebx, ecx
mov edi, edx
xor eax, eax
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x45f56b
push esi
push 2
push 0x40
call fcn.0049277a
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4f3bb0]
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.00492790
add esp, 0x10
pop esi
jmp 0x45f5b7
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x45f588
lea eax, [edi - 0x6f]
push eax
push 0x4df818
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x45f5b7
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x45f5a1
inc eax
cmp eax, 0x14
jl 0x45f590
jmp 0x45f5b7
push 0x3f
push ebx
push dword [eax*8 + 0x4df2a4]
push dword [0x4f3bb0]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45f5cf
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 0x45f630
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
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 0x45f6a8
push 2
push 0x80
call fcn.0049277a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.0045f520
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.00492790
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 0x45f662
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x1f6], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46674e
cmp byte [ebp - 1], 0
push edi
je 0x466741
mov esi, dword [esi + 0x1f6]
mov edi, dword [0x4f3be4]
cmp edi, esi
je 0x466728
test esi, esi
jne 0x4666c7
xor ecx, ecx
jmp 0x4666cd
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4f3be8], ecx
je 0x4666f1
mov dword [0x4f3bec], 0
test ecx, ecx
je 0x4666eb
mov eax, dword [ecx + 0x7c]
mov dword [0x4f3bec], eax
mov dword [0x4f3be8], ecx
mov dword [0x4f3be4], esi
test esi, esi
je 0x46670e
mov eax, dword [esi + 0x1d0]
mov dword [0x4f3bc4], eax
mov eax, dword [esi + 0x1d4]
jmp 0x46671a
mov dword [0x4f3bc4], 0
xor eax, eax
push eax
mov dword [0x4f3bbc], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.00454af0
mov ecx, esi
mov edi, eax
call fcn.00403200
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
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x466760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4667e9
cmp byte [ebp - 1], 0
je 0x4667e4
push dword [ebx + 0x1fe]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00465b30
mov ecx, dword [ebx + 0x1f6]
add esp, 8
test ecx, ecx
je 0x4667e9
call fcn.00403200
mov ecx, dword [ebx + 0x1f6]
xor edx, edx
mov esi, eax
call fcn.00407600
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.004568c0
mov ecx, esi
mov edi, eax
call fcn.00403200
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475fd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4efca4]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x476018
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004b156f
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488295
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00488295
mov esp, ebp
pop ebp
ret