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

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x1400938c6
mov r8d, ebx
call fcn.140039b80
mov dword [rsp + 0x70], eax
jmp 0x1400938e0
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x1400939a8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x140093906
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x140093922
mov ebp, 2
mov edi, ebp
jmp 0x140093949
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140093935
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x140093946
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14009399e
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x140093963
lea r8, [rdi - 1]
mov rcx, r14
call fcn.140039b80
jmp 0x140093980
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x140093989
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x14009a254
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x14009a313
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x14009a2f9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x14009a2dc
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x14009a2a8
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x14009afb4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x14009b074
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x14009b059
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x14009b03c
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x14009b007
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x1400a7d10
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a7d64
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov qword [rsp + 0x70], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400a7ee7
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400a7ee7
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400a7ee7
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400a7ee7
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400a7ee7
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400a7ee7
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400a7ee7
mov r9, rsi
lea r8, [0x1401609d4]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400569e0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400a7e81
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400a7ee7
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400a7ee7
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140018d20
test eax, eax
jne 0x1400a7ee7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400a7f08
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400acd20
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400acee4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400acec4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400acd7d
lea ebp, [rax + 0xe]
jmp 0x1400acd89
cmp eax, 0x17
jne 0x1400ace31
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400ace31
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400ace31
cmp rax, rbp
jb 0x1400ace31
mov ecx, 0x30
call qword [fcn.14003f380]
mov rdi, rax
test rax, rax
je 0x1400ace6c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14003f380]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400ace5b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140017310
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400ace1e
call qword [case.0x140044659.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400ace40
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400ace2e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400acd70
jmp 0x1400ace72
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14003eedc]
mov rcx, rdi
call qword [fcn.14003eedc]
jmp 0x1400ace72
mov rcx, rdi
mov r14d, 8
call qword [fcn.14003eedc]
jmp 0x1400ace72
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400ace87
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400acebf
test rbx, rbx
je 0x1400aceba
mov rcx, qword [rbx + 0x20]
call qword [fcn.14003eedc]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14003eedc]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14003eedc]
mov rbx, rdi
test rdi, rdi
jne 0x1400ace91
mov rbx, r13
jmp 0x1400aced3
test rbx, rbx
jne 0x1400aced3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x1400ad8d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.140084580
sub rsp, rax
call fcn.14010303c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400ad91a
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400ad91a
lea rcx, [rsp + 0x20]
call qword [case.0x140044659.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x1400ade00
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x1401cfe60]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov dword [rcx + 0x270], ebp
mov rbx, rcx
call fcn.140118d60
test eax, eax
jne 0x1400adf9e
mov eax, dword [rsp + 0x30]
mov edx, 0x3e8
mov r8d, dword [rbx + 0xb0]
imul ecx, eax, 0x3e8
mov qword [rsp + 0x4a0], rdi
mov edi, dword [rbx + 0x25c]
test edi, edi
cmove ecx, edx
test r8d, r8d
jle 0x1400adebf
test eax, eax
je 0x1400ade74
cmp ecx, r8d
jle 0x1400adebf
xor ecx, ecx
call fcn.1400aba9c
mov rdx, rsi
mov rcx, rax
call fcn.140118d30
mulsd xmm0, qword [0x140154b88]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x1400adeb5
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.140118e80
jmp 0x1400adf96
sub ecx, eax
mov r8d, 1
jmp 0x1400adec8
test ecx, ecx
mov r8d, ebp
setg r8b
mov eax, 0x10624dd3
mov r10, rbp
imul ecx
mov r11, rbp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x1400adf14
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1400adf3c
mov rax, qword [rbx + 0x250]
lea r10, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
mov ecx, dword [rbx + 0x250]
lea rax, [rsp + 0x38]
test r8d, r8d
mov rdx, r11
mov r8, r10
cmove rax, rbp
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400adf7c
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.140118e80
jmp 0x1400adf96
jns 0x1400adf94
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.140118e80
jmp 0x1400adf96
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005e8d0
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400b0db0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rdi, rcx
lea rdx, [0x1401607e4]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.14007ac70
mov rsi, rax
test rax, rax
jne 0x1400b0e08
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.140118e80
jmp 0x1400b102e
mov rcx, rsi
call fcn.1401203b4
test eax, eax
jne 0x1400b0e57
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.14002b11c
cmp rax, 1
jne 0x1400b0e57
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x1400b0e57
cmp al, 0xa
je 0x1400b0e57
mov rcx, rsi
inc rbx
call fcn.1401203b4
test eax, eax
je 0x1400b0e20
mov rcx, rsi
call fcn.1401203e0
cmp rbx, 1
ja 0x1400b0e86
mov rcx, rsi
call fcn.14003ea14
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118e80
jmp 0x1400b102e
mov rdx, rdi
mov qword [rsp + 0x80], rbp
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rbp, rax
test rax, rax
jne 0x1400b0ebe
mov rcx, rsi
call fcn.14003ea14
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.140118e80
jmp 0x1400b1026
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14002b11c
cmp rax, rbx
je 0x1400b0f00
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.14003ea14
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118e80
jmp 0x1400b1026
mov rcx, rsi
call fcn.14003ea14
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.140114f10
test eax, eax
je 0x1400b0f44
sub rbx, 1
jne 0x1400b0f10
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Missing_public_key_data
mov rcx, rdi
lea edx, [rbx - 0x10]
call fcn.140118e80
jmp 0x1400b1026
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.14006e8a0
mov rsi, rax
test rax, rax
jne 0x1400b0f7c
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_public_key_data
mov rcx, rdi
lea edx, [rsi - 0x10]
call fcn.140118e80
jmp 0x1400b1026
inc rsi
mov qword [rsp + 0x90], r14
mov r14, rsi
mov r8, rbx
sub r14, rbp
mov edx, 0x20
cmp rsi, rbp
mov rcx, rsi
cmova r15, r14
sub r8, r15
call fcn.14006e8a0
test rax, rax
jne 0x1400b0fb0
lea rax, [rbx + rbp]
sub rax, rsi
lea r8, [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140118fb0
test eax, eax
je 0x1400b0ff0
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_key_data__not_base64_encoded
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118e80
jmp 0x1400b101e
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rbp
lea rax, [r14 - 1]
mov qword [r13], rax
mov rax, qword [rsp + 0x38]
mov qword [r12], rax
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b7150
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1400b71ec
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1400b71bc
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400b71cd
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1400b720b
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1400b7190
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1400b7228
cmp eax, 0x3e5
je 0x1400b722f
mov eax, 0xffffffff
jmp 0x1400b71f2
cmp eax, 0x3e4
jne 0x1400b7221
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400b71f2

Function at 0x1400b7240
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1400b72dc
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1400b72ac
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1400b72bd
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1400b72fb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1400b7280
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1400b7318
cmp eax, 0x3e5
je 0x1400b731f
mov eax, 0xffffffff
jmp 0x1400b72e2
cmp eax, 0x3e4
jne 0x1400b7311
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400b72e2
Function at 0x1400c2d70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x1400c2da8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c2ef0
cmp byte [rcx + 0xebe], 0
je 0x1400c2dc0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c3fe0
cmp byte [rcx + 0xec1], 0
je 0x1400c2e61
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400c2e1b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400c2dfe
cmp byte [rcx + 0xebd], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.140125df0
test eax, eax
je 0x1400c2e51
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xecd], 0
lea rcx, [rbx + 0x798]
je 0x1400c2e41
lea rdx, str.PRET_STOR__s
call fcn.140125df0
test eax, eax
je 0x1400c2e51
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140125df0
test eax, eax
jne 0x1400c2e6e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c4830
add rsp, 0x20
pop rbx
ret

Function at 0x1400c2e80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xeb9], 0
jne 0x1400c2ea5
cmp dword [rax + 0x9f0], 0
je 0x1400c2ed1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400c2ed1
lea rdx, str.MDTM__s
call fcn.140125df0
test eax, eax
jne 0x1400c2ede
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c4980
add rsp, 0x20
pop rbx
ret

Function at 0x1400c39e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x260]
lea r8, [rax + 8]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x20]
mov rdi, rcx
mov dword [rax + 8], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400c3a4c
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400545a0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400c3a71
lea rdx, str.Error_accept__ing_server_connect
call fcn.140052c70
lea eax, [rbx + 0x1f]
jmp 0x1400c3aea
lea rdx, str.Connection_accepted_from_server_n
call fcn.140052b10
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400a7f20
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400c3ae8
mov dl, 1
mov rcx, rsi
call fcn.140040300
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140040300
test ebx, ebx
je 0x1400c3ae8
mov rcx, rdi
call fcn.1400c38f0
mov eax, 0x2a
jmp 0x1400c3aea
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c48c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x1400c490d
cmp qword [rcx + 0x820], 0
je 0x1400c490d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140125df0
test eax, eax
jne 0x1400c4917
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400c2d70
add rsp, 0x20
pop rbx
ret

Function at 0x1400c4920
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x1400c496c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400c496c
lea rdx, str.SIZE__s
call fcn.140125df0
test eax, eax
jne 0x1400c4979
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400c48c0
add rsp, 0x20
pop rbx
ret

Function at 0x1400c4980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xecc], 0
je 0x1400c49d8
cmp qword [rcx + 0x820], 0
je 0x1400c49d8
cmp byte [r9 + 0xebb], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400c49d8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xebb]
jmp fcn.1400c31d0
jmp fcn.1400c4920
Function at 0x1400c53e0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400c5415
lea rdx, str.Couldnt_set_desired_mode
call fcn.140052c70
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400c542c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140052b10
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400c5448
mov rcx, rdi
call fcn.1400c4920
jmp 0x1400c5580
cmp esi, 0x14
jne 0x1400c5562
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400c54ca
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400c54ca
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140014bd0
test eax, eax
jne 0x1400c5580
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14005eb64
test rax, rax
je 0x1400c54bf
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400c54ca
mov rcx, qword [rsp + 0x50]
call qword [fcn.14003eedc]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400c54ee
cmp byte [rsi + 0xebd], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401606ec]
test rbp, rbp
mov r9, r8
lea rax, [0x1401613ac]
cmovne r9, rbp
lea rcx, [0x1401608bc]
cmovne r8, rax
call fcn.140056ab0
mov rcx, rbp
mov r14, rax
call qword [fcn.14003eedc]
test r14, r14
jne 0x1400c552d
lea ebx, [r14 + 0x1b]
jmp 0x1400c5582
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140160914]
call fcn.140125df0
mov rcx, r14
mov esi, eax
call qword [fcn.14003eedc]
test esi, esi
je 0x1400c5556
mov ebx, esi
jmp 0x1400c5582
mov dword [rdi + 0x850], 0x1f
jmp 0x1400c5582
cmp esi, 0x15
jne 0x1400c556d
lea r8d, [rsi - 8]
jmp 0x1400c5576
cmp esi, 0x16
jne 0x1400c5582
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400c2ef0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret