joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b400
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 0x14003b5c4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14003b5a4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003b45d
lea ebp, [rax + 0xe]
jmp 0x14003b469
cmp eax, 0x17
jne 0x14003b511
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x14003b511
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14003b511
cmp rax, rbp
jb 0x14003b511
mov ecx, 0x30
call qword [fcn.140012f2c]
mov rdi, rax
test rax, rax
je 0x14003b54c
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.140012f2c]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14003b53b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14000e2f0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14003b4fe
call qword [case.0x140016ab9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14003b520
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14003b50e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14003b450
jmp 0x14003b552
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140012f18]
mov rcx, rdi
call qword [fcn.140012f18]
jmp 0x14003b552
mov rcx, rdi
mov r14d, 8
call qword [fcn.140012f18]
jmp 0x14003b552
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14003b567
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14003b59f
test rbx, rbx
je 0x14003b59a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140012f18]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140012f18]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140012f18]
mov rbx, rdi
test rdi, rdi
jne 0x14003b571
mov rbx, r13
jmp 0x14003b5b3
test rbx, rbx
jne 0x14003b5b3
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 0x14003bea4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400ab700]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400a01b8]
mov rbp, rcx
call fcn.14002a340
xor edi, edi
test rax, rax
je 0x14003bf8a
mov ebx, edi
call fcn.1400237a0
mov r14d, dword [rax]
call fcn.1400237a0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140067f84
mov rsi, rax
test rax, rax
je 0x14003bf1b
call fcn.1400237a0
mov dword [rax], r14d
jmp 0x14003bf45
call fcn.1400237a0
cmp dword [rax], 0x22
jne 0x14003bf82
call fcn.1400237a0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140067f84
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14003bf82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14003bf49
cmp rax, 3
je 0x14003bf64
mov rcx, rsi
call fcn.14003be00
test al, al
je 0x14003bf75
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14003bf75
mov dil, 1
mov rcx, rbx
call fcn.140012f18
mov al, dil
jmp 0x14003bf8c
mov rcx, rbx
call fcn.140012f18
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400252c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14003c8b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.14003b360
sub rsp, rax
call fcn.140068674
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14003c8fa
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14003c8fa
lea rcx, [rsp + 0x20]
call qword [case.0x140016ab9.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x14003dfc0
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x1400ab700]
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.14006c4d0
test eax, eax
jne 0x14003e15e
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 0x14003e07f
test eax, eax
je 0x14003e034
cmp ecx, r8d
jle 0x14003e07f
xor ecx, ecx
call fcn.140039f4c
mov rdx, rsi
mov rcx, rax
call fcn.14006c4a0
mulsd xmm0, qword [0x14008bdd8]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x14003e075
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.14006c640
jmp 0x14003e156
sub ecx, eax
mov r8d, 1
jmp 0x14003e088
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 0x14003e0d4
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x14003e0fc
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 0x14003e13c
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.14006c640
jmp 0x14003e156
jns 0x14003e154
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.14006c640
jmp 0x14003e156
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400252c0
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x140040f70
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, [0x1400920f4]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.1400345b0
mov rsi, rax
test rax, rax
jne 0x140040fc8
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.14006c640
jmp 0x1400411ee
mov rcx, rsi
call fcn.140073b84
test eax, eax
jne 0x140041017
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.1400255fc
cmp rax, 1
jne 0x140041017
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x140041017
cmp al, 0xa
je 0x140041017
mov rcx, rsi
inc rbx
call fcn.140073b84
test eax, eax
je 0x140040fe0
mov rcx, rsi
call fcn.140073bb0
cmp rbx, 1
ja 0x140041046
mov rcx, rsi
call fcn.1400343f4
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.14006c640
jmp 0x1400411ee
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 0x14004107e
mov rcx, rsi
call fcn.1400343f4
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.14006c640
jmp 0x1400411e6
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1400255fc
cmp rax, rbx
je 0x1400410c0
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.1400343f4
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.14006c640
jmp 0x1400411e6
mov rcx, rsi
call fcn.1400343f4
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.140067360
test eax, eax
je 0x140041104
sub rbx, 1
jne 0x1400410d0
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.14006c640
jmp 0x1400411e6
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.1400668f0
mov rsi, rax
test rax, rax
jne 0x14004113c
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.14006c640
jmp 0x1400411e6
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.1400668f0
test rax, rax
jne 0x140041170
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.14006c780
test eax, eax
je 0x1400411b0
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.14006c640
jmp 0x1400411de
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 0x140047310
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 0x1400473ac
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14004737c
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 0x14004738d
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 0x1400473cb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140047350
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 0x1400473e8
cmp eax, 0x3e5
je 0x1400473ef
mov eax, 0xffffffff
jmp 0x1400473b2
cmp eax, 0x3e4
jne 0x1400473e1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400473b2

Function at 0x140047400
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 0x14004749c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x14004746c
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 0x14004747d
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 0x1400474bb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x140047440
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 0x1400474d8
cmp eax, 0x3e5
je 0x1400474df
mov eax, 0xffffffff
jmp 0x1400474a2
cmp eax, 0x3e4
jne 0x1400474d1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1400474a2
Function at 0x14004fc98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003b360
sub rsp, rax
mov rax, qword [0x1400ab700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024b34
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004fce7
mov rax, rbp
jmp 0x14004fdef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xacd50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400679f4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xacd50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004fdeb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004fdeb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400679f4
test rax, rax
js 0x14004fdeb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004fdeb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004fddd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004fddd
cmp byte [rcx], 0xd
jne 0x14004fdc3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004fdd2
cmp byte [rcx + 1], 0xa
jne 0x14004fdd2
inc rcx
jmp 0x14004fdd2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xabdb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004fda5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004fdef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400252c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400534a0
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 0x1400534d8
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.140053620
cmp byte [rcx + 0xebe], 0
je 0x1400534f0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140054710
cmp byte [rcx + 0xec1], 0
je 0x140053591
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14005354b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14005352e
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.140079640
test eax, eax
je 0x140053581
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xecd], 0
lea rcx, [rbx + 0x798]
je 0x140053571
lea rdx, str.PRET_STOR__s
call fcn.140079640
test eax, eax
je 0x140053581
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140079640
test eax, eax
jne 0x14005359e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140054f60
add rsp, 0x20
pop rbx
ret
Function at 0x1400535b0
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 0x1400535d5
cmp dword [rax + 0x9f0], 0
je 0x140053601
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140053601
lea rdx, str.MDTM__s
call fcn.140079640
test eax, eax
jne 0x14005360e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400550b0
add rsp, 0x20
pop rbx
ret

Function at 0x140054110
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 0x14005417c
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.140021f60
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400541a1
lea rdx, str.Error_accept__ing_server_connect
call fcn.140020720
lea eax, [rbx + 0x1f]
jmp 0x14005421a
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400205c0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.140032010
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140054218
mov dl, 1
mov rcx, rsi
call fcn.1400140f0
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.1400140f0
test ebx, ebx
je 0x140054218
mov rcx, rdi
call fcn.140054020
mov eax, 0x2a
jmp 0x14005421a
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 0x140054ff0
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 0x14005503d
cmp qword [rcx + 0x820], 0
je 0x14005503d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140079640
test eax, eax
jne 0x140055047
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400534a0
add rsp, 0x20
pop rbx
ret

Function at 0x140055050
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 0x14005509c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005509c
lea rdx, str.SIZE__s
call fcn.140079640
test eax, eax
jne 0x1400550a9
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140054ff0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xecc], 0
je 0x140055108
cmp qword [rcx + 0x820], 0
je 0x140055108
cmp byte [r9 + 0xebb], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x140055108
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xebb]
jmp fcn.140053900
jmp fcn.140055050
Function at 0x140055b10
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 0x140055b45
lea rdx, str.Couldnt_set_desired_mode
call fcn.140020720
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x140055b5c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400205c0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140055b78
mov rcx, rdi
call fcn.140055050
jmp 0x140055cb0
cmp esi, 0x14
jne 0x140055c92
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x140055bfa
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140055bfa
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.140050200
test eax, eax
jne 0x140055cb0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.14003a040
test rax, rax
je 0x140055bef
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x140055bfa
mov rcx, qword [rsp + 0x50]
call qword [fcn.140012f18]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x140055c1e
cmp byte [rsi + 0xebd], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14009204c]
test rbp, rbp
mov r9, r8
lea rax, [0x140092818]
cmovne r9, rbp
lea rcx, [0x140092170]
cmovne r8, rax
call fcn.140032f60
mov rcx, rbp
mov r14, rax
call qword [fcn.140012f18]
test r14, r14
jne 0x140055c5d
lea ebx, [r14 + 0x1b]
jmp 0x140055cb2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400921b8]
call fcn.140079640
mov rcx, r14
mov esi, eax
call qword [fcn.140012f18]
test esi, esi
je 0x140055c86
mov ebx, esi
jmp 0x140055cb2
mov dword [rdi + 0x850], 0x1f
jmp 0x140055cb2
cmp esi, 0x15
jne 0x140055c9d
lea r8d, [rsi - 8]
jmp 0x140055ca6
cmp esi, 0x16
jne 0x140055cb2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140053620
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
Function at 0x14005c7fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400acd50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005c853
cmp word [rdx], r13w
jne 0x14005c853
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005c858
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005c97d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005c99e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005c891
mov rdx, r9
mov word [rbx], cx
jmp 0x14005c8b8
cmp r9, r8
jae 0x14005c8c8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005c872
jmp 0x14005c97d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c972
cmp dword [rsp + 0x80], esi
je 0x14005c972
lea r8, [0x1400acd50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005c94a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005c91a
mov word [rbx], r13w
jmp 0x14005c97a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005c927
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005c97a
cmp word [rsp + 0x70], r13w
jne 0x14005c957
cmp rbx, r14
je 0x14005c914
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140067948
cmp word [rsp + 0x70], r13w
je 0x14005c97d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400acd50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005c977
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005c97d