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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x401afa
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
mov dword [ebp - 8], eax
lea eax, [edx + 0x3a]
test byte [ebp - 8], 4
je 0x401b15
test byte [eax], 1
je 0x401b4c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
or ecx, 0x200
mov edx, eax
mov dword [esi + 0x10], ecx
test byte [edx], 2
mov edx, dword [ebp - 0xc]
je 0x401b4c
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x401b5e
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401b6c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401b99
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401b9e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401b9e
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x401c03
mov ecx, dword [0x4f1654]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401bf6
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4f1654]
imul edx, dword [eax + 0x1a0], 0x2c
add edx, dword [eax + 0x400]
je 0x401bf6
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401bf6
mov edx, dword [edx + 0xc]
call fcn.0043d3f0
jmp 0x401bf8
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401c03
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401c2a
or word [esi + 0x20], 2
mov eax, 1
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
mov word [esi + 0x22], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4f1654]
test eax, eax
je 0x4034d4
cmp dword [eax + 0x1fc], 0
jne 0x403662
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40364a
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4035fe
mov ecx, dword [0x4f1440]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x403545
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x403545
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x4035fe
cmp dword [ebp - 8], eax
je 0x403545
mov ecx, dword [0x4f1440]
jmp 0x403522
mov eax, dword [0x4f1654]
test eax, eax
je 0x4035f0
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x4035f0
push dword [0x4f1628]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x403589
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
mov ecx, dword [ebp - 4]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x40359a
cmp eax, 0x104
jne 0x4035ea
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x4035ea
cmp edi, 0x11
je 0x4035ea
mov ecx, dword [0x4f1654]
test ecx, ecx
je 0x4035ea
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4035ea
cmp eax, 0x104
je 0x4035d1
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x4035d1
xor edx, edx
jmp 0x4035d6
mov edx, 1
push ecx
mov ecx, dword [0x4f1630]
push edi
call fcn.0045e100
add esp, 8
test eax, eax
jne 0x4035fe
cmp dword [ebp - 4], 0
jne 0x4035fe
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40362c
test al, 1
je 0x403612
cmp dword [esi + 4], 0x111
je 0x403649
test al, 2
je 0x40361f
cmp dword [esi + 4], 0x201
je 0x403649
test al, 4
je 0x40362c
cmp dword [esi + 4], 0x202
je 0x403649
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4034f2
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4f1510
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov dword [0x4f1610], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413610
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 0x413734
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x413722
call fcn.004318a0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x4136b3
mov eax, dword [0x4f165c]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4f165c]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x4136b3
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 0x4136f8
cmp dword [ebp + 8], 0x103
jne 0x4136f8
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.004034a0
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x4136c0
test bx, bx
je 0x41371d
mov eax, dword [0x4f165c]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4f165c]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x41371d
push 5
push eax
call esi
call fcn.004319b0
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 0x42a4b0
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.0048ff3a
mov esi, eax
add esp, 8
test esi, esi
je 0x42a5da
push edi
push 2
push 0x104
call fcn.0048ff3a
mov edi, eax
add esp, 8
test edi, edi
je 0x42a50d
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4ef194
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0048ff50
add esp, 4
cmp word [esi], bx
je 0x42a5cb
push esi
call fcn.00491849
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a524
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x42a553
lea edi, [esi - 2]
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42a540
mov eax, dword [0x4dd90c]
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 0x42a560
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.0048ff2f
mov edx, eax
add esp, 4
test edx, edx
jne 0x42a595
call fcn.004ac5e8
push edi
call fcn.0048ff2f
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 0x42a5a0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.0048ff50
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.0048ff50
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4342e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4edca4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [0x4f165c]
add edi, 0x2c
cmp dword [0x4f1948], 0
mov dword [ebp - 0x44], edi
mov dword [edi], 0
je 0x434422
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 [0x4f1654]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
mov esi, eax
test esi, esi
je 0x434404
cmp esi, 4
jbe 0x434375
cmp eax, 5
jne 0x434404
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 0x434365
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x434351
mov edi, dword [ebp - 0x44]
jmp 0x4343ff
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 0x4343ff
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4f1690]
sub edx, eax
mov ecx, dword [esi + 0x4f1694]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4343b9
mov ebx, 4
jmp 0x4343c9
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4f1698]
mov ecx, dword [esi + 0x4f169c]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4343ea
or ebx, 1
jmp 0x4343f7
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x4343f7
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 0x434320
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00485a4c
mov esp, ebp
pop ebp
ret

Function at 0x439e50
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.00439ed0
Function at 0x44ad10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0048ff3a
mov edi, eax
add esp, 8
test edi, edi
je 0x44ad56
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.0048ff50
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 0x44c370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x4f165c]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x44c390
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp edx, 0x100
jne 0x44c3e7
cmp dword [ebp + 8], 9
jne 0x44c44c
cmp dword [edi + 0x518], ecx
jle 0x44c44c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4f165c]
test ax, ax
js 0x44c3ca
call fcn.0045c1b0
jmp 0x44c3cf
call fcn.0045c370
test eax, eax
je 0x44c3df
pop esi
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4f165c]
jmp 0x44c447
cmp edx, 5
jne 0x44c44c
mov eax, dword [0x4f1654]
test byte [eax + 0x14], 0x10
je 0x44c44c
cmp byte [edi + 0x4c8], cl
je 0x44c44c
mov esi, dword [edi + 0x1278]
xor ebx, ebx
cmp dword [edi + 0x3c], ecx
jle 0x44c44c
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x44c420
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x44c416
test byte [eax + 0x7c], 4
jne 0x44c43e
test dword [eax + 0x78], 0x2b0
je 0x44c43e
push eax
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [0x4f165c]
inc ebx
add esi, 8
cmp ebx, dword [edi + 0x3c]
jl 0x44c410
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [edi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x44c489
xor esi, esi
test eax, eax
jle 0x44c489
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 0x44c489
mov edx, dword [ebp - 4]
inc esi
add ebx, 4
cmp esi, dword [ebp - 0xc]
jl 0x44c466
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44c580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4f1630]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x44c5a7
push 0
push dword [0x4f1630]
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 [0x4f1630]
call ebx
mov esi, eax
test esi, esi
je 0x44c5f7
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 0x44c5e0
mov eax, dword [0x4f1654]
cmp dword [eax + 0x1fc], 0
jne 0x44c64e
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 0x44c64e
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 0x44c630
push dword [0x4f162c]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x44c671
push 5
push dword [0x4f1630]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x4536d0
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 0x453705
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x45374f
sub eax, 2
jne 0x4536fc
mov eax, dword [esi]
sub eax, 0
je 0x45372b
sub eax, 2
je 0x453724
xorps xmm0, xmm0
jmp 0x453734
movsd xmm0, qword [esi + 8]
jmp 0x453734
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 0x453766
sub eax, 2
je 0x45375f
xor eax, eax
jmp 0x453769
cvttsd2si eax, qword [esi + 8]
jmp 0x453769
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 0x455600
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 0x45569a
cmp dword [ebp - 8], 2
jb 0x45569a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x45566f
sub eax, 1
je 0x45569a
sub eax, 1
jne 0x45569a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x45569a
cmp dword [ebp - 8], 8
jb 0x45569a
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 0x45569a
cmp dword [ebp - 8], 4
jb 0x45569a
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 0x4583d0
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 [0x4f1794]
mov edi, eax
cmp edi, 0xffffffff
je 0x458440
mov eax, dword [ebp - 4]
test eax, eax
je 0x458440
push eax
call fcn.0048ff2f
mov esi, eax
add esp, 4
test esi, esi
je 0x458439
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 0x458430
push edi
mov dword [ebx], eax
call dword [0x4f1764]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0048ff50
add esp, 4
push edi
call dword [0x4f1764]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e100
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 0x45e1d8
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x45e172
test byte [esi], 0x10
je 0x45e131
test ebx, ebx
jne 0x45e135
jmp 0x45e172
test ebx, ebx
jne 0x45e172
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x45e149
test eax, eax
jns 0x45e16f
jmp 0x45e14d
test eax, eax
js 0x45e16f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x45e163
test eax, eax
jns 0x45e16b
jmp 0x45e167
test eax, eax
js 0x45e16b
movzx edi, word [esi + 4]
test edi, edi
jne 0x45e17c
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x45e1d8
add esi, 8
jmp 0x45e120
test cl, 0x40
je 0x45e1af
cmp edi, 0x7d0
jl 0x45e1b7
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 0x45e189
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x45e1d8
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x45e1d8
test al, 1
je 0x45e18c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45e470
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 0x45e4bb
push esi
push 2
push 0x40
call fcn.0048ff3a
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4f1620]
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.0048ff50
add esp, 0x10
pop esi
jmp 0x45e507
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x45e4d8
lea eax, [edi - 0x6f]
push eax
push 0x4ddc48
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x45e507
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x45e4f1
inc eax
cmp eax, 0x14
jl 0x45e4e0
jmp 0x45e507
push 0x3f
push ebx
push dword [eax*8 + 0x4dd714]
push dword [0x4f1620]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45e51f
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 0x45e580
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 0x45e5f8
push 2
push 0x80
call fcn.0048ff3a
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.0045e470
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.0048ff50
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 0x45e5b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465440
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 0x46551e
cmp byte [ebp - 1], 0
push edi
je 0x465511
mov esi, dword [esi + 0x1f6]
mov edi, dword [0x4f1654]
cmp edi, esi
je 0x4654f8
test esi, esi
jne 0x465497
xor ecx, ecx
jmp 0x46549d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4f1658], ecx
je 0x4654c1
mov dword [0x4f165c], 0
test ecx, ecx
je 0x4654bb
mov eax, dword [ecx + 0x7c]
mov dword [0x4f165c], eax
mov dword [0x4f1658], ecx
mov dword [0x4f1654], esi
test esi, esi
je 0x4654de
mov eax, dword [esi + 0x1d0]
mov dword [0x4f1634], eax
mov eax, dword [esi + 0x1d4]
jmp 0x4654ea
mov dword [0x4f1634], 0
xor eax, eax
push eax
mov dword [0x4f162c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.00453a50
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 0x465530
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 0x4655b9
cmp byte [ebp - 1], 0
je 0x4655b4
push dword [ebx + 0x1fe]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00464900
mov ecx, dword [ebx + 0x1f6]
add esp, 8
test ecx, ecx
je 0x4655b9
call fcn.00403200
mov ecx, dword [ebx + 0x1f6]
xor edx, edx
mov esi, eax
call fcn.00407690
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00455820
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 0x474db0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4edca4]
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 0x474df8
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004aeba8
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485a4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00485a4c
mov esp, ebp
pop ebp
ret