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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, qword [0x14018e448]
mov r14, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x1400c6e22
lea rcx, [rbp - 0x50]
call fcn.1400c6ca0
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400c6e5e
mov eax, 2
jmp 0x1400c6f89
test rsi, rsi
je 0x1400c6e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400c6e4d
movups xmm0, xmmword [rsi + 0x10]
jmp 0x1400c6e56
test r14, r14
je 0x1400c6e18
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x50], xmm0
mov rbx, qword [rbp - 0x50]
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x1400c6f7f
test rbx, rbx
je 0x1400c6f6a
cmp qword [rdi + 8], rsi
je 0x1400c6f6a
test r14, r14
je 0x1400c6f6a
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1400c8310
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.1400c8310
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x1400c6ec3
cmp qword [rax + 8], rdi
je 0x1400c6ed0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400c6eb4
mov rdx, rdi
mov rcx, rbx
call fcn.1400c9360
mov esi, eax
mov rdx, qword [rbp - 0x40]
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x1400c6f0a
lea rax, [rbp - 0x40]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x40]
cmp rcx, rax
je 0x1400c6f1d
lea rcx, [rbp - 0x28]
call fcn.1400c82b0
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1400c6f1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp - 0x20]
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1400c6f53
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1400c6f66
lea rcx, [rbp - 8]
call fcn.1400c82b0
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1400c6f66
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x1400c6f7f
mov ecx, dword [rdi]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, reloc.WS2_32.dll_inet_addr
test eax, eax
cmove esi, ecx
mov r15, qword [rsp + 0x90]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c7340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x14018e440], 0
je 0x1400c7568
mov qword [rsp + 0x80], rdi
mov rdi, qword [0x14018e448]
test rdi, rdi
je 0x1400c7555
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400c753d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r14
movaps xmmword [rbp - 0x40], xmm0
call fcn.1400c75f0
xor esi, esi
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rcx
xchg qword [rcx], rdx
or r14, 0xffffffffffffffff
test rdx, rdx
je 0x1400c7436
lea rax, [rbp - 0x20]
mov qword [rdx + 8], rax
xor eax, eax
lock cmpxchg qword [rdx + 0x18], r14
je 0x1400c73f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, rsi
lock xadd qword [rbp - 0x10], rax
test rax, rax
jne 0x1400c7436
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
xor eax, eax
lock cmpxchg qword [rbp - 0x10], rbx
jne 0x1400c742d
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x20]
mov dword [rdi + 0x28], 6
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1400c7473
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], rsi
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1400c7486
lea rcx, [rbp - 8]
call fcn.1400c82b0
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x1400c7486
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
mov rsi, qword [rsp + 0x78]
je 0x1400c750a
nop word [rax + rax]
mov rax, qword [rdi + 0x178]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov r8, qword [rcx + 0x10]
mov qword [rcx + 0x10], rdi
mov r9, qword [rdx + 0x18]
test r9, r9
je 0x1400c74c7
mov rax, qword [rdx + 0x10]
mov qword [r9 + 0x10], rax
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x1400c74d8
mov rax, qword [rdx + 0x18]
mov qword [r9 + 0x18], rax
cmp qword [r8 + 0x178], rdx
jne 0x1400c74ec
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x178], rax
mov rdx, qword [rcx + 0x28]
mov eax, r14d
xchg dword [rdx + 8], eax
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
jne 0x1400c74a0
cmp dword [rdi + 0x184], 1
mov r14, qword [rsp + 0x88]
jne 0x1400c753d
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
call fcn.1400c8d20
mov rax, qword [0x14018e448]
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rbp
ret
mov eax, 1
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x1400c7f40
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x1400c7f40
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x1400c8084
mov rax, qword [rcx]
test rax, rax
je 0x1400c8084
cmp rax, 0xffffffffffffffff
jne 0x1400c7f88
call fcn.1400c7e10
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1400c7fbf
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.1400c9900
test eax, eax
jne 0x1400c7faf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.1400c9640
test eax, eax
je 0x1400c7fd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x14018e450]
mov qword [rsp + 0x30], rax
lea rax, [0x1400c81e0]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x1400c802e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x14018e450]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1400c6de0
mov rcx, r14
call fcn.1400c6b50
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1400c8071
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.1400c97c0
test eax, eax
je 0x1400c8071
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.1400c8650
mov eax, dword [rsp + 0x70]
jmp 0x1400c7fb7
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret

Function at 0x1400c8650
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x14018e450]
mov esi, ecx
test rdi, rdi
jne 0x1400c8675
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
test rdi, rdi
je 0x1400c86c1
test esi, esi
je 0x1400c86b1
mov rax, qword [rdi]
test rax, rax
je 0x1400c86b1
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x14018e450]
call fcn.1400c6de0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c86d0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x14018e440], 0
je 0x1400c86e7
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
xor edi, edi
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
mov dword [0x14018e440], 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400c871a
mov qword [0x14018e448], rdi
jmp 0x1400c8787
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1400c8737
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x14018e448], rbx
test edi, edi
jne 0x1400c8787
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400c875f
mov qword [0x14018e450], rdi
jmp 0x1400c8787
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1400c877c
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov qword [0x14018e450], rbx
test edi, edi
je 0x1400c878c
call fcn.1400c87b0
mov eax, dword [0x14018e440]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400c9270
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x14018e448]
xor edi, edi
mov ebp, ecx
test rsi, rsi
jne 0x1400c9298
mov esi, edi
jmp 0x1400c92b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [rbp - 1]
mov dword [rsi + 0x28], 5
cmp ecx, 1
jbe 0x1400c92ce
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test byte [rsi + 0x194], 1
je 0x1400c9300
mov eax, ebp
dec eax
je 0x1400c92e6
dec eax
jne 0x1400c92e9
or edi, 0xffffffff
jmp 0x1400c92e9
mov edi, dword [rsi + 0x48]
call fcn.1400c7340
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
nop word [rax + rax]
mov rdi, qword [0x14018e450]
test rdi, rdi
je 0x1400c934c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400c934c
mov rax, qword [rdi]
test rax, rax
je 0x1400c933a
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x14018e450]
call fcn.1400c6de0
jmp 0x1400c9300
lea rcx, [rsi + 0x70]
mov edx, ebp
call qword [sym.imp.VCRUNTIME140.dll_longjmp]
int3
Function at 0x1400c97c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rcx]
xor ebp, ebp
mov rbx, rdx
mov dword [rsp + 0x70], ebp
mov r14, rcx
call fcn.1400c6fa0
test rbx, rbx
jne 0x1400c97f7
or r15d, 0xffffffff
jmp 0x1400c9802
mov rcx, rbx
call fcn.1400c8920
mov r15d, eax
lea rcx, [rdi + 8]
call fcn.1400c6570
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1400c98ca
lea rcx, [rdi + 8]
cmp qword [r14], rbp
jne 0x1400c9836
call fcn.1400c6b50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400c98d6
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1400c6b50
test ebx, ebx
jns 0x1400c98bf
mov rsi, qword [0x14018e450]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea rax, [0x1400c8a30]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x1400c9896
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x14018e450]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call fcn.1400c6de0
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call fcn.1400c7c10
mov ecx, eax
mov dword [rsp + 0x70], eax
call fcn.1400c8650
cmp dword [rsp + 0x70], 0
jne 0x1400c98ca
xor eax, eax
jmp 0x1400c98d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
or eax, 0xffffffff
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400c9900
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, qword [rcx]
mov r14, rcx
call fcn.1400c6fa0
test rdi, rdi
jne 0x1400c9949
lea ebx, [rdi + 0x16]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rcx, [rdi + 8]
call fcn.1400c6570
mov ebx, eax
test eax, eax
jne 0x1400c9928
cmp qword [r14], 0
lea rcx, [rdi + 8]
jne 0x1400c9974
call fcn.1400c6b50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400c992e
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1400c6b50
test ebx, ebx
jns 0x1400c99fd
mov rsi, qword [0x14018e450]
lea rax, [0x1400c8a90]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
test rsi, rsi
jne 0x1400c99a7
xor ebp, ebp
jmp 0x1400c99c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x14018e450]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x30], rbp
call fcn.1400c6de0
mov rcx, qword [rdi + 0x10]
or edx, 0xffffffff
call fcn.1400c7c10
mov ecx, eax
mov ebx, eax
call fcn.1400c8650
mov rbp, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400c9928
xor eax, eax
jmp 0x1400c9933

Function at 0x1400ca140
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400ca1a1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400ca19b
shr ax, 8
cmp al, 2
jne 0x1400ca19b
call fcn.1400d2710
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111120
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111120
add rsp, 0x1d8
ret

Function at 0x1400cc180
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400de7e0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400de83c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400de84c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400dc0e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x578], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400dc211
test rax, rax
je 0x1400dc211
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400dc211
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1400dc16b
sub ecx, 1
je 0x1400dc15b
sub ecx, 1
je 0x1400dc172
cmp ecx, 1
je 0x1400dc162
jmp 0x1400dc211
lea r9, str.Header
lea rax, [0x1401236f8]
jmp 0x1400dc179
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1400cc400
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400dc1a2
mov r10, qword [rdi + 0x2b8]
test r10, r10
je 0x1400dc1d9
mov rax, qword [rdi + 0x208]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x1400dc211
jmp 0x1400dc221
mov r9, qword [rdi + 0x200]
lea rcx, [0x140123620]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x200]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400dcc20
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140111120
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400dc55b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x218]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x210]
call fcn.1400dcb20
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x1400dc960
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400dc934
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x1400dc96a
mov edx, ebx
mov rcx, r14
call fcn.1400caab0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400dc240
mov rax, qword [r14]
mov dword [rax + 0x4a4c], ebx
mov eax, gethostname
jmp 0x1400dc962
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400dcb20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x540]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400dcc03
lea rax, [0x1400dc5b0]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x1400dcc03
cmp qword [rbx], 0
je 0x1400dcb84
test rdi, rdi
je 0x1400dcc03
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1400dbb70
cmp eax, 0xffffffff
je 0x1400dcc03
test al, 1
je 0x1400dcc03
cmp qword [rbx], 0
jne 0x1400dcbe2
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x1400dcbe2
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400dcc03
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400dcc20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2b8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400dcc63
mov rax, qword [rcx + 0x208]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400dcca8
mov r9, qword [rbx + 0x200]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140123620]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x1400dcdcd
call fcn.1400cb860
test eax, eax
jne 0x1400dcdf8
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x1400dcdc6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400dcdf8
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1400dd7b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400dd81b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.1400caab0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400dc310
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400dc310
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret