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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14006afa7
mov eax, 0xffffffff
jmp 0x14006b04b
cmp dword [rsp + 0x38], 0
jbe 0x14006b047
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x14006b047
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14006b042
mov eax, 0xffffffff
jmp 0x14006b04b
jmp 0x14006afa7
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14006b56c
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x14006b5ff
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14006b5e6
cmp dword [rsp + 0x34], 0
jne 0x14006b5ed
mov eax, 0xffffffff
jmp 0x14006b614
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x14006b58f
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x14006b610
mov eax, 0xffffffff
jmp 0x14006b614
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14006b61c
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x14006b6d9
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jle 0x14006b672
mov dword [rsp + 0x38], 0x2000
jmp 0x14006b682
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14006b6c4
mov eax, dword [rsp + 0x34]
jmp 0x14006b6dd
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x14006b647
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x14006bc14
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call sub.WS2_32.dll_ioctlsocket
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x14006bc65
xor eax, eax
jmp 0x14006bd0a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x14006bcdb
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call sub.WS2_32.dll_recv
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14006bca3
mov dword [rsp + 0x28], 0
jmp 0x14006bcdb
cmp dword [rsp + 0x24], 0
jle 0x14006bcb6
mov dword [rsp + 0x28], 1
jmp 0x14006bcdb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14006bccf
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14006bcd9
mov dword [rsp + 0x28], 0
jmp 0x14006bcdb
jmp 0x14006bc65
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call sub.WS2_32.dll_ioctlsocket
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x14006bd06
xor eax, eax
jmp 0x14006bd0a
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14006bd10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x98]
call sub.WS2_32.dll_ioctlsocket
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [0x14006bdf8]
mov qword [rsp + 0x40], rax
lea rax, [0x14006bed8]
mov qword [rsp + 0x48], rax
lea rax, [0x14006bdbc]
mov qword [rsp + 0x50], rax
lea rax, [0x14006b284]
mov qword [rsp + 0x58], rax
lea rax, [0x14006bea8]
mov qword [rsp + 0x60], rax
lea rax, [0x14006b284]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x14006c404
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
jge 0x14006c48f
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_recv
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x14006c474
mov eax, 0xffffffff
jmp 0x14006c4a4
cmp dword [rsp + 0x24], 0
jne 0x14006c47d
jmp 0x14006c48f
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x14006c427
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x14006c4a0
mov eax, 0xffffffff
jmp 0x14006c4a4
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x14006c4ac
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x50], 0
jne 0x14006c4cd
mov eax, 1
jmp 0x14006c4f8
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_send
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14006c4f3
xor eax, eax
jmp 0x14006c4f8
mov eax, 1
add rsp, 0x38
ret
Function at 0x14006debc
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.1400666a4
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14006df16
mov rax, 0xffffffffffffffff
jmp 0x14006dfcd
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x58]
call sub.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 sub.WS2_32.dll_ioctlsocket
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14006df69
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x14006dfcd
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_bind
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14006df9c
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x14006dfcd
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_listen
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14006dfc8
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x14006dfcd
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14006e53c
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 [0x1400cb390]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
cmp qword [0x1400cb398], 0
jne 0x14006e594
mov ecx, 0x100000
call fcn.140081440
mov qword [0x1400cb398], rax
cmp qword [rsp + 0x38], 0
je 0x14006e6cd
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 1
je 0x14006e5bb
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x14006e594
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x2c], eax
mov rax, qword [0x1400cb398]
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 sub.WS2_32.dll_ioctlsocket
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x20], 0xffffc
jbe 0x14006e606
mov dword [rsp + 0x20], 0xffffc
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14006e634
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1400cb398]
call qword [rsp + 0x50]
jmp 0x14006e6ba
cmp dword [rsp + 0x20], 0
jbe 0x14006e6ba
mov rax, qword [0x1400cb398]
add rax, 4
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.14006e850
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x14006e68b
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1400cb398]
call qword [rsp + 0x50]
jmp 0x14006e6ba
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jne 0x14006e6ba
mov eax, dword [rsp + 0x20]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x1400cb398]
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 0x14006e594
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14006e6d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1400cb390]
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 0x14006e849
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x14006e753
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x14006e753
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 0x14006e844
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x14006e82c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x14006e82c
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x14006e799
mov edx, 2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll_shutdown
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x14006e7d3
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x14006e7d3
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 0x14006e706
cmp qword [rsp + 0x30], 0
jne 0x14006e800
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x1400cb390], rax
mov rcx, qword [rsp + 0x28]
call fcn.140081438
mov qword [rsp + 0x28], 0
jmp 0x14006e82a
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.140081438
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x14006e844
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 0x14006e706
add rsp, 0x48
ret

Function at 0x14006e850
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 0x14006e8fa
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 sub.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 0x14006e8f8
mov edx, 2
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_shutdown
mov rcx, qword [rsp + 0x40]
call sub.WS2_32.dll_closesocket
mov eax, 0xffffffff
jmp 0x14006e8fe
jmp 0x14006e87d
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14006e904
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, 0x468
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x34]
jae 0x14006ea75
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x250], 0x40
jae 0x14006e999
mov eax, dword [rsp + 0x250]
mov rcx, qword [rsp + 0x470]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x258], rcx
mov eax, dword [rsp + 0x250]
inc eax
mov dword [rsp + 0x250], eax
xor eax, eax
test eax, eax
jne 0x14006e964
cmp dword [rsp + 0x40], 0x40
jae 0x14006e9c5
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x470]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x48], rcx
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x14006e99f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
xor edx, edx
xor ecx, ecx
call sub.WS2_32.dll_select
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x470]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006ea09
jmp 0x14006ea75
lea rdx, [rsp + 0x250]
mov rax, qword [rsp + 0x470]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14006ea70
xor r9d, r9d
mov r8d, dword [rsp + 0x480]
mov rdx, qword [rsp + 0x478]
mov rax, qword [rsp + 0x470]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll_send
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14006ea6e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14006ea6e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14006ea70
jmp 0x14006ea75
jmp 0x14006e941
add rsp, 0x468
ret
Function at 0x140077b6c
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x60], 0
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 0x140077c20
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140077c15
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 0x140077cb8
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.14006fe58
mov qword [rsp + 0x48], rax
mov edx, __WSAFDIsSet
mov rcx, qword [rsp + 0x48]
call fcn.14007009c
mov qword [rsp + 0x38], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.14007009c
mov qword [rsp + 0x60], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.14007009c
mov qword [rsp + 0x78], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.14007009c
mov qword [rsp + 0x70], rax
mov edx, 0x100
mov rcx, qword [rsp + 0x48]
call fcn.14007009c
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], 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.14006655c
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 0x140077ddb
mov edx, 0x5c
mov rcx, qword [rsp + 0x68]
call fcn.1400800f8
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140077dcf
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x140077ddb
lea rax, [0x1400cb3c8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov dword [rax], __WSAFDIsSet
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
mov dword [0x1400d61b0], eax
mov rax, qword [rsp + 0x38]
mov dl, byte [rax + 4]
mov rcx, qword [rsp + 0xa0]
call fcn.140065dd0
mov rax, qword [rsp + 0x38]
mov dl, byte [rax + 8]
mov rcx, qword [rsp + 0xa0]
call fcn.140065dd0
mov rax, qword [rsp + 0x38]
movzx edx, word [rax + 0xc]
mov rcx, qword [rsp + 0xa0]
call fcn.140065ec4
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.140065e90
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0xa0]
call fcn.140065e90
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xa0]
call fcn.140065e90
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.140065e90
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
lea r8, str._s_t_s_t_s
mov edx, 0x100
mov rcx, qword [rsp + 0x60]
call fcn.1400664b0
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 0x140077edd
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x3a
jle 0x140077f0d
mov dword [rsp + 0x34], 0x3a
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.140065df8
mov rcx, qword [rsp + 0x48]
call fcn.14006ff80
add rsp, 0x98
ret
Function at 0x1400784b4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [0x1400cf3e0], 0
je 0x14007859c
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x14007859c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1400cf3e0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14007854f
mov eax, 1
jmp 0x14007861e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x140078575
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x140078575
mov rcx, qword [rsp + 0x70]
call fcn.140078ea0
jmp 0x14007861e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.140066484
xor eax, eax
jmp 0x14007861e
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140078619
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, gethostbyname
call fcn.140066484
xor eax, eax
jmp 0x14007861e
mov eax, 1
add rsp, 0x68
ret

Function at 0x140078c64
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
and eax, 4
cmp eax, 4
je 0x140078d11
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.140078a38
test eax, eax
je 0x140078d11
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400784b4
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.1400787d0
test eax, eax
jne 0x140078cf6
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x140078d1b
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [rsp + 0x20]
jmp 0x140078d1b
mov rcx, qword [rsp + 0x50]
call fcn.1400784b4
add rsp, 0x48
ret
Function at 0x140078d20
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [0x1400cf3f8]
mov rdx, qword [0x1400cf3e8]
mov rcx, qword [0x1400cf3f0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x140078db0
mov eax, 1
jmp 0x140078dcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x45
call fcn.140066484
xor eax, eax
add rsp, 0x68
ret