joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434b55
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4e8d5d
call fcn.004b48a0
sub esp, 0x1c
push 0x20a
lea ecx, [ebp - 0x10]
call fcn.004494b0
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
mov word [eax], 0x20
mov eax, dword [ebp - 0x10]
and word [eax + 2], 0
mov eax, dword [ebp - 0x10]
push 0x208
add eax, 2
push eax
push 0x4f0208
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 0x10]
call fcn.00449510
mov cl, byte [ebp + 0xc]
test cl, 0x20
mov eax, str.unknown
je 0x434bb9
mov eax, 0x4f3d4c
test cl, 0x10
je 0x434bc3
mov eax, str.reboot
test cl, 2
je 0x434bcd
mov eax, str.logout
test cl, 4
je 0x434bd7
mov eax, str.suspend
test cl, 8
je 0x434be1
mov eax, str.hiber
test cl, 0x40
je 0x434beb
mov eax, str.poweroff
test cl, cl
jns 0x434bf4
mov eax, str.lock
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00449510
push 0x4f3f00
lea ecx, [ebp - 0x10]
call fcn.00449510
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00449510
push dword [ebp - 0x10]
mov ebx, 0x51d2a0
mov ecx, ebx
call fcn.00433888
test byte [ebp + 0xc], 0x70
push 6
pop ecx
mov esi, str._25INDATA
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
je 0x434c45
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00433888
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x434c60
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call fcn.00434b55
push 2
push str.SeShutdownPrivilege
and esi, 0x4000
call fcn.004226a0
push 2
push str.SeRemoteShutdownPrivilege
call fcn.004226a0
add esp, 0x18
call fcn.00420af8
xor edi, edi
test byte [ebp + 0xc], 1
jne 0x434cc4
cmp eax, 0x60002
jb 0x434cc4
xor eax, eax
cmp dword [ebp + 8], edi
setne al
push eax
push 1
push edi
push 0x4efd50
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x434ce3
lea eax, [ebp - 4]
push eax
push 1
push 2
push edi
push 1
push 0x16
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push str.NtShutdownSystem
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, edi
je 0x434d0f
xor eax, eax
cmp dword [ebp + 8], edi
sete al
inc eax
push eax
call ecx
pop edi
pop esi
leave
ret
Function at 0x435e62
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
cmp ax, 0x40
jne 0x435e8c
add ecx, 2
push ecx
call fcn.00422077
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0041f8a9
jmp 0x435ed5
cmp ax, 0x23
jne 0x435ea1
add ecx, 2
push 0
push ecx
call fcn.004346d2
pop ecx
pop ecx
jmp 0x435ed5
xor edx, edx
cmp ax, dx
je 0x435eb1
push ecx
call fcn.0042b04e
pop ecx
leave
ret
push esi
push edi
push 0x10
pop ecx
mov esi, str.PATH____SystemRoot_SYSTEM32
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push edx
push edx
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x51d2a0
movsw word es:[edi], word [esi]
call fcn.00437b3d
pop edi
pop esi
xor eax, eax
leave
ret
Function at 0x43d880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e99a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x28]
lea ecx, [esi + 8]
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4f775c
mov dword [esi + 4], eax
call fcn.00456550
push 0xffffffffffffffff
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [esi + 0xc]
push edi
mov dword [esp + 0x24], ebx
mov dword [ecx], ebx
call fcn.004493e0
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x1c], 1
call fcn.00456550
mov eax, dword [esp + 0x2c]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.00456550
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edi + 4], ebx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24

Function at 0x43d940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e99a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
lea ecx, [esi + 8]
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x4f775c
mov dword [esi + 4], eax
call fcn.00456550
push 0xffffffffffffffff
push 0xffffffffffffffff
xor ebp, ebp
lea ecx, [esi + 0xc]
push edi
mov dword [esp + 0x28], ebp
mov dword [ecx], ebp
call fcn.004493e0
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x20], 1
call fcn.00456550
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.00456550
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [edi + 4], ebx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebp
pop edi
mov dword [esi + 0x3c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x443780
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4438b0
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x4438d0
mov al, byte [0x51d638]
and al, 0xfb
push 4
push str.SeDebugPrivilege
mov byte [0x51d638], al
call fcn.004226a0
add esp, 8
ret

Function at 0x444780
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ax, word [0x51c734]
test ax, ax
jne 0x4447b2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x51d154]
pop ecx
ret
push 0
movzx edx, ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push 0
or edx, 0x20019
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x444819
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x444820
Capabilities:
Set registry value

Disassembly:
push ecx
mov ax, word [0x51c734]
test ax, ax
jne 0x444852
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x51d3dc]
pop ecx
ret
push 0
movzx edx, ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push 0
or edx, 0x20006
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4448b9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4448c0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ax, word [0x51c734]
test ax, ax
jne 0x4448e3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [0x51d3e0]
pop ecx
ret
movzx edx, ax
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
or edx, 2
push edx
push 0
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44492c
mov edx, dword [esp + 0x10]
mov eax, dword [esp]
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x445e60
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x445e91
mov eax, dword [ecx]
cmp eax, 1
je 0x445e6f
test eax, eax
jne 0x445e91
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x80
or eax, 0x17
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
ret
mov eax, dword [ecx]
test eax, eax
mov edx, 5
jge 0x445eb4
mov dword [ecx], 0
mov eax, dword [ecx]
mov edx, dword [eax*4 + 0x4f8b50]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
ret
cmp eax, 0xd
jae 0x445ec2
mov eax, dword [ecx]
mov edx, dword [eax*4 + 0x4f8b50]
push edx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4464d0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x1c
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push str.Shell_TrayWnd
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
dec eax
dec ebx
inc edi
cmp edi, eax
mov dword [esp + 8], eax
jge 0x446570
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [esp + 0x20]
inc esi
cmp esi, ebx
jge 0x446567
lea esp, [esp]
push esi
push edi
call dword [sym.imp.USER32.dll_SetCursorPos]
push 0
call ebp
add esi, 4
cmp esi, ebx
jl 0x446550
mov eax, dword [esp + 0x10]
add edi, 4
cmp edi, eax
jl 0x446543
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x446960
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
jne 0x446970
lea edi, [esp + 0x14]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4469a7
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x1000
push edx
push eax
mov dword [esi + 8], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x4469d1
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 8], edx
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0xc]
mov byte [eax], dl
mov dword [edi], 1
pop edi
mov eax, 1
pop esi
ret 0xc
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x446a30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea ecx, [eax + 1]
mov dword [esi + 0xc], ecx
mov cl, byte [esp + 8]
mov byte [eax + edx], cl
mov eax, dword [esi + 0xc]
cmp eax, 0x1000
jl 0x446a70
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], 0
mov eax, 1
pop esi
ret 4

Function at 0x446d70
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
mov byte [esp + 0xb], 0x41
je 0x446db3
mov esi, dword [esp + 0x10]
test bl, 1
je 0x446da3
movsx ax, byte [esp + 0xb]
push esi
mov word [esi], ax
call fcn.004b0cb0
add esp, 4
test eax, eax
jne 0x446dba
mov cl, byte [esp + 0xb]
shr ebx, 1
inc cl
test ebx, ebx
mov byte [esp + 0xb], cl
jne 0x446d88
pop esi
xor ax, ax
pop ebx
pop ecx
ret
movzx ax, byte [esp + 0xb]
pop esi
pop ebx
pop ecx
ret

Function at 0x446f60
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
push 0x7405c
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call ebp
push edi
lea edx, [esp + 0xc]
push edx
push 0x18
push esi
push edi
push edi
push 0x70000
push ebx
mov dword [esp + 0x2c], eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebp
cmp dword [esp + 0xc], edi
je 0x446fc6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edi
push ecx
push edx
push eax
call fcn.004b4970
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push ecx
push edx
push eax
call fcn.004b4970
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x447240
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
xor eax, eax
push eax
mov dword [ebx], 0
mov ecx, 0x30
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x100000
push esi
push 0
push 0
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x447288
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 4]
pop edi
mov eax, esi
pop esi
mov dword [ebx], edx
pop ebx
ret
Function at 0x447560
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4475c6
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [eax + eax + 2]
push ebp
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebp
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x4475d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
mov ecx, dword [edi]
push 0x40
push 0xc
push ecx
mov dword [esp + 0x1c], 0
lea esi, [edi + 4]
call ebx
lea edx, [esp + 0xc]
push edx
push 0x40
push 0x12
push esi
call ebx
mov ecx, dword [0x4f813c]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x4f8140]
mov dword [eax + 4], edx
mov ecx, dword [0x4f8144]
mov dword [eax + 8], ecx
mov edx, dword [0x4f8148]
mov dword [eax + 0xc], edx
mov cx, word [0x4f814c]
mov edx, dword [esp + 0x14]
mov word [eax + 0x10], cx
lea eax, [esi + 0xe]
sub edx, eax
sub edx, 4
mov dword [eax], edx
mov edi, dword [edi + 0x18]
test edi, edi
je 0x44765a
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x44765a
mov dword [ecx], eax
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x447dc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, edi
mov dword [eax], 0
mov ebp, 0x80
jbe 0x447e77
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x447e37
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x447e27
test ebp, ebp
jg 0x447e26
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, esi
add edx, eax
add ebx, eax
mov dword [ecx], edx
sub edi, eax
jmp 0x447e6e
dec ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
add edx, eax
add ebx, eax
mov dword [ecx], edx
sub edi, eax
jmp 0x447e6e
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x447e76
cmp esi, 0x200
jbe 0x447e76
cmp edi, 0x200
jbe 0x447e6c
add esi, 0x1ff
shr esi, 1
cmp esi, 0x200
jbe 0x447e6e
and esi, 0xfffffe00
jmp 0x447e6e
mov esi, edi
test edi, edi
ja 0x447de5
pop ebx
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
xor ecx, ecx
cmp ecx, esi
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
ret
Function at 0x447f60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
mov dword [0x51d59c], 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, byte [esp + 0x11]
mov al, 0x80
test al, cl
je 0x447f8b
or dword [0x51d59c], 2
test byte [esp + 0x10], al
je 0x447f98
or dword [0x51d59c], 4
test byte [esp + 0x12], al
je 0x447fa5
or dword [0x51d59c], 1
test byte [esp + 0x5b], al
mov ecx, 8
je 0x447fb6
or dword [0x51d59c], ecx
test byte [esp + 0x5c], al
je 0x447fc2
or dword [0x51d59c], ecx
add esp, 0x100
ret

Function at 0x448be0
Capabilities:
Set environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e9d98
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
xor ecx, ecx
mov cl, byte [esi + 0xb]
push edi
mov edi, dword [esp + 0x18]
mov ax, word [edi]
and ecx, 0xf
cmp ax, 0x26
je 0x448c36
test ecx, ecx
jne 0x448c36
test ax, ax
je 0x448c6b
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
push 0x51d5ec
mov dword [esp + 0x1c], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00420086
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x448c80
Capabilities:
Set environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.00448be0
push esi
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
ret 8

Function at 0x449130
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add ebp, 8
mov eax, dword [0x51d3c8]
push ebp
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x449179
push 5
push 0x4f9240
push 0x4f924c
push eax
call edi
cmp eax, 4
je 0x449147
cmp eax, 5
je 0x449179
push 8
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 4], 0xaa55
mov dword [esi], ecx
lea eax, [esi + 8]
pop esi
pop ebp
pop ebx
ret
Function at 0x449de0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4e9de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
mov dword [ebp], 0x4f8810
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [esp + 0x18], 0
je 0x449e1e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x51d3cc], 1
jle 0x449ec9
mov eax, dword [ebp + 0x48]
test eax, eax
push edi
lea edi, [ebp + 0x48]
je 0x449ec8
push esi
push 0x51d5ec
mov dword [esp + 0x18], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
call fcn.004483d0
mov eax, dword [0x51d5a0]
test eax, eax
mov esi, 0xfffffffd
mov dword [esp + 0xc], esi
je 0x449e83
push 0
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x449e83
cmp esi, 1
jne 0x449e83
call dword [0x51d5a4]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push edi
mov byte [esp + 0x44], 2
call dword [0x51d3cc]
mov dword [edi], 0
mov eax, dword [0x51d5a4]
add esp, 0x24
test eax, eax
mov byte [esp + 0x20], 1
je 0x449ebc
test esi, esi
jne 0x449ebc
call eax
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov ecx, ebp
mov dword [esp + 0x18], 0xffffffff
call fcn.004a7f30
mov ecx, dword [esp + 0x10]
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x449fe0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
cmp word [edi], 0x7a
jbe 0x44a0c7
cmp word [edi + 2], 0x3a
jne 0x44a0c7
cmp word [edi + 4], 0
jne 0x44a0c7
mov eax, dword [esp + 0x220]
test eax, eax
mov word [esp + 4], 0
je 0x44a026
mov dword [eax], 0
push esi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov cx, word [edi]
cmp cx, word [esp + 8]
jne 0x44a08a
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
cmp esi, 4
jbe 0x44a08a
cmp dword [esp + 0x21c], esi
jae 0x44a068
mov eax, esi
pop esi
pop edi
add esp, 0x20c
ret
mov ecx, dword [esp + 0x220]
push esi
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00417dcd
add esp, 0xc
lea eax, [esi - 1]
pop esi
pop edi
add esp, 0x20c
ret
mov ecx, dword [esp + 0x21c]
mov eax, 4
cmp ecx, eax
jb 0x44a05f
mov dx, word [edi]
mov eax, dword [esp + 0x220]
pop esi
mov word [eax], dx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
mov word [eax + 6], 0
mov eax, 3
pop edi
add esp, 0x20c
ret
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x218]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
add esp, 0x20c
ret