joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d2810
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x40
call fcn.140150d80
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test r8, r8
jne 0x1400d2848
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test rcx, rcx
je 0x1400d28df
test rdx, rdx
je 0x1400d28a3
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], r8
call fcn.140050b50
test rax, rax
jne 0x1400d28cb
lea rdx, [0x140213410]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x1400d2892
inc rbx
test eax, eax
jne 0x1400d2880
test ecx, ecx
jne 0x1400d28a3
mov rcx, rdi
call fcn.140151688
test rax, rax
jne 0x1400d28e7
mov rcx, qword [rsi + 0x10]
lea rax, [0x140213418]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
call fcn.140050b50
test rax, rax
je 0x1400d2836
mov rax, qword [rax + 0x10]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, r8
call fcn.140151688
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400dbf90
Capabilities:
Encode data using base64

Disassembly:
mov eax, 8
call fcn.140150d80
sub rsp, rax
xor r11d, r11d
mov r9d, r8d
test r8d, r8d
jle 0x1400dc097
mov qword [rsp], rbx
lea r10, [rdx + 1]
lea rbx, [0x1401b6d00]
nop dword [rax + rax]
movzx edx, byte [r10 - 1]
cmp r9d, 3
jl 0x1400dc01e
movzx eax, byte [r10]
shl edx, 8
or edx, eax
movzx eax, byte [r10 + 1]
shl edx, 8
or edx, eax
mov eax, edx
mov r8d, edx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [rcx], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [rcx + 1], al
mov eax, edx
shr rax, 6
and eax, 0x3f
and r8d, 0x3f
movzx eax, byte [rax + rbx]
mov byte [rcx + 2], al
movzx eax, byte [r8 + rbx]
mov byte [rcx + 3], al
jmp 0x1400dc06f
shl edx, 0x10
cmp r9d, 2
jne 0x1400dc030
movzx eax, byte [r10]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [rcx + 1], al
cmp r9d, 1
jne 0x1400dc05d
lea eax, [r9 + 0x3c]
jmp 0x1400dc068
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + rbx]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
sub r9d, 3
add rcx, 4
add r11d, 4
add r10, 3
test r9d, r9d
jg 0x1400dbfc0
mov rbx, qword [rsp]
mov byte [rcx], 0
mov eax, r11d
add rsp, 8
ret
mov byte [rcx], r11b
mov eax, r11d
add rsp, 8
ret
Function at 0x1400e12c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400e131e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400e1318
shr ax, 8
cmp al, 2
jne 0x1400e1318
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140150a60
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.140150a60
add rsp, 0x1d8
ret

Function at 0x1400e5550
Capabilities:
Terminate process

Disassembly:
mov eax, Ordinal_41
call fcn.140150d80
sub rsp, rax
lea r8, [0x1402177b8]
lea edx, [rax - 0x18]
lea ecx, [rax - 0x23]
mov r9d, 0x1db
call fcn.14004d570
cmp qword [0x14022b380], 0
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xa]
jne 0x1400e567e
lea r8, [0x1402177d0]
mov r9d, 0x1dd
call fcn.14004d570
mov edx, reloc.WS2_32.dll_recv
lea r8, [0x1402177e8]
lea ecx, [rdx - 7]
mov r9d, 0x1de
call fcn.14004d570
cmp qword [0x14022b380], 0
jne 0x1400e5660
mov ecx, 3
call fcn.14004ea90
lea rcx, [0x1400973f0]
call fcn.140051160
mov qword [0x14022b380], rax
test rax, rax
je 0x1400e5656
lea rdx, [0x140217800]
mov r8d, 0x1e7
mov ecx, Ordinal_27
mov qword [rsp + 0x20], rbx
call fcn.14004e700
mov rbx, rax
test rax, rax
je 0x1400e5645
call fcn.140107f50
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400e5628
cmp dword [rax], 0
jne 0x1400e5628
mov rcx, rbx
call fcn.14004e660
jmp 0x1400e5645
mov rcx, qword [0x14022b380]
mov dword [rbx], 1
mov rax, qword [rax + 8]
mov rdx, rbx
mov qword [rbx + 8], rax
call fcn.1400512f0
mov rcx, qword [0x14022b380]
call fcn.1400513a0
mov rbx, qword [rsp + 0x20]
mov ecx, 2
call fcn.14004ea90
mov edx, reloc.WS2_32.dll_recv
lea r8, [0x140217818]
mov r9d, 0x1f9
lea ecx, [rdx - 6]
add rsp, 0x28
jmp fcn.14004d570
lea r8, [0x140217830]
mov r9d, 0x1fb
add rsp, 0x28
jmp fcn.14004d570

Function at 0x1400f5650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x1400f565c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.140117040
Function at 0x1400f61a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140117150
sub rsp, 0x28
mov rcx, qword [rcx + 0x1d0]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x1401171b7
cmp rcx, 1
jne 0x140117187
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x1401171be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14011717d
cmp eax, 0xb
je 0x14011717d
add eax, 0xffffd8be
cmp eax, 0xa
ja 0x1401171be
mov ecx, 0x59d
bt ecx, eax
jae 0x1401171be
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x1400fe660
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x4a0], 0
mov rax, qword [rsp + 0x130]
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x1400fe78d
test rax, rax
je 0x1400fe78d
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x1400fe78d
mov ecx, esi
lea r9, str.Data
dec ecx
je 0x1400fe6e7
dec ecx
je 0x1400fe6d7
dec ecx
je 0x1400fe6ee
dec ecx
je 0x1400fe6de
jmp 0x1400fe78d
lea r9, str.Header
lea rax, [0x1401b94a8]
jmp 0x1400fe6f5
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x30]
mov edx, 0xa0
mov qword [rsp + 0x20], rax
call fcn.140100cf0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400fe720
mov r10, qword [rdi + 0x2b8]
test r10, r10
je 0x1400fe757
mov rax, qword [rdi + 0x208]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x1400fe78d
jmp 0x1400fe79d
mov r9, qword [rdi + 0x200]
mov edx, 2
lea rcx, [0x1401b93c8]
lea r8d, [rdx - 1]
call fcn.140154ab4
mov r9, qword [rdi + 0x200]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140154ab4
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400ff0f0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140150a60
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400fea90
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 0x1400feacb
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 0x1400fedf0
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 r10d, r10d
cmp rdx, qword [rcx + 0x1d8]
mov rdi, r9
sete r10b
mov rsi, r8
mov r14, rcx
movsxd rax, r10d
mov edx, r10d
mov rbx, qword [rcx + rax*8 + 0x1d0]
call fcn.1400feff0
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 0x1400fee96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400fee6a
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x1400feea0
mov edx, eax
mov rcx, r14
call fcn.140116660
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400fe7c0
mov rax, qword [r14]
mov dword [rax + 0x88bc], ebx
mov eax, gethostname
jmp 0x1400fee98
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 0x1400feff0
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 + 0x218]
mov rsi, qword [rcx + r8*8 + 0x1d0]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x348]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400ff0d3
lea rax, [0x1400feae0]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x1400ff0d3
cmp qword [rbx], 0
je 0x1400ff054
test rdi, rdi
je 0x1400ff0d3
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rsi
or rdx, r8
call fcn.1400fe080
cmp eax, 0xffffffff
je 0x1400ff0d3
test al, 1
je 0x1400ff0d3
cmp qword [rbx], 0
jne 0x1400ff0b2
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [fcn.1401527d8]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov qword [rbx], rax
test rax, rax
jne 0x1400ff0b2
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
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400ff0d3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ff0f0
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 0x1400ff133
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 0x1400ff176
mov r9, qword [rbx + 0x200]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1401b93c8]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.140154ab4
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140154ab4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400ff3c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x848]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400ff430
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1400ff3f3
cmp qword [rdi + 0x78], rcx
je 0x1400ff430
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1400ff406
mov rcx, qword [rdi + 0x78]
lea r8, [0x140100330]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.140113fa0
cmp byte [rsp + 0x28], 0
jne 0x1400ff444
mov qword [rdi + 0x848], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400ff44c
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x1400ff46a
mov rcx, rbx
call fcn.1400f61a0
test eax, eax
jne 0x1400ff48c
jmp 0x1400ff430
cmp rdi, 0xffffffffffffffff
je 0x1400ff48c
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400ff430
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400ff9f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14022b420]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400ffa4d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.14012ee40
test al, al
je 0x1400ffa41
mov dword [0x14022b420], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14022b420], 1
jmp 0x1400ffa52
cmp eax, 2
je 0x1400ffaa4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400ffa83
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400ffaa4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

Function at 0x1400ffb80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400ffbeb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140116660
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.1400fe880
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400fe880
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ffcf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x1400ffebd
cmp byte [rcx + 0x31a], 0
jne 0x1400ffeb5
cmp byte [rcx + 0x334], 0
jne 0x1400ffeb5
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400ffd92
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140116660
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400fe7c0
jmp 0x1400ffebd
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.140152f60
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400ffdef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140116660
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400fe7c0
jmp 0x1400ffebd
lea rbx, [rdi + 0x114]
lea r8, [rdi + 0x144]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.140100350
test al, al
jne 0x1400ffe3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140116660
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400fe7c0
jmp 0x1400ffebd
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
movups xmm1, xmmword [rbx + 0x10]
lea r8, [rdi + 0x178]
lea rdx, [rdi + 0x148]
lea rcx, [rsp + 0x30]
movups xmmword [rdi + 0x70], xmm0
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140100350
test al, al
jne 0x1400ffeb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140116660
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1400fe7c0
jmp 0x1400ffebd
mov rcx, rdi
call fcn.1400ff930
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140150a60
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140100700
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp byte [rcx + 0x694], al
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14010076f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.1400fe880
jmp 0x1401007fe
mov ecx, dword [rbx + 0x698]
mov dword [rsp + 0x58], 1
call fcn.140100b10
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x69c]
call fcn.140100b10
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, listen
mov edx, 0x98000004
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x54]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1401007fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.1400fe880
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140150a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140100af0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14015fcec
cdqe
add rsp, 0x28
ret
Function at 0x140109c20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140150d80
sub rsp, rax
mov rax, qword [rcx + 8]
lea r14d, [r9 + 1]
mov rbx, rdx
mov r9, qword [rax + 0xc8]
mov rsi, rcx
test byte [r9 + 0x70], 1
je 0x140109c86
mov ecx, dword [rdx + 4]
lea eax, [r14 + r8]
cmp eax, ecx
jbe 0x140109c73
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, r8d
add qword [rdx + 0x10], rax
add qword [rdx + 0x18], rax
sub ecx, r8d
mov dword [rdx + 4], ecx
jmp 0x140109c8c
cmp r14d, dword [rdx + 4]
ja 0x140109c60
mov ecx, dword [rdx + 4]
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rbp
dec ecx
or ebp, 0xffffffff
test dword [rsi + 0x19c], 0x200
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
je 0x140109cff
cmp qword [rsi + 0xe0], 0
jne 0x140109cff
mov rcx, qword [rsi + 0x80]
lea rdx, [0x14022b5d8]
mov r8d, 8
add rcx, 8
call fcn.14004d630
test eax, eax
jne 0x140109ced
test dil, 1
jne 0x140109ced
mov rax, qword [rsi + 0x80]
or dword [rax], 8
mov rax, qword [rsi + 0x80]
test byte [rax], 8
je 0x140109cff
test edi, edi
je 0x140109cff
add edi, ebp
mov rcx, qword [rsi + 0xd0]
mov rcx, qword [rcx]
call fcn.14005cdb0
bt eax, 0x15
jae 0x140109d23
sub ebp, edi
mov eax, 1
add dword [rbx + 4], ebp
jmp 0x140109ddd
mov r11d, dword [rbx + 4]
lea ecx, [rdi + r14]
mov esi, 0xff
mov r8d, r11d
mov eax, r11d
sub r8d, ecx
xor eax, ecx
xor r8d, ecx
or r8d, eax
lea eax, [r11 - 1]
xor r8d, r11d
shr r8d, 0x1f
dec r8d
cmp eax, esi
cmovb esi, eax
xor r9d, r9d
test esi, esi
je 0x140109dad
mov rbp, qword [rbx + 0x10]
mov r10d, edi
shr r10d, 0x1f
nop word [rax + rax]
movzx eax, r10b
mov ecx, r9d
mov edx, edi
sub edx, r9d
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
or dl, al
mov eax, r11d
xor dl, r10b
sub eax, r9d
inc r9d
dec dl
dec eax
movzx ecx, byte [rax + rbp]
movzx edx, dl
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x140109d70
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [rdi + 1]
neg ecx
and eax, ecx
sub r11d, eax
shl eax, 8
or dword [rbx], eax
mov eax, ecx
not ecx
and eax, 1
mov dword [rbx + 4], r11d
or eax, ecx
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140116180
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
lea r9, [rsp + 0x68]
mov ebx, r12d
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x14011631e
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140116307
mov qword [rsp + 0x50], rsi
nop dword [rax]
cmp dword [rdi + 4], 2
jne 0x140116278
cmp qword [rdi + 0x20], r12
je 0x140116278
cmp qword [rdi + 0x10], 0x10
jb 0x140116278
mov ecx, Ordinal_50
call qword [fcn.1401527d8]
mov rsi, rax
test rax, rax
je 0x1401162b1
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [fcn.1401527d8]
mov qword [rsi + 0x20], rax
test rax, rax
je 0x1401162a1
mov rcx, qword [rdi + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140116265
call qword [case.0x1400f4696.0]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x140116287
test rbx, rbx
cmove rbx, rsi
test r14, r14
je 0x140116275
mov qword [r14 + 0x28], rsi
mov r14, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401161d0
jmp 0x1401162b6
mov rcx, qword [rsi + 0x20]
mov ebp, 8
call qword [fcn.140150b20]
mov rcx, rsi
call qword [fcn.140150b20]
jmp 0x1401162b6
mov rcx, rsi
mov ebp, 8
call qword [fcn.140150b20]
jmp 0x1401162b6
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x1401162cb
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x140116302
test rbx, rbx
je 0x1401162fd
mov rcx, qword [rbx + 0x20]
call qword [fcn.140150b20]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140150b20]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140150b20]
mov rbx, rdi
test rdi, rdi
jne 0x1401162d4
mov rbx, r12
jmp 0x140116314
test rbx, rbx
jne 0x140116314
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x58]
mov qword [r15], rbx
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140116fa0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.140156778
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret