joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140ef5adc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ef5ae6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ef5b0f
pop rbp
sub rbp, 0x33
sub rbp, 0xef5adc
sub rsp, 0x20
jmp 0x140ef5b2e
mov rax, 0xef5adc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff834b9c9e
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ef5b4d
jmp 0x140ef5b64
invalid
Function at 0x1400030c0
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
call fcn.1400083e4
jmp 0x1400030e0
mov ecx, 2
call fcn.140004778
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14000b1f8], 0
jne 0x1400030cb
mov ecx, 3
add rsp, 0x28
jmp fcn.140004778
sub rsp, 0x28
lea rdx, [0x140010180]
mov ecx, 3
call fcn.140006e5c
call fcn.1400082dc
add rsp, 0x28
jmp 0x1400030c0

Function at 0x14000377c
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
lea rdx, [0x14000f3e0]
mov ecx, 3
call fcn.140006e5c
cmp dword [0x14000b6e8], 0
jne 0x14000379f
call fcn.140008c24
cmp dword [0x14000b6ec], 0
je 0x1400037b1
cmp dword [0x14000b6f0], 0
jne 0x1400037b6
call fcn.140005458
add rsp, 0x28
jmp 0x1400030c0
Function at 0x140003960
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
xor r15d, r15d
mov r14, rdx
mov eax, r15d
mov rbp, rcx
mov dword [r11 + 0x18], eax
mov edi, r15d
test r8d, r8d
je 0x1400039a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov eax, dword [rsp + 0x180]
jmp 0x1400039a7
mov esi, r15d
test rbp, rbp
je 0x140003b03
mov r8d, eax
xor edx, edx
jmp 0x140003a0c
mov eax, dword [rsp + 0x180]
test rax, rax
je 0x140003b03
lea rbx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x1400039ec
mov r9, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x1400039f5
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140003b03
mov r8d, dword [rsp + 0x180]
mov rdx, rax
lea r9, [rsp + 0x180]
mov ecx, 5
call sub.ntdll.dll_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400039b7
test eax, eax
jne 0x140003ae2
test rdi, rdi
je 0x140003b03
mov rbx, rdi
test qword [rbx + 0x50], 0xfffffffffffffffb
je 0x140003ab8
cmp dword [rbx + 4], r15d
jbe 0x140003ab8
mov eax, esi
cmp qword [rbx + 0x50], rax
je 0x140003ab8
cmp qword [rbx + 0x40], r15
je 0x140003ab8
cmp word [rbx + 0x38], r15w
je 0x140003ab8
mov byte [rsp + 0x40], r15b
lea rax, [rsp + 0x40]
movzx r9d, word [rbx + 0x38]
xor edx, edx
mov r8, qword [rbx + 0x40]
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
shr r9d, 1
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
js 0x140003aa2
cdqe
mov byte [rsp + rax + 0x40], r15b
jmp 0x140003aa7
mov byte [rsp + 0x40], r15b
mov r8, r14
lea rcx, [rsp + 0x40]
mov rdx, rbx
call rbp
test eax, eax
je 0x140003ac7
cmp dword [rbx], r15d
je 0x140003ac7
mov eax, dword [rbx]
add rbx, rax
jmp 0x140003a39
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
jmp 0x140003b05
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140003b03
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140003de8
Capabilities:
Enumerate network shares

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov dword [rax - 0x24], 0x4000
mov r9, rdx
lea rax, [rax - 0x20]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r15, r8
mov ebp, ecx
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x13]
call sub.MPR.dll_WNetOpenEnumW
xor edi, edi
test eax, eax
jne 0x140003f21
or dword [rsp + 0x30], 0xffffffff
mov ebx, dword [rsp + 0x34]
test rbx, rbx
je 0x140003f10
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140003f10
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov r8, rax
lea rdx, [rsp + 0x30]
call sub.MPR.dll_WNetEnumResourceW
mov esi, eax
test eax, eax
je 0x140003ea3
cmp eax, 0xea
jne 0x140003efa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003e33
cmp dword [rsp + 0x30], edi
jbe 0x140003efa
mov eax, edi
lea rax, [rax + rax*2]
shl rax, 4
add rax, rbx
cmp dword [rax + 8], 3
jne 0x140003ecd
cmp ebp, 2
jne 0x140003ef2
mov rcx, qword [rax + 0x18]
mov rdx, r14
call r15
jmp 0x140003ef2
cmp dword [rax + 8], 2
jne 0x140003ee2
cmp ebp, 1
jne 0x140003ee2
mov rcx, qword [rax + 0x18]
add rcx, 4
jmp 0x140003ec5
mov r9, r14
mov r8, r15
mov rdx, rax
mov ecx, ebp
call 0x140003de8
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140003ea9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003f15
mov esi, 8
mov rcx, qword [rsp + 0x38]
call sub.MPR.dll_WNetCloseEnum
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov r9, rdx
mov r8, rcx
xor edx, edx
lea ecx, [rdx + 1]
jmp 0x140003de8

Function at 0x140003f8c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x140012080]
mov ecx, 4
imul eax, eax, 0x343fd
lea rdx, [0x140012080]
add eax, 0x269ec3
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 0x413c
jb 0x140003f97
ret
Function at 0x140003fbc
Capabilities:
Set file attributes

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, 0x20
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
mov r14d, 1
lock add dword [rcx + 0x18], r14d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r14 + 7]
lea r8d, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1400036bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, [0x14000fac0]
mov r8d, eax
mov ecx, r14d
call fcn.140006e5c
xor eax, eax
jmp 0x14000375e
mov rcx, rbx
call fcn.1400037c0
mov qword [rdi + 8], rax
test rax, rax
jne 0x140003701
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r9d, r9d
lea rdx, [0x140010c20]
mov r8d, eax
mov ecx, r14d
call fcn.140006e5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400036b8
and qword [rdi], 0
mov ebx, 0x60
cmp rbp, qword [rsi + 0x10]
lea eax, [rbx - 0x40]
cmovle ebx, eax
or edx, 0xffffffff
add rbx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, r14d
xchg dword [rbx + 0x10], eax
cmp eax, r14d
je 0x140003724
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000373f
mov qword [rax], rdi
xor eax, eax
jmp 0x140003745
mov qword [rbx], rdi
mov eax, r14d
mov qword [rbx + 8], rdi
and dword [rbx + 0x10], 0
test eax, eax
je 0x14000375b
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, r14d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
lea rdi, [rcx + 0x10008]
mov edx, dword [rcx + 0x20008]
mov rbx, rcx
test dl, 1
je 0x140003fef
and edx, 0xfffffffe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8d, dword [rbx + 0x20024]
mov rdx, rdi
mov eax, dword [rbx + 0x20028]
btr r8d, 0x1f
mov rcx, qword [rsi + 0x210]
shl r8, 0x20
or r8, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140003650
Function at 0x140004028
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, r8
mov r9, r8
mov r8, rdx
mov r14, rdx
mov esi, ecx
xor edx, edx
xor ecx, ecx
call sub.msvcrt.dll__vsnwprintf
movsxd rdi, eax
cmp edi, 1
jge 0x140004083
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov rcx, qword [0x14000b208]
lea rdx, [0x140010810]
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004153
lea rbx, [rdi*2 + 8]
test rbx, rbx
je 0x140004153
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140004153
lea rcx, [0x14000b218]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [rdi + 8]
mov r9, rbp
movsxd rdx, ecx
mov r8, r14
mov rcx, rbx
call sub.msvcrt.dll__vsnwprintf
mov edi, eax
test eax, eax
jle 0x140004132
test sil, 1
je 0x140004109
mov rcx, qword [0x14000b210]
test rcx, rcx
je 0x140004109
and qword [rsp + 0x20], 0
lea r8d, [rax + rax]
lea r9, [rsp + 0x68]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test sil, 2
je 0x140004132
mov rcx, qword [0x14000b208]
test rcx, rcx
je 0x140004132
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea rcx, [0x14000b218]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140004168
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
xor r8d, r8d
rdtsc
shl rdx, 0x20
lea r10, [0x14000b708]
or rax, rdx
mov edx, dword [r8 + r10]
inc edx
mov ecx, eax
and ecx, 7
rol edx, cl
xor edx, eax
mov dword [r8 + r10], edx
mov dword [r9 + r8], edx
add r8, 4
cmp r8, 0x20
jb 0x14000416e
ret
Function at 0x1400041a0
Capabilities:
Enumerate network shares

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov dword [rax - 0x24], 0x4000
mov r9, rdx
lea rax, [rax - 0x20]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r15, r8
mov ebp, ecx
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x13]
call sub.MPR.dll_WNetOpenEnumW
xor edi, edi
test eax, eax
jne 0x140003f21
or dword [rsp + 0x30], 0xffffffff
mov ebx, dword [rsp + 0x34]
test rbx, rbx
je 0x140003f10
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140003f10
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov r8, rax
lea rdx, [rsp + 0x30]
call sub.MPR.dll_WNetEnumResourceW
mov esi, eax
test eax, eax
je 0x140003ea3
cmp eax, 0xea
jne 0x140003efa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003e33
cmp dword [rsp + 0x30], edi
jbe 0x140003efa
mov eax, edi
lea rax, [rax + rax*2]
shl rax, 4
add rax, rbx
cmp dword [rax + 8], 3
jne 0x140003ecd
cmp ebp, 2
jne 0x140003ef2
mov rcx, qword [rax + 0x18]
mov rdx, r14
call r15
jmp 0x140003ef2
cmp dword [rax + 8], 2
jne 0x140003ee2
cmp ebp, 1
jne 0x140003ee2
mov rcx, qword [rax + 0x18]
add rcx, 4
jmp 0x140003ec5
mov r9, r14
mov r8, r15
mov rdx, rax
mov ecx, ebp
call 0x140003de8
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140003ea9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003f15
mov esi, 8
mov rcx, qword [rsp + 0x38]
call sub.MPR.dll_WNetCloseEnum
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov r9, rdx
mov r8, rcx
xor edx, edx
lea ecx, [rdx + 1]
jmp 0x140003de8
Function at 0x140004af8
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r12, rdx
mov dword [rax + 0x18], ebx
mov r15, rcx
test rcx, rcx
je 0x140004c01
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x140004c01
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
mov r8d, 0x40001
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140004bf4
lea rax, [rsp + 0x90]
mov r9, r14
mov qword [rsp + 0x38], rax
lea edx, [rbx + 0x30]
lea rax, [rsp + 0x80]
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea r8d, [rbx + 1]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40000
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov ebp, eax
test eax, eax
je 0x140004bde
mov edi, ebx
cmp dword [rsp + 0x80], ebx
jbe 0x140004bde
mov eax, edi
mov r8, r12
mov rcx, rsi
lea rdx, [rax + rax*2]
shl rdx, 4
add rdx, r14
call r15
mov ebp, eax
test eax, eax
je 0x140004bd9
inc edi
cmp edi, dword [rsp + 0x80]
jb 0x140004bb0
jmp 0x140004bde
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, ebp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140004c03
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004f48
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov esi, r8d
mov r8d, 0x20
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x140004f7b
or eax, 0xffffffff
jmp 0x140004ffa
mov ebx, 1
lea r8, [rsp + 0x30]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004fed
test esi, esi
je 0x140004fef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
jmp 0x140004fe5
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0xa8]
mov r9d, 0x24
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140004fef
cmp dword [rsp + 0x54], ebx
je 0x140004fef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, esi
ja 0x140004fed
cmp dword [rsp + 0x34], ebx
jne 0x140004fa2
jmp 0x140004fef
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005254
Capabilities:
Create service
Delete service
Start service

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, 0x70
mov r14, rdx
mov rbp, r8
xor edx, edx
mov rdi, r9
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x140005297
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005337
mov rax, qword [rsp + 0xa0]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rbp
mov r8, rdi
mov qword [rsp + 0x58], r14
mov rdx, rdi
mov qword [rsp + 0x50], rbx
mov rcx, rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x140005324
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140005310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41d
cmove eax, ebx
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000532c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140005398
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rbx, [rcx + 0x48]
mov esi, 2
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x1400053c7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx - 8], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400053e0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx - 0x10]
test rcx, rcx
je 0x1400053f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx - 0x10], 0
add rbx, 0x40
sub rsi, 1
jne 0x1400053b3
test rdi, rdi
je 0x140005417
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005488
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400056fb
mov r8d, 0x104
lea rdx, [0x14000b290]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp - 0x40]
lea rcx, [0x1400109c0]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
lea rdx, [rbp - 0x40]
mov qword [0x14000b6b8], rax
lea rcx, [0x14000d760]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
lea rdx, [rbp - 0x40]
mov qword [0x14000b6c0], rax
lea rcx, [0x14000fe90]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
mov ecx, edi
lea rdx, [rbp - 0x40]
test rax, rax
setne cl
mov dword [0x14000b700], ecx
lea rcx, [0x14000fbb8]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
mov ecx, edi
lea rdx, [rbp - 0x40]
test rax, rax
setne cl
mov dword [0x14000b6f8], ecx
lea rcx, [0x14000eb00]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
mov ecx, edi
lea rdx, [rbp - 0x40]
test rax, rax
setne cl
mov dword [0x14000b6f4], ecx
lea rcx, [0x14000e650]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
lea rdx, [rbp - 0x40]
mov dword [0x14000b6fc], edi
lea rcx, [0x14000d4c8]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
mov ecx, edi
test rax, rax
setne cl
mov dword [0x14000b704], ecx
call fcn.140003840
mov edx, dword [rbp + 0x20]
mov rcx, rbx
call section..c
test eax, eax
jne 0x1400056f6
mov edx, dword [rbp + 0x20]
mov rcx, rbx
call fcn.140008170
lea rdx, [rbp - 0x40]
lea rcx, [0x14000dd98]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov r9d, 0x10000000
mov rcx, rbx
call fcn.140006518
lea rdx, [rbp - 0x40]
mov dword [0x14000b6d8], eax
lea rcx, [0x14000d830]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
xor r9d, r9d
mov rcx, rbx
call fcn.140006518
lea rdx, [rbp - 0x40]
mov dword [0x14000b6dc], eax
lea rcx, [0x14000e918]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
xor r9d, r9d
mov rcx, rbx
call fcn.140006518
lea rdx, [rbp - 0x40]
mov dword [0x14000b6e0], eax
lea rcx, [0x14000dd18]
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
test rax, rax
lea rdx, [rbp - 0x40]
lea rcx, [0x140010418]
setne dil
mov dword [0x14000b6e4], edi
call fcn.1400031d8
mov edx, dword [rbp + 0x20]
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.140008aa8
mov edx, dword [rbp + 0x20]
mov rcx, rbx
mov qword [0x14000b6b0], rax
call fcn.140006ed0
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005bb0
Capabilities:
Enumerate network shares

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and dword [rbp - 0x19], 0
mov r12, r8
and dword [rbp - 0x15], 0
mov r13, rdx
mov r15, rcx
and dword [rbp + 0x7f], 0
lea rax, [rbp - 0x19]
and qword [rbp - 0x11], 0
lea r8, [rbp - 0x11]
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
lea rax, [rbp - 0x15]
mov edx, 1
mov qword [rsp + 0x28], rax
mov rcx, r15
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call sub.NETAPI32.dll_NetShareEnum
mov ebx, eax
test eax, eax
je 0x140005c2e
cmp eax, 0xea
jne 0x140005cb5
mov ecx, dword [rbp + 0x7f]
xor edi, edi
test ecx, ecx
je 0x140005ca4
mov rax, qword [rbp - 0x11]
lea rsi, [rdi + rdi*2]
cmp byte [rax + rsi*8 + 8], 0
jne 0x140005c9a
lea rdx, [rbp - 9]
lea rcx, [0x14000fa18]
call fcn.1400031d8
mov r8, qword [rbp - 0x11]
lea rcx, [rbp - 9]
mov rdx, r15
mov r8, qword [r8 + rsi*8]
call fcn.140004a70
mov rdx, r12
mov rcx, rax
mov rsi, rax
call r13
mov r14d, eax
test rsi, rsi
je 0x140005c92
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
je 0x140005ca2
mov ecx, dword [rbp + 0x7f]
inc edi
cmp edi, ecx
jae 0x140005ca4
jmp 0x140005c37
xor ebx, ebx
mov rcx, qword [rbp - 0x11]
call sub.NETAPI32.dll_NetApiBufferFree
test ebx, ebx
jne 0x140005be4
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140005cd8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xa1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140005dbc
xor r9d, r9d
mov qword [rax + 0x10], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 8], rax
test rax, rax
je 0x140005dbc
xor esi, esi
lea rdi, [rbx + 0x58]
xor r9d, r9d
mov qword [rdi - 8], rbx
xor r8d, r8d
mov dword [rdi], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi - 0x18], rax
test rax, rax
je 0x140005db4
mov edx, 0x4000
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rdi - 0x20], rax
test rax, rax
je 0x140005db4
and qword [rsp + 0x28], 0
lea r9, [rbx + 0x20]
and dword [rsp + 0x20], 0
lea r8, [0x140004c70]
mov eax, esi
xor edx, edx
shl rax, 6
xor ecx, ecx
add r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi - 0x10], rax
test rax, rax
je 0x140005db4
inc esi
add rdi, 0x40
cmp esi, 2
jb 0x140005d37
mov rax, rbx
jmp 0x140005dbe
mov rcx, rbx
call fcn.140005398
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret