joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4002420c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.400050f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x40024264
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40095c4c]
mov dl, 1
mov eax, dword [0x400239a4]
call fcn.4000d624
call fcn.400045f8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.40023b48
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40025598
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4002559e
ret

Function at 0x40025618
Capabilities:
Get geographical location

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
ret

Function at 0x40026cf8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x40026d07
add esp, 0xfffffff0
call fcn.40003fe4
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.40003c90
lea eax, [edi + 0x38]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dl, 1
mov eax, dword [0x400248fc]
call fcn.40026118
mov esi, eax
mov dword [edi + 0xc], esi
mov dword [esi + 0xc], edi
mov dword [esi + 8], 0x40027490
lea eax, [edi + 0x38]
mov dword [esi + 0x14], eax
mov dl, 1
mov eax, dword [0x40024a9c]
call fcn.40026734
mov esi, eax
mov dword [edi + 0x10], esi
mov dword [esi + 0xc], edi
mov dword [esi + 8], 0x400274b0
lea eax, [edi + 0x38]
mov dword [esi + 0x14], eax
mov dl, 1
mov eax, dword [0x40024b9c]
call fcn.40026a00
mov esi, eax
mov dword [edi + 0x14], esi
mov dword [esi + 0xc], edi
mov dword [esi + 8], 0x400274d0
lea eax, [edi + 0x38]
mov dword [esi + 0x14], eax
mov dword [edi + 0x20], 0xcc0020
movzx eax, byte [0x40026db8]
mov byte [edi + 8], al
mov edx, edi
mov eax, dword [0x4009aa90]
call fcn.4001985c
mov eax, edi
test bl, bl
je 0x40026db2
call fcn.4000403c
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4002c060
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x4002522c]
call fcn.40003c90
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4002c0e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov esi, eax
lea edi, [edx + 0x18]
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
movzx edx, byte [ebp + 0xc]
mov byte [eax + 0x70], dl
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4002c0ca
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x400177bc]
call fcn.40003e70
mov edx, dword [ebp - 8]
mov dword [edx + 0x6c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4002c0ff
push 0x4009aa54
call sub.KERNEL32.DLL_GetUserDefaultLCID
xor edx, edx
push ebp
push 0x4002c148
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.4002abc8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x28], eax
call fcn.4002abc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4002c14f
push 0x4009aa54
call sub.KERNEL32.DLL_GetLocaleInfoA
ret

Function at 0x4002d75c
Capabilities:
Get geographical location

Disassembly:
add eax, 8
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
ret

Function at 0x4002db7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
test dl, dl
je 0x4002db8a
add esp, 0xfffffff0
call fcn.40003fe4
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.40003c90
lea eax, [esi + 4]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov eax, esi
test bl, bl
je 0x4002dbb5
call fcn.4000403c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40030ff4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x40031073
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebx + 0x34]
push eax
call sub.user32.dll_GetKeyboardLayoutList
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x4003105d
cmp byte [ebx + 0x40], 0
je 0x4003105d
cmp word [ebx + 0x3a], 0
je 0x4003105d
push 0
push esi
push 1
mov eax, dword [ebx + 0x34]
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x4003105d
lea edx, [ebp - 4]
mov eax, dword [0x40095c04]
call fcn.40006cc0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x40016d90]
call fcn.4000d52c
call fcn.400045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4003107a
lea eax, [ebp - 4]
call fcn.40004c64
ret
Function at 0x40032540
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.40046f70
push eax
call sub.user32.dll_EqualRect
test ah, 2
je 0x400326a2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call fcn.40046f70
push eax
call sub.user32.dll_FrameRect
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_GetMessageTime
mov eax, dword [ebp - 4]
call fcn.40046f70
push eax
call sub.user32.dll_EnumWindows
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4003269b
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
test bl, bl
je 0x40032637
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
call fcn.40046f70
push eax
call sub.user32.dll_EqualRect
test eax, 0x100000
je 0x40032637
test eax, 0x200000
je 0x40032637
push 2
call sub.user32.dll_EnumChildWindows
mov edi, eax
push 3
call sub.user32.dll_EnumChildWindows
mov ebx, eax
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea eax, [ebp - 0x18]
push eax
call sub.user32.dll_GetClassInfoA
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0xc]
sub edx, ebx
mov eax, dword [ebp - 0x10]
sub eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.400180cc
push esi
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push 0xf
call sub.user32.dll_EnableWindow
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.400075a8
mov eax, dword [ebp - 0x1c]
sub eax, 2
push eax
mov eax, dword [ebp - 0x20]
sub eax, 2
push eax
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
mov eax, dword [ebp - 0x28]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_ExcludeClipRect
lea ecx, [ebp - 0x34]
mov dl, 2
mov eax, esi
call fcn.400320dc
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.40032030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x400326a2
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.40046f70
push eax
call sub.user32.dll_GetSystemMetrics
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4003c5d4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
call fcn.4003ca1c
mov esi, eax
mov dword [ebp - 0x14], esi
push 4
push esi
call sub.user32.dll_DrawEdge
mov edx, dword [0x400959f0]
mov edx, dword [edx]
cmp eax, dword [edx + 0x30]
je 0x4003c62f
mov eax, dword [ebp - 0x14]
call fcn.4003ba5c
mov esi, eax
test esi, esi
je 0x4003c762
jmp 0x4003c61e
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4003c61c
mov eax, esi
call fcn.40046f70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4003c762
mov esi, ebx
jmp 0x4003c63f
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4003c63d
mov eax, esi
call fcn.40046f70
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x14]
je 0x4003c762
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4003c684
mov edx, dword [ebp + 8]
mov esi, eax
jmp 0x4003c671
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4003c66f
mov eax, esi
call fcn.40046f70
mov dword [ebp - 0x1c], eax
jmp 0x4003c6ae
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [0x4003afc8]
call fcn.40003e4c
test al, al
je 0x4003c6a9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.40046f70
mov dword [ebp - 0x1c], eax
jmp 0x4003c6ae
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 9]
mov dword [ebp - 0x10], edx
mov edx, dword [eax - 5]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x1c]
push eax
push 0x4003c568
call sub.KERNEL32.DLL_LeaveCriticalSection
push eax
call fcn.40007590
cmp byte [ebp - 8], 0
je 0x4003c762
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_FrameRect
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
mov eax, ebx
mov si, 0xffbc
call fcn.40003ebc
mov eax, dword [0x4009ac2c]
mov edx, dword [0x40039588]
call fcn.40003e4c
test al, al
je 0x4003c749
mov eax, dword [0x4009ac2c]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x94], 0
je 0x4003c749
mov eax, dword [0x4009ac2c]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x94]
call fcn.40046f70
cmp eax, dword [ebp - 0x14]
je 0x4003c762
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetClipboardData
test eax, eax
je 0x4003c762
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4003c7b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4009ac50], 0
je 0x4003c8fd
push 0x11
call sub.user32.dll_ClientToScreen
test ax, 0x8000
setne al
mov edx, dword [0x400959f0]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4003c8fd
mov eax, dword [0x4009ac54]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4009ac50]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4003c8cc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4009ac50]
call fcn.4001951c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4003c8c4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4003c8c4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4003c8c4
mov eax, dword [ebp - 0x14]
call fcn.40046f70
push eax
call sub.user32.dll_GetKeyState
test eax, eax
je 0x4003c8c4
push ebp
call fcn.4003c770
pop ecx
test al, al
jne 0x4003c8c4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.40003ebc
test al, al
je 0x4003c8c4
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.40003ebc
cmp byte [ebp - 1], 0
je 0x4003c8c4
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_GetScrollPos
test eax, eax
je 0x4003c8c4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4009ac54]
call fcn.4003bee0
inc edi
dec ebx
jne 0x4003c819
mov eax, dword [0x4009ac54]
cmp dword [eax + 8], 0
jle 0x4003c8e4
mov eax, dword [0x4009ac54]
call fcn.4003bf98
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4003c8fd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.4003c5d4
pop ecx
test al, al
jne 0x4003c8fd
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4003f404
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x1cc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, edi
call fcn.40019578
mov esi, eax
test esi, esi
jle 0x4003f481
dec esi
mov edx, esi
mov eax, edi
call fcn.4001951c
mov ebx, eax
cmp byte [ebx + 0x57], 0
je 0x4003f47d
test byte [ebx + 0x50], 0x40
je 0x4003f47d
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.4003e91c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffec
push eax
lea eax, [ebp - 0x11]
push eax
call sub.user32.dll_GetClipboardData
mov eax, dword [ebp + 8]
add eax, 0xffffffec
push eax
lea eax, [ebp - 0x11]
push eax
call fcn.400075a0
test eax, eax
jne 0x4003f485
test esi, esi
jg 0x4003f433
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40043148
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40043266
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x8c
call fcn.400035e0
mov eax, dword [esi + 0x64]
mov dword [ebx], eax
mov dword [ebx + 4], 0x44000000
lea edx, [ebx + 8]
mov eax, esi
call fcn.400430e0
test byte [esi + 0x50], 1
je 0x400431a3
or dword [ebx + 4], 0x2000000
or dword [ebx + 8], 0x10000
test byte [esi + 0x1c], 0x10
jne 0x400431bb
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x400431bb
or dword [ebx + 4], 0x8000000
cmp byte [esi + 0x1d8], 0
je 0x400431cb
or dword [ebx + 4], 0x10000
mov eax, dword [esi + 0x40]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x18], eax
mov edi, dword [esi + 0x30]
test edi, edi
je 0x400431f6
mov eax, edi
call fcn.40046f70
mov dword [ebx + 0x1c], eax
jmp 0x400431ff
mov eax, dword [esi + 0x1c4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], 0xb
mov eax, fcn.400074f8
mov dword [ebx + 0x28], eax
push 0x7f00
push 0
call sub.user32.dll_GetKeyboardState
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
mov eax, dword [0x400987f8]
mov dword [ebx + 0x34], eax
lea edx, [ebp - 0x104]
mov eax, dword [esi]
call fcn.40003ba0
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.40004ec8
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x4c]
call fcn.40009d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4004326d
lea eax, [ebp - 4]
call fcn.40004c64
ret
Function at 0x40046ae4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, eax
mov ebx, dword [edi + 0x1b4]
test ebx, ebx
je 0x40046b08
push ebx
call sub.user32.dll_GetKeyState
test eax, eax
jne 0x40046b0c
xor eax, eax
jmp 0x40046b0e
mov al, 1
mov byte [esp + 8], al
cmp byte [esp + 8], 0
je 0x40046b33
push 0
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [edi + 0x1b4]
push eax
call sub.user32.dll_GetWindowLongW
mov eax, edi
call fcn.40042fbc
mov esi, eax
dec esi
test esi, esi
jl 0x40046bad
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, edi
call fcn.40042f80
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4003afc8]
call fcn.40003e4c
test al, al
je 0x40046b69
cmp dword [ebx + 0x1b4], 0
jne 0x40046b78
mov eax, dword [esp]
add dword [ebx + 0x40], eax
mov eax, dword [esp + 4]
add dword [ebx + 0x44], eax
jmp 0x40046ba9
cmp byte [esp + 8], 0
jne 0x40046ba9
push 0x14
mov eax, ebx
mov edx, dword [eax + 0x4c]
push edx
mov edx, dword [eax + 0x48]
push edx
mov edx, dword [eax + 0x44]
add edx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 0x40]
add edx, dword [esp + 0x10]
push edx
push 0
mov eax, dword [eax + 0x1b4]
push eax
call sub.user32.dll_LoadBitmapA
inc ebp
dec esi
jne 0x40046b44
mov eax, edi
call fcn.40042b00
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4004c528
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x400959f0]
mov eax, dword [eax]
call fcn.40003cc0
mov eax, dword [0x400959f0]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x40095c0c]
mov eax, dword [eax]
call fcn.40003cc0
mov eax, dword [0x40095c0c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4009ac04]
call fcn.40003cc0
xor eax, eax
mov dword [0x4009ac04], eax
mov eax, dword [0x4009ac5c]
call fcn.40003cc0
movzx eax, word [0x4009ac1a]
push eax
call sub.KERNEL32.DLL_CreateThread
mov eax, 0x4009ac20
call fcn.40004c64
movzx eax, word [0x4009ac18]
push eax
call sub.KERNEL32.DLL_CreateThread
mov eax, 0x4009ac1c
call fcn.40004c64
cmp dword [0x400945c4], 0
je 0x4004c5af
mov eax, dword [0x400945c4]
push eax
call sub.KERNEL32.DLL_GlobalAlloc
ret

Function at 0x4004c5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4004c728
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4004c73c
call fcn.4000a714
mov edx, dword [ebp - 4]
mov eax, 0x4009ac1c
call fcn.40004cb8
mov eax, dword [0x4009ac1c]
call fcn.400050f4
push eax
call sub.KERNEL32.DLL_WriteFile
mov word [0x4009ac18], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x400987f8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.KERNEL32.DLL_LeaveCriticalSection
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4004c750
call fcn.4000a714
mov edx, dword [ebp - 0x10]
mov eax, 0x4009ac20
call fcn.40004cb8
mov eax, dword [0x4009ac20]
call fcn.400050f4
push eax
call sub.KERNEL32.DLL_WriteFile
mov word [0x4009ac1a], ax
mov eax, dword [0x4009ac20]
call fcn.400050f4
push eax
call sub.user32.dll_GetSysColorBrush
mov dword [0x4009ac24], eax
mov dl, 1
mov eax, dword [0x40016eb0]
call fcn.4001978c
mov dword [0x4009ac5c], eax
call fcn.4004c1b8
mov dl, 1
mov eax, dword [0x4003b8c4]
call fcn.4004bf64
mov dword [0x4009ac04], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40051434]
call fcn.40059b94
mov edx, dword [0x40095c0c]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40051538]
call fcn.4005ad9c
mov edx, dword [0x400959f0]
mov dword [edx], eax
mov eax, dword [0x400959f0]
mov eax, dword [eax]
mov dl, 1
call fcn.4005cfbc
mov ecx, 0x4003bcac
mov edx, 0x4003bcbc
mov eax, dword [0x40039290]
call fcn.40018ee4
push 0x4004c764
call sub.KERNEL32.DLL_SetEvent
mov ebx, eax
test ebx, ebx
je 0x4004c70a
push 0x4004c76c
push ebx
call sub.KERNEL32.DLL_SetFilePointer
mov dword [0x40094494], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4004c72f
lea eax, [ebp - 0x10]
call fcn.40004c64
lea eax, [ebp - 4]
call fcn.40004c64
ret
Function at 0x40059f50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
push 0x7f00
push 0
call sub.user32.dll_GetKeyboardState
mov dword [ebp + 0x60], eax
mov ebx, 0xffffffea
mov esi, 0x40094698
cmp ebx, 0xffffffef
jl 0x40059f79
cmp ebx, 0xfffffff4
jle 0x40059f7e
cmp ebx, 0xffffffeb
jne 0x40059f86
mov edi, dword [0x400987f8]
jmp 0x40059f88
xor edi, edi
mov eax, dword [esi]
push eax
push edi
call sub.user32.dll_GetKeyboardState
mov ecx, eax
mov edx, ebx
mov eax, ebp
call fcn.4005a00c
inc ebx
add esi, 4
cmp ebx, 0xffffffff
jne 0x40059f6f
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4005a034
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4005a1df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4005a1c0
mov dl, 1
mov eax, dword [0x400174b8]
call fcn.40003c90
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.40004c64
lea eax, [ebp - 0x114]
push eax
push pe_nt_image_headers32
call sub.user32.dll_CreateMenu
dec eax
test eax, eax
jl 0x4005a1af
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.4004c514
test al, al
je 0x4005a1a2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4005a1f0
lea eax, [ebp - 0x254]
call fcn.4000a694
push eax
push 0x80000002
call sub.KERNEL32.DLL_GetDateFormatA
test eax, eax
jne 0x4005a1a2
xor eax, eax
push ebp
push 0x4005a19b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4005a228
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x4005a184
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.40004ed4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4005a184
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.40004ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4005a1a2
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetCPInfo
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4005a0a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.4001be3c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4005a1e6
lea eax, [ebp - 0x260]
call fcn.40004c64
ret