joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014c04
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
and dword [rax - 0x18], 0
xor ebx, ebx
and qword [rax - 0x28], rbx
mov edi, r8d
mov rbp, rdx
lea r8d, [rbx + 4]
lea r9, [rax + 0x20]
lea rdx, [rax - 0x18]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180014c91
cmp dword [rsp + 0x68], 4
jne 0x180014c91
mov eax, dword [rsp + 0x30]
cmp eax, edi
jg 0x180014c91
test eax, eax
jle 0x180014c8d
and qword [rsp + 0x20], 0
sub eax, ebx
movsxd rdx, ebx
lea r9, [rsp + 0x68]
mov rcx, rsi
add rdx, rbp
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180014c91
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180014c91
add ebx, eax
mov eax, dword [rsp + 0x30]
cmp ebx, eax
jl 0x180014c58
mov eax, ebx
jmp 0x180014c94
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180014ef0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180014f90]
lea rcx, [0x180014a88]
mov qword [rdi + 0x10], rax
lea rax, [0x180014fa8]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
lea rax, [0x180014f68]
mov qword [rdi + 0x20], rax
lea rax, [0x180014f9c]
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret
Function at 0x1800151f8
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ecx, 0x294
mov r14, rdx
call fcn.180015378
mov edi, __WSAFDIsSet
mov rcx, rax
mov edx, edi
mov r12, rax
call fcn.18001546c
lea ebx, [rdi + 0x6c]
mov rcx, r12
mov edx, ebx
mov rsi, rax
call fcn.18001546c
mov edx, ebx
mov rcx, r12
mov r13, rax
call fcn.18001546c
lea rdx, [rsp + 0xb8]
mov rcx, rax
mov r15, rax
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.180019568
test eax, eax
je 0x18001528c
lea r8, [0x18002cbe4]
mov r9d, 2
mov edx, ebx
mov rcx, r15
call fcn.18001b7ac
lea rdx, [rsp + 0xb8]
mov rcx, r13
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.180019f30
mov rcx, rsi
mov dword [rsi], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.180010f08
test eax, eax
jne 0x1800152db
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.180010ec0
test eax, eax
jne 0x1800152db
xor ebp, ebp
jmp 0x1800152e0
mov ebp, 1
call fcn.180010f08
mov ebx, eax
call fcn.18000de68
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsi + 8]
movsxd rdx, dword [rsp + 0xb0]
mov r9d, dword [rsp + 0xa0]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], ecx
lea r8, str._d_t_d_t_d._d_t_s_t_s_t_s_t_d_t_d
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18001a03c
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x180015341
mov eax, 0x59
mov rcx, r12
cmp ebx, eax
cmovg ebx, eax
call fcn.180015400
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180015adc
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
mov edi, edx
mov esi, ecx
mov dword [rsp + 0x20], ebx
call fcn.18000e0c8
lea r14d, [rbx + 1]
mov ecx, r14d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x180015b32
mov rax, rbp
jmp 0x180015b99
movzx ecx, si
mov word [rsp + 0x28], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, ebp
jne 0x180015b6d
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180015b2d
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, ebp
je 0x180015b65
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, ebp
jne 0x180015b96
mov rcx, rbx
jmp 0x180015b65
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001ab10
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180015c00
mov rcx, rbx
call fcn.180015f0c
test eax, eax
jg 0x180015be6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016018
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180040400]
xor edi, edi
test rbx, rbx
je 0x1800160b6
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180016049
cmp dword [rbx + 0xc], eax
jne 0x180016052
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x18001602b
test eax, eax
jne 0x180016049
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180016049
cmp dword [rbx + 0x10], 0
jne 0x18001607b
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 0x18001608f
cmp dword [rbx + 0x10], 2
je 0x180016049
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x1800160aa
mov qword [rdi + 0x28], rax
call fcn.180019c3c
mov rbx, qword [rdi + 0x28]
jmp 0x18001602b
mov qword [0x180040400], rax
call fcn.180019c3c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180015f0c
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 [0x180040400]
xor edi, edi
cmp qword [0x180040408], rdi
mov rsi, rcx
jne 0x180015f4b
mov ecx, 0x100000
call fcn.180019c7c
mov qword [0x180040408], rax
test rbx, rbx
je 0x180015fff
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180015ff2
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 [0x180040408]
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 0x180015fbf
test r8d, r8d
je 0x180015ff2
mov rdx, qword [0x180040408]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800160c4
cmp eax, 0xffffffff
jne 0x180015fd6
mov rcx, qword [0x180040408]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x180015ff2
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x180015ff2
mov rcx, qword [0x180040408]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180015f5a
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 0x180016018
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180015c00
mov rcx, rbx
call fcn.180015f0c
test eax, eax
jg 0x180015be6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180016018
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180040400]
xor edi, edi
test rbx, rbx
je 0x1800160b6
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180016049
cmp dword [rbx + 0xc], eax
jne 0x180016052
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x18001602b
test eax, eax
jne 0x180016049
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180016049
cmp dword [rbx + 0x10], 0
jne 0x18001607b
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 0x18001608f
cmp dword [rbx + 0x10], 2
je 0x180016049
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x1800160aa
mov qword [rdi + 0x28], rax
call fcn.180019c3c
mov rbx, qword [rdi + 0x28]
jmp 0x18001602b
mov qword [0x180040400], rax
call fcn.180019c3c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800160c4
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 0x18001610e
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 0x180016125
cmp ebx, esi
jl 0x1800160e8
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 0x180016110

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x18003e040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x64
lea edi, [rax + 0x7530]
jmp 0x180016228
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x250], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180016236
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180016228
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180016236
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180016236
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x18001618c
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18001ab10
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x180017818
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.180019c7c
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001a03c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.180019c3c
cmp rbp, 0xffffffffffffffff
je 0x180017936
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x18001790d
mov al, byte [rdi]
cmp al, byte [0x18002cc7c]
jne 0x1800178a3
mov al, byte [rdi + 1]
cmp al, byte [0x18002cc7d]
je 0x180017919
mov al, byte [rdi]
cmp al, byte [0x18002cc80]
jne 0x1800178c3
mov al, byte [rdi + 1]
cmp al, byte [0x18002cc81]
jne 0x1800178c3
mov al, byte [rdi + 2]
cmp al, byte [0x18002cc82]
je 0x180017919
mov rcx, r12
call fcn.180019c7c
lea r8, [0x18002c768]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001a03c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180017958
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.180019c3c
jmp 0x180017919
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 0x180017889
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 0x180018bb4
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 [0x18004da50], rcx
mov ebx, 0x400
mov ecx, ebx
call fcn.180019c7c
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x18004da58], rax
call fcn.180019f30
xor r15d, r15d
lea rbp, str.ihihikiaikihikh
mov eax, r15d
xor byte [rax + rbp], 0x69
inc rax
cmp rax, 0x1000
jl 0x180018c01
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180015424
jmp 0x180018cce
lea rcx, [rsp + 0x20]
call fcn.180015494
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180015494
mov rcx, qword [0x18004da58]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180018cb8
dec edx
je 0x180018ca1
dec edx
jne 0x180018cce
movsx rbx, ax
mov rcx, rbx
call fcn.180019c7c
mov rdx, qword [0x18004da58]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.18001546c
mov rcx, qword [0x18004da58]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001a590
jmp 0x180018cce
lea rcx, [rsp + 0x20]
call fcn.180015434
mov rcx, qword [0x18004da58]
mov dword [rdi + rcx + 8], eax
jmp 0x180018cce
lea rcx, [rsp + 0x20]
call fcn.180015494
mov rdx, qword [0x18004da58]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180015494
movzx edi, ax
test ax, ax
jg 0x180018c28
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.180019f30

Function at 0x180019048
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.180019190
mov r8, qword [0x180049788]
test r8, r8
je 0x1800190bd
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 0x1800190d8
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 [0x180049780], esi
lea ecx, [rsi + 0x26]
call fcn.180018b84
cmp ax, si
jne 0x180019112
mov rdx, rbx
mov rcx, rdi
call fcn.180019048
jmp 0x18001912d
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 0x180019140
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 0x27
call fcn.180018b84
cmp ax, 1
jne 0x180019184
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 0x180019568
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18003e040]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
lea rcx, [rbp - 0x10]
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 - 0x10], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x1800195f9
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18001ab10
add rsp, 0x80
pop rbp
ret

Function at 0x180019610
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.18001938c
lea rax, [0x180049790]
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 0x180019679
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000d508
jmp 0x180019766
mov rcx, qword [0x180049790]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x180019697
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x18001966d
mov ecx, 0x800
call fcn.180015378
mov edx, 0x200
mov rcx, rax
mov qword [0x1800497b0], rax
call fcn.18001546c
mov rcx, qword [0x1800497b0]
mov edx, 0x200
mov qword [0x180049798], rax
call fcn.18001546c
mov rcx, qword [0x1800497b0]
mov edx, 0x400
mov qword [0x1800497a0], rax
call fcn.18001546c
mov rdx, qword [0x1800497a0]
mov r8d, pe_nt_image_headers64
mov rcx, rbx
mov qword [0x1800497a8], rax
call fcn.1800107e0
mov rdx, qword [0x180049798]
mov r8d, pe_nt_image_headers64
mov rcx, rsi
call fcn.1800107e0
mov rdx, qword [0x1800497a8]
mov r8d, 0x200
mov rcx, rdi
call fcn.1800107e0
mov rcx, qword [0x180049790]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x1800497b8], 1
call fcn.1800197dc
test eax, eax
je 0x180019766
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x180019752
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 0x180019964
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 0x1800199be
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 0x1800199be
add ebx, eax
cmp ebx, 2
jb 0x1800199ba
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x1800199ba
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x1800199d6
cmp ebx, esi
jb 0x180019988
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 0x1800199c1

Function at 0x18001b374
Capabilities:
Terminate process

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

Function at 0x180022940
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022956
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022958
xor eax, eax
test eax, eax
je 0x180022968
mov ecx, eax
call fcn.18001c430
or eax, 0xffffffff
jmp 0x18002296a
xor eax, eax
add rsp, 0x28
ret

Function at 0x180022970
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180022988
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002298a
xor eax, eax
test eax, eax
je 0x18002299a
mov ecx, eax
call fcn.18001c430
or eax, 0xffffffff
jmp 0x18002299c
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800229a4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800229ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800229bc
xor eax, eax
test eax, eax
je 0x1800229cc
mov ecx, eax
call fcn.18001c430
or eax, 0xffffffff
jmp 0x1800229ce
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401f6900
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14027e040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1401f6964
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140239ca0
mov dword [rsp + 0x30], 1
movsd xmm0, qword [str.J_2eF]
movsd qword [rsp + 0x20], xmm0
movzx eax, word [0x14026ca90]
mov ecx, 0x74
mov word [rsp + 0x20], cx
xor word [rsp + 0x22], 0x40
xor word [rsp + 0x24], 0x42
xor word [rsp + 0x26], 0x44
xor ax, 0x46
mov word [rsp + 0x28], ax
lea rax, [rsp + 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1401f69c5
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140234be0
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rcx, rdx
sar rcx, 0xb
mov rax, rcx
shr rax, 0x3f
add rcx, rax
lea r9, [rbp - 0x76]
movabs r10, 0xcccccccccccccccd
jns 0x1401f6a60
neg rcx
nop word [rax + rax]
sub r9, 2
mov rax, r10
mul rcx
shr rdx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov rcx, rdx
test rdx, rdx
jne 0x1401f6a20
add r9, 0xfffffffffffffffe
mov word [r9], 0x2d
jmp 0x1401f6a91
sub r9, 2
mov rax, r10
mul rcx
shr rdx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov rcx, rdx
test rdx, rdx
jne 0x1401f6a60
lea r8, [rbp - 0x76]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.14023ea30
mov dword [rsp + 0x30], 7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1402366e0
nop
lea rcx, [rsp + 0x40]
call fcn.140236670
movsd xmm0, qword [0x14026d270]
movsd qword [rsp + 0x20], xmm0
movzx eax, word [0x14026d278]
mov ecx, 0x2e
mov word [rsp + 0x20], cx
xor word [rsp + 0x22], 0x40
xor word [rsp + 0x24], 0x42
xor word [rsp + 0x26], 0x44
xor ax, 0x46
mov word [rsp + 0x28], ax
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f6b01
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140234be0
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14025ba00
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret