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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x120
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
cmp qword [rdx + 0x10], 2
jb 0x14004e041
mov rax, rdx
mov rcx, qword [rdx + 0x18]
cmp rcx, 0x10
jb 0x14004ddeb
mov rax, qword [rdx]
cmp byte [rax], 0x2f
jne 0x14004e041
cmp rcx, 0x10
jb 0x14004ddfd
mov rdx, qword [rdx]
inc rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], r14
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14004de22
lea rcx, [rsp + 0xc0]
call fcn.140001e10
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0x40], 0x20
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe0]
call fcn.14004dc00
nop
lea rax, [rsp + 0xc0]
mov rdx, qword [rsp + 0xe0]
cmp rax, rdx
je 0x14004de9e
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14004de91
mov rdx, qword [rdx]
lea rcx, [rsp + 0xc0]
call fcn.1400037c0
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0x10
cmovae rdx, qword [rsp + 0xc0]
movabs r9, 0xcbf29ce484222325
mov rcx, r14
mov r8, qword [rsp + 0xd0]
test r8, r8
je 0x14004def3
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x14004dee0
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x70]
call fcn.140053cd0
mov rcx, qword [rax + 8]
mov rdi, qword [0x1400ce0e8]
test rcx, rcx
cmovne rdi, rcx
cmp rdi, qword [0x1400ce0e8]
je 0x14004e026
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 3
jb 0x14004e067
cmp qword [rbx + 0x18], 0x10
jb 0x14004df49
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 3
lea r9, [0x1400a6fa4]
lea rcx, [rsp + 0xa0]
call fcn.1400048e0
nop
mov r8d, 2
lea rdx, [0x1400a6f4c]
lea rcx, [rsp + 0xa0]
call fcn.140003920
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14007ff30
nop
lea rcx, [rsp + 0x50]
call fcn.1400040d0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400040d0
nop
mov qword [rsp + 0xa0], rsi
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
jne 0x14004dfec
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov rax, qword [rcx]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xa0]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rcx, [rsp + 0xe0]
call fcn.14001e950
nop
lea rcx, [rsp + 0xc0]
call fcn.1400040d0
mov al, 1
jmp 0x14004e043
lea rcx, [rsp + 0xe0]
call fcn.14001e950
nop
lea rcx, [rsp + 0xc0]
call fcn.1400040d0
xor al, al
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r14
pop rdi
pop rsi
ret
call fcn.1400019c0
nop
int3
Function at 0x140060f30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140092350
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140062f90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140060fac
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140067b20
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140067b55
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140053550
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140067c85
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx r11d, byte [rax + 0x10]
movzx edx, byte [rax + 0x11]
xor r11, rbp
mov rcx, qword [rcx]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140067bf7
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140067c74
mov rdx, qword [r11 + 8]
movzx r9d, word [rax + 0x10]
cmp r9w, word [rdx + 0x10]
jne 0x140067c36
mov r10, qword [rdx]
cmp r10, rax
je 0x140067c30
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140067c74
cmp r8, rdx
je 0x140067c50
nop dword [rax + rax]
mov rdx, qword [rdx + 8]
cmp r9w, word [rdx + 0x10]
je 0x140067c96
cmp r8, rdx
jne 0x140067c40
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140067bc0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140067c74
Function at 0x140069be0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140069c2c
imul rbx, rax, 0x64
jmp 0x140069c4d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
xor r14d, r14d
mov qword [rsp + 0x280], rsi
movabs r15, 0x431bde82d7b634db
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], 0x2710
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140069cb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140069c80
xor al, al
jmp 0x140069d2f
jne 0x140069d2d
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rsi, 0x989680
jne 0x140069cd1
imul rcx, rax, 0x64
jmp 0x140069cf2
cqo
idiv rsi
mov r8, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rsi
mov rcx, rax
imul rax, r8, 0x3b9aca00
add rcx, rax
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rbp, 0x3e8
cmp rdx, rax
jg 0x140069cad
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001f630
jmp 0x140069c62
mov al, 1
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140092210
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400701a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x1400702ed
lea rax, [rsp + 0x60]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x68], 0
mov rcx, qword [rbx + 0x3b8]
test rcx, rcx
je 0x140070204
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x18], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.14001e9e0
movzx eax, byte [rbx + 0x37c]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1400abac0]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], al
mov r9d, dword [rbx + 0x378]
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400760a0
mov rsi, rax
lea rcx, [rsp + 0x40]
call fcn.1400040d0
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14007029a
mov r8, qword [rcx]
lea rax, [rsp + 0x60]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov qword [rbp - 0x68], 0
xchg qword [rbx + 0x48], rsi
mov rax, qword [rbx + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1400702ed
test edi, edi
jne 0x1400702e9
mov dword [rbp - 0x58], pe_nt_image_headers64
mov rcx, qword [rbx + 0x48]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400702ed
movzx eax, word [rbp - 0x50]
cmp ax, 2
je 0x1400702da
cmp ax, 0x17
jne 0x1400702ed
movzx ecx, word [rbp - 0x4e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1400702f2
mov eax, edi
jmp 0x1400702f2
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078870
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.140092350
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007a330]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400788e9
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140078900
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov rbp, rcx
sar rdi, 2
test rdi, rdi
je 0x140078adf
mov qword [rsp + 0x60], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x30], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140078950
mov eax, ntohs
jmp 0x14007897e
cmp rdi, 0x44
jb 0x14007895d
mov eax, 7
jmp 0x14007897e
cmp rdi, 0x27
jb 0x14007896a
mov eax, 5
jmp 0x14007897e
cmp rdi, 7
jb 0x140078977
mov eax, 3
jmp 0x14007897e
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x140078997
mov r15, rdi
mov r8, rdi
mov edx, 0x8b8b8b8b
shl r8, 2
mov rcx, rsi
call fcn.140093f7a
xor ecx, ecx
test r15, r15
je 0x140078a4f
mov qword [rsp + 0x38], r12
nop dword [rax + rax]
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea r12, [rsi + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [r12]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x140078a0d
mov rax, rbx
jmp 0x140078a22
cmp rcx, rbx
ja 0x140078a1f
mov rax, qword [rbp]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140078a22
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [r12], r8d
cmp rcx, r15
jb 0x1400789c0
mov r12, qword [rsp + 0x38]
add r15, rdi
cmp rcx, r15
jae 0x140078acb
inc r14
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [rsi + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x140078a61
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008dd40
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14008dd6f
xor eax, eax
jmp 0x14008df0a
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x14008decc
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x14008decc
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x14008decc
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x14008decc
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14008decc
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14008df20
cmp rsi, qword [rbx + 0x48]
jae 0x14008ddf5
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x14008de2f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14008de3d
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14008de56
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x14008de64
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov dword [rbp + 0x24], 1
test r14, r14
je 0x14008deb0
mov rcx, rbx
call fcn.14008edd0
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1b8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x14008df05
xor eax, eax
mov rdx, rbx
cmp dword [rbx + 0x38], 1
mov rcx, rbp
sete al
lea r8d, [rax + 3]
call fcn.14008c770
xor eax, eax
jmp 0x14008df05
xor eax, eax
mov rcx, rbx
mov dword [rbx + 0x1b8], eax
call fcn.14008ee00
test byte [rbx + 0x130], 1
mov dword [rbx + 0x38], 9
jne 0x14008df00
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140092140
or word [rbx + 0x130], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140091a60
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140091a99
cmp word [rax + 0x10], 2
jne 0x140091a99
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
mov eax, dword [rdx]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x28], rdi
mov ebp, esi
mov qword [rsp + 0x20], r15
mov edi, esi
mov dword [rsp + 0x60], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x68], rdx
cmp byte [rbx], 0x30
je 0x140091b03
mov r8d, 0xa
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x140091b2b
mov rdx, qword [rsp + 0x68]
cmp rdx, rbx
je 0x140091b2b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x140091b2b
mov byte [rsp + rdi + 0x60], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x140091b2b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x140091ac0
mov eax, dword [rsp + 0x60]
mov dword [r14], eax
jmp 0x140091b30
mov esi, 0xffffffff
mov r15, qword [rsp + 0x20]
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
add rsp, 0x38
pop r14
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x140091d08
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092210
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092210
add rsp, 0x40
pop rbx
ret
Function at 0x140091d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x58]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
mov dword [rsp + 0x54], edx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x140091dd2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x140091dce
cmp eax, 0x13
jne 0x140091ddc
xor eax, eax
jmp 0x140091e01
test dword [rsp + 0x50], 0x8000
je 0x140091de3
mov eax, 0xffffffff
jmp 0x140091e01
test rbx, rbx
je 0x140091dfd
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140092210
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov dword [rsp + 0x50], r14d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140091e77
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140091ed3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x140091ed7
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140092210
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140091ef0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
dec edx
mov r9d, 0xffffffff
cmp edx, 9
ja case.0x140091f1f.8
movsxd rax, edx
lea r10, sym.MZ_Vhk_Hj_T_zrPKs332_ryxfTKUNjQY__3ySR.kn_g__xp
mov edx, dword [r10 + rax*4 + 0x91fcc]
add rdx, r10
jmp rdx
mov dword [rsp + 0x48], r8d
mov edx, 0x8004667e
lea r8, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
add rsp, 0x38
ret
mov edx, 0xffff
mov r8d, 0x20
jmp 0x140091fa4
mov edx, 0xffff
jmp 0x140091f9e
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x140091fa4
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x140091fa4
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x140091fa4
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x140091fa4
mov edx, 6
lea r8d, [rdx - 5]
jmp 0x140091fa4
xor edx, edx
mov r8d, 4
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
add rsp, 0x38
ret

Function at 0x140092000
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov dword [rsp + 0x250], 0
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 0
mul r8d
mov rdi, rcx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, dword [rbx]
test al, 1
je 0x14009206e
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x140092085
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x250], 1
lea rax, [rsp + 0x30]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1400920b2
mov eax, 0xffffffff
jmp 0x1400920e9
mov dword [rbx], 0
test eax, eax
je 0x1400920e7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400921e3
test eax, eax
je 0x1400920d0
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call fcn.1400921e3
test eax, eax
je 0x1400920e7
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x140092758
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140092f30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140092f7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140092f7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140092f7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140092f7a
cmp dword [rcx + 0x84], 0xe
jbe 0x140092f7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140092f7c
xor al, al
add rsp, 0x28
ret