joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400db0d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r11d, 1
mov r10, rcx
cmp dword [rcx + 0x30], r11d
jbe 0x1400db1f7
mov qword [rsp], rbx
lea rbx, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r8d, r11d
shl r8, 4
add r8, r10
mov r9d, r11d
inc r11d
movzx ecx, byte [r8 + 0x37]
movzx eax, byte [r8 + 0x36]
mov edx, dword [rbx + rcx*4 + 0x329720]
xor edx, dword [rbx + rax*4 + 0x326b20]
movzx eax, byte [r8 + 0x35]
xor edx, dword [rbx + rax*4 + 0x328b20]
movzx eax, byte [r8 + 0x34]
xor edx, dword [rbx + rax*4 + 0x329320]
mov dword [r8 + 0x34], edx
movzx ecx, byte [r8 + 0x3b]
movzx eax, byte [r8 + 0x3a]
mov edx, dword [rbx + rcx*4 + 0x329720]
xor edx, dword [rbx + rax*4 + 0x326b20]
movzx eax, byte [r8 + 0x39]
xor edx, dword [rbx + rax*4 + 0x328b20]
movzx eax, byte [r8 + 0x38]
xor edx, dword [rbx + rax*4 + 0x329320]
mov dword [r8 + 0x38], edx
movzx ecx, byte [r8 + 0x3f]
movzx eax, byte [r8 + 0x3e]
mov edx, dword [rbx + rcx*4 + 0x329720]
xor edx, dword [rbx + rax*4 + 0x326b20]
movzx eax, byte [r8 + 0x3d]
xor edx, dword [rbx + rax*4 + 0x328b20]
movzx eax, byte [r8 + 0x3c]
xor edx, dword [rbx + rax*4 + 0x329320]
mov dword [r8 + 0x3c], edx
lea r8, [r9 + 4]
shl r8, 4
add r8, r10
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
mov edx, dword [rbx + rcx*4 + 0x329720]
xor edx, dword [rbx + rax*4 + 0x326b20]
movzx eax, byte [r8 + 1]
xor edx, dword [rbx + rax*4 + 0x328b20]
movzx eax, byte [r8]
xor edx, dword [rbx + rax*4 + 0x329320]
mov dword [r8], edx
cmp r11d, dword [r10 + 0x30]
jb 0x1400db100
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x1400e3e90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, [rcx + rdx]
mov rbp, rax
mov rbx, rcx
sub rbp, rcx
mov esi, 0x1505
cmp rcx, rax
cmova rbp, rdi
test rbp, rbp
je 0x1400e3ac3
movzx ecx, byte [rbx]
call fcn.1400f2830
imul rsi, rsi, 0x21
movsx rcx, al
lea rbx, [rbx + 1]
xor rsi, rcx
inc rdi
cmp rdi, rbp
jb 0x1400e3aa4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400e3ec6
call fcn.1400e4210
test al, al
jne 0x1400e3ec6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400e4160
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1400e3a70
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400ef8f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x728], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400ef94e
mov dl, 1
call fcn.1400dff10
mov rax, qword [rdi + 0x680]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x728]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400dff10
mov eax, ebx
jmp 0x1400ef990
cmp ebx, 2
ja 0x1400ef98e
mov r9, qword [rdi + 0x678]
lea rdx, [0x1402495d8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140223700
mov r9, qword [rdi + 0x678]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.140223700
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400efd20
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 0x1400efd5b
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 0x1400efe90
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x100]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r15, rcx
mov rbx, qword [rcx + rax*8 + 0x240]
call fcn.1400f04b0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], 0
cmp rdi, 0xffffffffffffffff
jne 0x1400eff42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400eff0e
mov dword [r14], 0x51
xor eax, eax
jmp 0x1400eff45
mov r8d, 0x80
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14011b4c0
mov rcx, qword [r15]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400ef9b0
mov rcx, qword [r15]
mov dword [rcx + 0x10e8], ebx
mov dword [r14], reloc.WS2_32.dll_getservbyname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140215090
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f04b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, rcx
shl rax, 5
mov rbp, qword [rsi + rcx*8 + 0x240]
lea rbx, [rsi + 0x288]
add rbx, rax
mov rax, qword [rsi + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400f0592
lea rax, [0x1400efdb0]
cmp qword [rsi + rcx*8 + 0x268], rax
jne 0x1400f0592
cmp qword [rbx], 0
je 0x1400f051c
test rdi, rdi
je 0x1400f0592
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.1400ef530
cmp eax, 0xffffffff
je 0x1400f0592
test al, 1
je 0x1400f0592
cmp qword [rbx], 0
jne 0x1400f0571
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb60]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.140224a2c]
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 0x1400f0571
mov qword [rbx + 8], rcx
jmp 0x1400f0592
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400f0592
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
test byte [rcx + 0x2d8], 1
je 0x1400f06dd
call fcn.1400e89a0
test eax, eax
jne 0x1400f0708
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x240]
cmp rcx, 0xffffffffffffffff
je 0x1400f06d6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400f0708
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1400f1190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp dword [rcx + 0xbc], 2
mov rdi, rdx
mov rsi, qword [rcx]
mov rbx, rcx
je 0x1400f1392
test dword [rcx + 0x3c4], 0x8000002
jne 0x1400f138a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400f1233
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.14011b4c0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400ef9b0
jmp 0x1400f1392
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.140218bd0
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400f129b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.14011b4c0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400ef9b0
jmp 0x1400f1392
lea rdi, [rbx + 0x18e]
mov rdx, rdi
lea r8, [rbx + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.1400f18d0
test al, al
jne 0x1400f12fc
call fcn.14022383c
mov rbx, rax
call fcn.14022383c
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, 0x80
mov rdi, rax
call fcn.14011b4c0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400ef9b0
jmp 0x1400f1392
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
lea r8, [rbx + 0x1f0]
movups xmm1, xmmword [rdi + 0x10]
lea rdx, [rbx + 0x1c0]
movups xmmword [rbx + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x98], xmm1
movsd qword [rbx + 0xa8], xmm0
mov dword [rbx + 0xb0], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0xb4], ax
call fcn.1400f18d0
test al, al
jne 0x1400f138a
call fcn.14022383c
mov rbx, rax
call fcn.14022383c
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, 0x80
mov rdi, rax
call fcn.14011b4c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400ef9b0
jmp 0x1400f1392
mov rcx, rbx
call fcn.1400f0dd0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140215090
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400f1c70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0xe74]
lea r9, [rsp + 0x50]
mov rdi, rdx
shr eax, 0xc
and eax, 1
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400f1cdb
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400efac0
jmp 0x1400f1d6a
mov ecx, dword [rbx + 0xdfc]
mov dword [rsp + 0x58], 1
call fcn.1400f2030
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe00]
call fcn.1400f2030
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov edx, 0x98000004
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400f1d6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1400efac0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140215090
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x1400f1d90
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
lea r9, [rsp + 0x30]
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400f1e08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14011b4c0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400efac0
jmp 0x1400f1e17
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400efac0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140215090
add rsp, 0xd0
pop rbx
ret

Function at 0x1400f1fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.1400f2050
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.140231928
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1400f2320
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140249a48]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400f234a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140249a68]
mov rcx, rbx
mov r14, rax
call fcn.14022c150
test rax, rax
je 0x1400f23ad
mov rcx, rbx
test r14, r14
je 0x1400f2397
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400f23e5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f23e5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400f24a8
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400f2410
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140224a2c]
mov rdi, rax
test rax, rax
je 0x1400f249a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400f249a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400f2440
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1400f2454
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400f2470
mov rcx, rdi
test r14, r14
je 0x1400f2491
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400f2497
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140222478]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400f2630
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x1400f2696
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400f2679
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400f2673
shr ax, 8
cmp al, 2
je 0x1400f2696
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140215090
add rsp, 0x1d8
ret
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.1400f24c0
test al, al
je 0x1400f26c2
lea rcx, [0x140330648]
mov byte [0x140330640], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1400f26c9
mov byte [0x140330640], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140215090
add rsp, 0x1d8
ret
Function at 0x1400ff290
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400ff42e
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400ff413
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400ff2ed
lea ebp, [rax + 0xe]
jmp 0x1400ff2f9
cmp eax, 0x17
jne 0x1400ff3a1
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x1400ff3a1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400ff3a1
cmp rax, rbp
jb 0x1400ff3a1
mov ecx, gethostbyname
call qword [fcn.140224a2c]
mov rbx, rax
test rax, rax
je 0x1400ff3dc
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [fcn.140224a2c]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400ff3cb
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140218780
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400ff38e
call qword [case.0x1400e44a6.0]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400ff3b0
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x1400ff39e
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400ff2e0
jmp 0x1400ff3e2
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [fcn.140222478]
mov rcx, rbx
call qword [fcn.140222478]
jmp 0x1400ff3e2
mov rcx, rbx
mov r14d, 8
call qword [fcn.140222478]
jmp 0x1400ff3e2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400ff3fc
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400ff40e
mov rcx, rsi
call fcn.1400ff240
mov rsi, r13
jmp 0x1400ff422
test rsi, rsi
jne 0x1400ff422
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140101dd0
Capabilities:
Encode data using xor

Disassembly:
push r13
sub rsp, 0x220
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp byte [0x14032ace0], 0
mov r13, rcx
mov qword [rsp + 0x30], rcx
jne 0x140101e0c
call fcn.140104b40
test al, al
je 0x140101e13
mov byte [0x14032ace0], 1
xor eax, eax
jmp 0x140102032
mov rcx, qword [r13 + 0xcf0]
test rcx, rcx
je 0x140101e32
mov edx, 0x400
call fcn.14013cfb0
call fcn.140104b40
test al, al
jne 0x140101e0c
mov qword [rsp + 0x238], rbx
mov qword [rsp + 0x240], rbp
mov qword [rsp + 0x248], rsi
mov qword [rsp + 0x218], rdi
mov qword [rsp + 0x210], r12
mov r12d, 0x40
mov qword [rsp + 0x208], r14
mov qword [rsp + 0x200], r15
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm7
xorps xmm7, xmm7
cvtsi2sd xmm7, r12
test r12, r12
jns 0x140101e95
addsd xmm7, qword [0x14024d6d8]
mulsd xmm7, qword [0x14029f8e0]
xor r13d, r13d
mov r14, r13
lea r15, [rsp + 0x90]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.1400f2f10
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.1400ef8a0
mov ebp, dword [rsp + 0x28]
lea rdi, [r14 + 3]
lea rax, [rdi - 2]
movq rsi, xmm6
imul rsi, rax
lea eax, [r14 + 2]
lea rcx, [rsp + 0x48]
imul ebp, eax
call fcn.1400f2f10
lea rcx, [rsp + 0x58]
movsxd rbx, dword [rax + 8]
call fcn.1400f2f10
mov rcx, qword [rax]
add rcx, rbx
imul rcx, rdi
shl rcx, 8
xor rsi, rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
call fcn.1400f2f10
lea rcx, [rsp + 0x78]
mov rbx, rax
call fcn.1400f2f10
lea r15, [r15 + 0x10]
mov ecx, dword [rax]
lea eax, [r14 + 4]
add ecx, dword [rbx + 8]
inc r14
imul ecx, eax
shl ecx, 0x10
xor ebp, ecx
mov dword [rsp + 0x28], ebp
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r15 - 0x10], xmm0
cmp r14, 4
jb 0x140101eb0
movaps xmm2, xmm7
lea rcx, [rsp + 0x90]
mov edx, r12d
call fcn.14013cc50
call fcn.140104b40
test al, al
je 0x140101ea0
mov edx, 0x100
mov byte [rsp + 0xd0], r13b
lea rcx, [rsp + 0xd0]
call fcn.14013ce60
cmp byte [rsp + 0xd0], r13b
mov r13, qword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x1e0]
movaps xmm6, xmmword [rsp + 0x1f0]
mov r15, qword [rsp + 0x200]
mov r14, qword [rsp + 0x208]
mov r12, qword [rsp + 0x210]
mov rdi, qword [rsp + 0x218]
mov rsi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x238]
je 0x14010200d
mov edx, 0x400
lea rcx, [rsp + 0xd0]
call fcn.14013cfb0
call fcn.140104b40
test al, al
jne 0x140101e0c
lea rdx, str.libcurl_is_now_using_a_weak_random_seed__n
mov rcx, r13
call fcn.1400efac0
call fcn.140104b40
test al, al
mov ecx, reloc.WLDAP32.dll_Ordinal_35
mov eax, 0
cmovne ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140215090
add rsp, 0x220
pop r13
ret
Function at 0x140106390
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14022c78c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1401063f6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1401063f6
lea rcx, [rsp + 0x20]
call qword [case.0x1400e44a6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140215090
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140215090
add rsp, 0x148
ret
jmp 0x140106390

Function at 0x140106410
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14022c78c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1401063f6
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1401063f6
lea rcx, [rsp + 0x20]
call qword [case.0x1400e44a6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140215090
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140215090
add rsp, 0x148
ret
jmp 0x140106390

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x248]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
or rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14010c6a7
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400f05b0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14010c6cc
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400ef9b0
lea eax, [rbx + 0x1f]
jmp 0x14010c748
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400efac0
and dword [rdi + 0x3c4], 0xfffff7ff
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x248], rbx
call fcn.14011bf00
mov byte [rdi + 0x261], 1
cmp qword [rsi + 0x738], 0
je 0x14010c746
mov dl, 1
mov rcx, rsi
call fcn.1400dff10
mov rcx, qword [rsi + 0x740]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x738]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1400dff10
test ebx, ebx
je 0x14010c746
mov rcx, rdi
call fcn.14010cc10
mov eax, Ordinal_46
jmp 0x14010c748
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140215090
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret