joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cb2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x84
jg 0x45cb60
je 0x45cbc3
sub eax, 7
je 0x45cb81
dec eax
je 0x45cbb1
sub eax, 0x17
je 0x45cc85
jmp 0x45cccf
add eax, 0xffffff00
sub eax, 9
jb 0x45cc70
add eax, 0xffffff09
sub eax, 0xb
jb 0x45cc29
jmp 0x45cccf
mov eax, dword [ebp - 0x14]
call fcn.00440c58
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45cd3c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x45cd47
jmp 0x45cd3c
mov eax, dword [ebp - 0x14]
test byte [eax + 0x44], 0x20
jne 0x45cd47
jmp 0x45cd3c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004595e8
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xffffffff
jne 0x45cd47
push 0
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00481c64
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x14]
call fcn.004578a0
lea edx, [ebp - 0x124]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.0045c9b0
test eax, eax
je 0x45cd47
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
jmp 0x45cd47
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0045ca6c
test al, al
je 0x45cd3c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x45cd47
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0045fe70
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x45cd47
mov eax, dword [ebp - 0x14]
call fcn.00458978
test al, al
jne 0x45cd47
jmp 0x45cd3c
mov eax, dword [ebp - 0x14]
call fcn.0045fe70
mov ebx, eax
call sub.USER32.DLL_GetCapture
cmp ebx, eax
jne 0x45cd3c
cmp dword [0x4f2838], 0
je 0x45cd3c
mov eax, dword [0x4f2838]
mov eax, dword [eax + 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x45cd3c
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4f2838]
call fcn.0045949c
jmp 0x45cd3c
mov eax, dword [0x4f78e4]
cmp byte [eax + 0x20], 0
je 0x45cd3c
mov eax, dword [0x4f78e4]
cmp dword [eax + 0x1c], 0
je 0x45cd3c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x4f78e4]
cmp eax, dword [edx + 0x1c]
jne 0x45cd3c
lea eax, [ebp - 0x11c]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.00440b74
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffb7
call fcn.0048f760
jmp 0x45cd47
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004595e8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d388
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e8], 0
je 0x45d3a9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x45d3de
mov eax, dword [ebp - 4]
test byte [eax + 0x45], 1
jne 0x45d3ce
mov eax, dword [ebp - 4]
call fcn.0045be40
test eax, eax
jne 0x45d3ce
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45d508
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045cf04
jmp 0x45d508
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x45d501
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0045fe70
push eax
call sub.USER32.DLL_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0045949c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045d388
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0045fe70
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d508
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.GDI32.DLL_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x465288
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x4f7414]
cmp byte [eax + 8], 0
je 0x4653fa
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4653f3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f7928], 0
jne 0x4652e1
push 0x465400
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 4], eax
push 0x465408
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7928], eax
cmp dword [0x4f2898], 0
jne 0x4653dc
push 0x465418
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4f2898], eax
cmp dword [0x4f2898], 0
je 0x4653dc
push 0x465424
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f792c], eax
push 0x465434
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7930], eax
push 0x465448
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7934], eax
push 0x465460
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7938], eax
push 0x465478
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f793c], eax
push 0x46548c
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7940], eax
push 0x4654a4
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7944], eax
push 0x4654bc
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7948], eax
push 0x4654d8
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f794c], eax
push 0x4654e4
mov eax, dword [0x4f2898]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f7950], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4653fa
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x46909c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x469181
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f7968], 0
jne 0x469163
lea eax, [ebp - 8]
mov edx, 0x469198
call fcn.00490360
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00490734
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x469163
mov eax, dword [ebp - 0xc]
call fcn.0048eafc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46915c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00490734
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x469146
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4691a8
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x469146
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [0x4f7968], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469163
mov eax, dword [ebp - 0x14]
call fcn.0048eb14
ret
mov eax, dword [0x4f7968]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469188
lea eax, [ebp - 8]
call fcn.004902c8
ret

Function at 0x47329c
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4f798c], 0
jne 0x4732c2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4731fc
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4f798c], eax
pop ebp
ret

Function at 0x473d64
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x473dd6
mov eax, dword [0x4f71d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x473da8
mov eax, dword [ebp - 4]
push eax
push 0x473de0
call fcn.004409dc
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x473dcf
mov ecx, dword [0x4f7660]
mov dl, 1
mov eax, dword [0x4849d8]
call fcn.00489d44
call fcn.0048fd10
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
inc dword [eax + 4]
pop ecx
pop ebp
ret
Function at 0x473e18
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00473d64
xor eax, eax
push ebp
push 0x473ed1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
je 0x473ea4
mov dx, word [ebp - 0xe]
mov eax, dword [0x432fa0]
call fcn.00438354
test al, al
je 0x473e8f
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.00438234
call fcn.0048fdb0
jmp 0x473ed8
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
jne 0x473e4c
mov ecx, dword [0x4f7664]
mov dl, 1
mov eax, dword [0x4849d8]
call fcn.00489d44
call fcn.0048fd10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473ed8
mov eax, dword [ebp - 4]
call fcn.00473d20
ret
mov esp, ebp
pop ebp
ret

Function at 0x473edc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00473d64
xor eax, eax
push ebp
push 0x473f3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473f43
mov eax, dword [ebp - 4]
call fcn.00473d20
ret

Function at 0x473f48
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00473d64
xor eax, eax
push ebp
push 0x473fa8
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 3
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473faf
mov eax, dword [ebp - 4]
call fcn.00473d20
ret
Function at 0x47402c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00473d64
xor eax, eax
push ebp
push 0x4740a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00473cf4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.0043831c
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x47408c
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4740a9
mov eax, dword [ebp - 4]
call fcn.00473d20
ret

Function at 0x4740b0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00473d64
xor eax, eax
push ebp
push 0x474127
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00473cf4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x474111
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47412e
mov eax, dword [ebp - 4]
call fcn.00473d20
ret

Function at 0x479b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x479b96
push ebp
call fcn.00479af0
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x479bbc
push ebp
call fcn.00479af0
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00479724
mov esp, ebp
pop ebp
ret 4

Function at 0x47ce50
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
pop ecx
pop ebp
ret
Function at 0x47ce70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x47ce8f
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
pop ecx
pop ebp
ret

Function at 0x486238
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x486269
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x486270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4862a1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x48642c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x486450
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x48647f
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4865f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_DeleteFileA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x48661c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00490734
push eax
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_MoveFileA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x486a7c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00490734
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4892a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4892ec
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004903b0
jmp 0x4892f7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0049031c
mov esp, ebp
pop ebp
ret 4

Function at 0x489300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x48932e
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x489334
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x48ecfb
xor eax, eax
mov al, byte [ebp - 1]
add eax, 0x41
dec eax
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x214]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 1], 0
je 0x48ed1e
lea eax, [ebp - 0x214]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00490520
mov esp, ebp
pop ebp
ret

Function at 0x48eed8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48ef35
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 0xc]
call fcn.0048ee0c
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0048ee0c
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x48ef1f
inc dword [ebp - 4]
jmp 0x48ef06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ef3c
lea eax, [ebp - 0xc]
call fcn.004902c8
ret
Function at 0x48ef44
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48ef7e
push 0x105
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, dword [ebp - 8]
call fcn.004903b0
jmp 0x48efa7
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0048ee0c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x48efa7
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x48efa7
dec dword [ebp - 4]
jmp 0x48ef86
mov esp, ebp
pop ebp
ret

Function at 0x48f3a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f2d04]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x48f440
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x48f420
xor eax, eax
push ebp
push 0x48f419
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x48f45c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f420
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4f2d04]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f2d04], ax
mov esp, ebp
pop ebp
ret

Function at 0x490254
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 8
call fcn.0048eafc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov byte [0x4f7c35], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, 0x49021c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc