joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4750f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5d5120]
cmp byte [eax + 0xc], 0
je 0x475261
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47525a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5dacb8], 0
jne 0x475148
push 0x475268
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x475270
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacb8], eax
cmp dword [0x5cdbcc], 0
jne 0x475243
push 0x475280
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5cdbcc], eax
cmp dword [0x5cdbcc], 0
je 0x475243
push 0x47528c
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacbc], eax
push 0x47529c
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacc0], eax
push 0x4752b0
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacc4], eax
push 0x4752c8
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacc8], eax
push 0x4752e0
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5daccc], eax
push 0x4752f4
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacd0], eax
push 0x47530c
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacd4], eax
push 0x475324
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacd8], eax
push 0x475340
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dacdc], eax
push 0x47534c
mov eax, dword [0x5cdbcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5dace0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475261
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x47ae18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x5dacf0]
cmp esi, dword [eax + 0x30]
jne 0x47ae3f
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x47ae6e
mov eax, dword [0x5dacf0]
cmp esi, dword [eax + 0x30]
jne 0x47ae6a
mov eax, dword [0x5dacf0]
cmp byte [eax + 0x5b], 0
jne 0x47ae6e
xor eax, eax
jmp 0x47ae70
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x47ae85
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x47ae9c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x47aeab
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x47aeba
test bl, bl
je 0x47aed0
test bl, bl
je 0x47aec8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x47aed0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47b174
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x47b19a
mov eax, esp
push eax
push 0x47b13c
call sub.user32.dll_EnumWindows
jmp 0x47b1ad
mov eax, esp
push eax
push 0x47b11c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x47b270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x47b2c4]
test si, 4
je 0x47b285
or bl, 1
test si, 8
je 0x47b28f
or bl, 4
test si, 1
je 0x47b299
or bl, 8
test si, 2
je 0x47b2a3
or bl, 0x10
test si, 0x10
je 0x47b2ad
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47b2bc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x47b2c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x47b304]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47b2e2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47b2f1
or bl, 4
test esi, 0x20000000
je 0x47b2fc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x483328
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x48333a
add esp, 0xfffffff0
call fcn.00404e9c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042a930
mov eax, dword [0x5d48e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4836cc
mov eax, dword [0x5d4904]
mov dword [eax + 4], ebx
mov dword [eax], 0x4836d8
mov eax, ebx
call fcn.004836e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x47ec9c
push eax
push 0
push 0
mov eax, dword [0x5d4c1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x431920]
call fcn.00433290
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x431920]
call fcn.00433290
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x431920]
call fcn.00433290
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00483ba4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x483a2c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x483a2c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x483a2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x483477
call fcn.00404ef4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x483810
Capabilities:
Get keyboard layout
Query or enumerate registry value

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 0x4839bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48399c
mov dl, 1
mov eax, dword [0x41c748]
call fcn.00404b08
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405a98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48398b
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.00475450
test al, al
je 0x48397e
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, 0x4839cc
lea eax, [ebp - 0x254]
call fcn.0040c560
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48397e
xor eax, eax
push ebp
push 0x483977
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x483a04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x483960
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
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 0x483960
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48397e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x483881
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00421bf4
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 0x4839c2
lea eax, [ebp - 0x260]
call fcn.00405a98
ret

Function at 0x484444
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5dacf0]
cmp byte [eax + 0xad], 0
jne 0x4844b5
cmp dword [0x5dad0c], 0
jne 0x484476
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x484400
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5dad0c], eax
cmp dword [0x5dad08], 0
jne 0x484491
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5dad08], eax
cmp dword [0x5dad10], 0
jne 0x4844b5
push esp
push 0
push 0
push 0x4843a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5dad10], eax
pop edx
ret
Function at 0x484688
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48469f
add esp, 0xfffffff0
call fcn.00404e9c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042a930
mov eax, dword [0x5d4bc8]
cmp word [eax + 2], 0
jne 0x4846c7
mov eax, dword [0x5d4bc8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004860e4
mov eax, dword [0x5d4dbc]
cmp word [eax + 2], 0
jne 0x4846e1
mov eax, dword [0x5d4dbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004862f0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00404b08
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4324d0]
call fcn.0043b1bc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x484898
mov eax, dword [0x5d49d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043b5a4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4869b4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5d49d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0041058c
test eax, eax
je 0x4847e8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040bedc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004105c0
test eax, eax
je 0x4847fc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
mov byte [ebx + 0xd4], 0
push ebx
push 0x485db0
call fcn.0042baac
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5d46c8]
cmp byte [eax], 0
jne 0x48484d
mov eax, ebx
call fcn.004849dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00486b8c
mov eax, ebx
call fcn.004876f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48488d
call fcn.00404ef4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484c5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x484cfb
cmp dword [ebx + 0x94], 0
jne 0x484cf5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x484be4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x484cf5
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x484cbb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x484cf5
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041eb9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x484cca
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x484f14
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5dacf0]
cmp dword [eax + 0x30], 0
je 0x485071
test bl, bl
jne 0x484fc2
cmp dword [esi + 0x9c], 0
jne 0x484fb7
mov eax, esi
call fcn.0048756c
push eax
push 0x484e40
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x484f88
mov eax, dword [0x5dacf0]
call fcn.00487c4c
test al, al
je 0x484f88
mov eax, dword [0x5dad14]
call fcn.004072d0
mov edi, eax
cmp edi, 0
jl 0x484f88
push 0
mov eax, dword [0x5dad14]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x484f72
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x484fb7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041eb9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x484f97
inc dword [esi + 0x9c]
jmp 0x485071
cmp dword [esi + 0x9c], 0
jle 0x485071
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x485071
cmp dword [esi + 0x44], 0
je 0x48501d
mov eax, dword [0x5dacf0]
call fcn.00487c4c
test al, al
je 0x48501d
mov eax, dword [0x5dad14]
call fcn.004072d0
mov edi, eax
cmp edi, 0
jl 0x48501d
push 5
mov eax, dword [0x5dad14]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x485007
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48504c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041eb9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48502c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5dad14
mov ecx, 1
mov edx, dword [0x484e20]
call fcn.00407484
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x485b04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x485b6e
mov eax, ebx
call fcn.00487c4c
test al, al
jne 0x485b6e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405b88
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x485b5b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x485b7b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405aec
jmp 0x485b7b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405aec
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x486d70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x486dde
mov eax, esi
call fcn.00470088
test al, al
je 0x486dde
mov eax, dword [ebx + 0x84]
call fcn.0046fcd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x486dde
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x486dd2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046fcd8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00467bd8
jmp 0x486dde
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00486bac
pop esi
pop ebx
ret

Function at 0x48e210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x4b04ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
xor ecx, ecx
push ebp
push 0x4b05c2
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
push ebp
push 0x4b059b
push dword fs:[ecx]
mov dword fs:[ecx], esp
test al, al
je 0x4b0527
mov esi, 0x400
jmp 0x4b052c
mov esi, 0x800
test dl, dl
je 0x4b0537
mov edi, 9
jmp 0x4b053c
mov edi, 1
mov eax, 0x104
call fcn.00402fc0
mov ebx, eax
push 0x104
push ebx
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00404494
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.00405cfc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4b05dc
call fcn.00405db0
mov eax, dword [ebp - 4]
call fcn.0040b328
mov esi, eax
mov eax, ebx
call fcn.00402fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b05a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b05c9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405abc
ret
Function at 0x4b087c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x4b08d2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_SetFileApisToANSI
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b08b6
test al, 0x10
jne 0x4b08ba
xor ebx, ebx
jmp 0x4b08bc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b08d9
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x4b09b0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4b09fa
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid
Function at 0x4b13b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x411ee8]
call fcn.00406794
xor eax, eax
push ebp
push 0x4b1551
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5ce1e0], 0
jne 0x4b140b
mov ecx, dword [0x5d470c]
mov dl, 1
mov eax, dword [0x409a6c]
call fcn.0040f614
call fcn.004053ec
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403d74
mov eax, ebx
call fcn.00406448
mov dword [ebp - 0x24], eax
mov esi, 0x4b1560
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00407cbc
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00406458
test eax, eax
jle 0x4b14f4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b14e0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405d08
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4b1486
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405d20
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4b149c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405d20
mov eax, dword [ebp - 0x54]
call fcn.00405f28
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405d08
mov eax, dword [ebp - 0x58]
call fcn.00405f28
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4b14e2
xor eax, eax
test al, al
je 0x4b14ed
mov ebx, 0x15
jmp 0x4b14f9
mov ebx, 0x10
jmp 0x4b14f9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x5ce1e0]
call fcn.004b11d4
mov eax, dword [ebp - 4]
call fcn.004b11d4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1558
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405abc
lea eax, [ebp - 0xc]
mov edx, dword [0x411ee8]
call fcn.00406864
ret
Function at 0x4c23c0
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [0x5d5110]
cmp dword [eax], 1
jne 0x4c24b5
push 0x4c25ac
push 0x4c25c4
call sub.user32.dll_FindWindowA
test eax, eax
je 0x4c23f2
mov byte [ebp - 1], 1
jmp 0x4c259f
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403d74
mov dword [ebp - 0x54], 0x44
mov eax, 0x104
call fcn.00402fc0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c24ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x104
push 0
push 0x4c25d4
push 0
call sub.kernel32.dll_SearchPathA
test eax, eax
jne 0x4c244f
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c2498
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4c2482
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c2498
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c259f
mov eax, dword [ebp - 8]
call fcn.00402fdc
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x4c24d6
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c259f
push 4
push 0x4c25e0
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x4c24f8
push 0x10
push 0x4c25e0
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x4c2512
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c259f
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4c2533
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c259f
cmp dword [ebp - 0x7c], 4
jne 0x4c2545
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
jmp 0x4c259f
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0x10
push 0x4c25e0
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4c2595
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c259f
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret