joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f5c4
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 0x45f76f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f750
mov dl, 1
mov eax, dword [0x412394]
call fcn.00403320
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f73f
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.0044d0f4
test al, al
je 0x45f732
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, 0x45f780
lea eax, [ebp - 0x254]
call fcn.00408eac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f732
xor eax, eax
push ebp
push 0x45f72b
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 0x45f7b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f714
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404310
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 0x45f714
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f732
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45f635
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415e88
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 0x45f776
lea eax, [ebp - 0x260]
call fcn.004040a0
ret

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

Disassembly:
push ecx
mov eax, dword [0x49abdc]
cmp byte [eax + 0xa5], 0
jne 0x460115
cmp dword [0x49abf4], 0
jne 0x4600d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460060
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49abf4], eax
cmp dword [0x49abf0], 0
jne 0x4600f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49abf0], eax
cmp dword [0x49abf8], 0
jne 0x460115
push esp
push 0
push 0
push 0x460004
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49abf8], eax
pop edx
ret
Function at 0x46020c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x460223
add esp, 0xfffffff0
call fcn.00403674
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419cb0
mov eax, dword [0x499bd8]
cmp word [eax + 2], 0
jne 0x46024b
mov eax, dword [0x499bd8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004618e4
mov eax, dword [0x499c94]
cmp word [eax + 2], 0
jne 0x460265
mov eax, dword [0x499c94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461adc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f78]
call fcn.00403320
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f78]
call fcn.00403320
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c240]
call fcn.00423d40
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4603ec
mov eax, dword [0x499ae8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424110
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4620ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x499ae8]
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.0040c9c0
test eax, eax
je 0x46035a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9e8
test eax, eax
je 0x46036e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404310
mov eax, dword [0x4999b0]
cmp byte [eax], 0
jne 0x4603a2
mov eax, ebx
call fcn.00460514
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00462288
mov eax, ebx
call fcn.00462c4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4603e2
call fcn.004036cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460794
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49abdc]
cmp dword [eax + 0x30], 0
je 0x46083e
cmp dword [ebx + 0x94], 0
jne 0x460838
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460724
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460838
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 0x4607fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460838
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.004142e0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46080d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4613a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4613d5
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.00404190
jmp 0x4613e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x462464
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4624a5
mov eax, esi
call fcn.004486dc
test al, al
je 0x4624a5
mov eax, dword [ebx + 0x84]
call fcn.004483d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4624a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004483d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x473050
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
push 0
push 4
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
dec edx
mov eax, dword [ebp - 4]
call fcn.004046ec
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404560
push eax
push 4
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
pop ecx
pop ecx
pop ebp
ret

Function at 0x473098
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004040f4
mov eax, dword [ebp - 4]
call fcn.00404360
test eax, eax
jle 0x473105
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
call fcn.004045b8
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov cl, byte [ecx + ebx - 1]
movzx ebx, word [ebp - 6]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx - 1]
add word [ebp - 6], ax
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x4730ca
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47310c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47317a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xfd
lea eax, [ebp - 8]
mov edx, 0xfe
call fcn.004046ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404560
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004046ec
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004040f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473181
lea eax, [ebp - 8]
call fcn.004040a0
ret

Function at 0x473188
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473221
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x47322c
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 8]
call fcn.00406a40
movzx eax, ax
lea ecx, [ebp - 0x14]
mov edx, 4
call fcn.00408314
push dword [ebp - 0x14]
push 0x473238
lea ecx, [ebp - 0x18]
movzx eax, word [ebp - 8]
mov edx, 4
call fcn.00408314
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00404420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473228
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004040c4
ret
Function at 0x47e3bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47e3ea
mov eax, ebx
call fcn.0047ee70
cmp dword [ebx + 0x40], 0
je 0x47e3e3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47e45b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47e44d
cmp dword [ebx + 8], 0
je 0x47e40c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47e41e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47e44d
cmp dword [ebx + 8], 0
je 0x47e3ff
cmp eax, 3
je 0x47e431
dec eax
jne 0x47e3ff
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47e3ff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47e3ff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47e479
cmp dword [ebx + 0x14], 0xcc
je 0x47e479
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047e484
pop ebx
ret
Function at 0x491c20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 0x14
je 0x491c47
mov ecx, 0x491c64
mov dl, 1
mov eax, dword [0x407048]
call fcn.0040bbf0
call fcn.00403adc
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetKeyState
and al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x491c78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 0x90
je 0x491ca1
mov ecx, 0x491cc0
mov dl, 1
mov eax, dword [0x407048]
call fcn.0040bbf0
call fcn.00403adc
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetKeyState
and al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x402610
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4026b8
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 4], 0
ja 0x4026b1
add eax, 0xfffb5000
cmp eax, 0xb5000
ja 0x4026b1
push 0
lea edx, [esp + 0xc]
push edx
push 0x4b000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4026b1
cmp dword [esp + 8], 0x4b000
jne 0x4026b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4b000
push edi
push 0x354e
call fcn.0041c0f0
push 1
push edi
call fcn.00403120
add esp, 0x14
mov eax, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x4026c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402768
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 4], 0
ja 0x402761
add eax, 0xfffe4fcc
cmp eax, 0xe4fcc
ja 0x402761
push 0
lea edx, [esp + 0xc]
push edx
push 0x1b034
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402761
cmp dword [esp + 8], 0x1b034
jne 0x402761
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1b034
push edi
push 0x354e
call fcn.0041c0f0
push 1
push edi
call fcn.00402770
add esp, 0x14
mov eax, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x409570
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x19c], 0x202
lea eax, [ebp - 0x198]
push eax
mov cx, word [ebp - 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4095a9
xor eax, eax
jmp 0x4095e5
movzx edx, word [ebp - 0x198]
and edx, 0xff
movzx eax, dl
cmp eax, 2
jne 0x4095d6
movzx ecx, word [ebp - 0x198]
shr ecx, 8
and ecx, 0xff
movzx edx, cl
cmp edx, 2
je 0x4095e0
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x4095e5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret

Function at 0x40afe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b016
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47abc3
mov eax, dword fs:[0]
push eax
mov eax, 0x11ac
call fcn.0044a2a0
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x88], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11b0], ecx
mov byte [ebp - 0x108c], 0
push 0xfff
push 0
lea eax, [ebp - 0x108b]
push eax
call fcn.00449d00
add esp, 0xc
push str.cmd.exe
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
lea edx, [ebp - 0x11a4]
push edx
call fcn.00426520
add esp, 0xc
mov dword [ebp - 0x11b4], eax
mov eax, dword [ebp - 0x11b4]
mov dword [ebp - 0x11b8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x11b8]
call fcn.00419230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11a4]
call fcn.004186d0
push 0x44
push 0
lea ecx, [ebp - 0x84]
push ecx
call fcn.00449d00
add esp, 0xc
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x58], 1
mov word [ebp - 0x54], 0
push 0x1000
lea ecx, [ebp - 0x24]
call fcn.00418800
push eax
lea edx, [ebp - 0x108c]
push edx
call fcn.0040d520
add esp, 0xc
push str.__c
lea eax, [ebp - 0x108c]
push eax
call fcn.004117c0
add esp, 8
mov ecx, dword [ebp + 8]
call fcn.00418810
push eax
lea ecx, [ebp - 0x108c]
push ecx
call fcn.004117c0
add esp, 8
push 0x482ab4
lea edx, [ebp - 0x108c]
push edx
call fcn.004117c0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
push 0x482ab0
push 0x482aa8
lea ecx, [ebp - 0x118c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x118c]
push edx
lea eax, [ebp - 0x108c]
push eax
call fcn.004117c0
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x84]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x108c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b76c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11a8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x11a8]
jmp 0x40b7c3
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40b791
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x11ac], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x11ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x88]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40be0d
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00448fa1
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bd65
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00449d00
add esp, 0xc
jmp 0x40bd6a
jmp 0x40be0d
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40bdf5
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x48e1f4
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bdf5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._u._u._u._u
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x40be0d
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0044a9ac
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40d8f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d912
jmp 0x40d95d
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d953
jmp 0x40d95d
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret

Function at 0x40d970
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ae33
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
mov ecx, dword [ebp - 0x258]
call fcn.0040ead0
cmp eax, 2
jne 0x40da63
lea ecx, [ebp - 0x18]
call fcn.00411f30
mov dword [ebp - 4], 0
push 0x104
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00449d00
add esp, 0xc
call fcn.0041b210
test eax, eax
je 0x40da10
push str.n5agent64.exe
mov ecx, dword [ebp - 0x258]
add ecx, 0x150
call fcn.00418810
push eax
push 0x48316c
lea ecx, [ebp - 0x124]
push ecx
call fcn.004117e0
add esp, 0x10
jmp 0x40da3b
push str.n5agent.exe
mov ecx, dword [ebp - 0x258]
add ecx, 0x150
call fcn.00418810
push eax
push 0x48316c
lea edx, [ebp - 0x124]
push edx
call fcn.004117e0
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push str.N5Client_Agent
lea ecx, [ebp - 0x18]
call fcn.00412440
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00411f90
jmp 0x40db5e
lea ecx, [ebp - 0x148]
call fcn.004166d0
mov dword [ebp - 4], 1
push 0x104
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.00449d00
add esp, 0xc
push str.n5start.exe
mov ecx, dword [ebp - 0x258]
add ecx, 0x150
call fcn.00418810
push eax
push 0x48316c
lea edx, [ebp - 0x254]
push edx
call fcn.004117e0
add esp, 0x10
mov ecx, dword [ebp - 0x258]
call fcn.0040eb50
test eax, eax
jne 0x40dae8
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion_runservices
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x148]
call fcn.00416740
mov dword [ebp - 0x14c], eax
jmp 0x40db09
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion_run
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x148]
call fcn.00416740
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x254]
push eax
push 0x482948
lea ecx, [ebp - 0x148]
call fcn.00416940
lea ecx, [ebp - 0x148]
call fcn.004167e0
mov ecx, dword [ebp - 0x258]
add ecx, 0x150
call fcn.00418810
push eax
lea ecx, [ebp - 0x254]
push ecx
call fcn.0041aa00
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00417ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret