joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001881c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
mov r10, qword [0x18002f8f0]
xor edx, edx
movzx edi, word [rsp + 0x58]
mov r14, rcx
mov eax, 0x134e
mov r11d, r8d
div qword [0x18002f928]
movsxd rbp, dword [r10 + 0x2ad8]
movzx eax, di
mov rsi, rdx
mov r12d, 1
sub ax, r12w
mov rbx, r9
movzx r9d, ax
lea eax, [r9 + 8]
mov r10b, byte [r10 + rax*4]
mov eax, 0x1b2b
cdq
mov word [0x18002f8dc], r11w
idiv r8d
mov r8d, dword [0x18002f8a0]
and r10b, 0x12
mov eax, edx
movzx ecx, r8w
cdq
idiv ecx
mov ecx, dword [0x18002f8c4]
mov r15d, eax
add ecx, 6
lea eax, [r11 - 1]
mov r11, qword [rsp + 0x48]
cdq
idiv r8d
movsxd rax, dword [0x18002f914]
mov dword [0x18002f8a0], edx
movsxd rdx, ecx
mov rcx, qword [0x18002f8a8]
movsxd r8, dword [rcx + rdx*4]
movzx ecx, byte [r11 + 0x1fe]
add r8, rbx
mov rbx, qword [rsp + 0x50]
or r8, rcx
mov qword [r14 + rax*8], r8
lea ecx, [r9*2 + 0x18]
mov eax, 0x2593
sub eax, dword [0x18002f944]
cdqe
add qword [rbx + rcx*8], rax
mov eax, dword [0x18002f948]
sub dword [0x18002f944], r12d
sub eax, r12d
mov rcx, qword [0x18002f8f8]
mov dword [0x18002f948], eax
add rcx, r12
mov qword [0x18002f8f8], rcx
movsxd rdx, eax
mov rax, qword [0x18002f8a8]
movsxd rcx, dword [rax + rcx*4]
or rcx, 0x1b51
and qword [rsi + rdx*8], rcx
movsxd rcx, dword [0x18002f914]
mov rax, qword [0x18002f8f0]
movsxd rdx, dword [rax + rcx*4]
cmp rdx, qword [0x65ee]
jae 0x180018986
mov ecx, 0x65ee
mov eax, dword [0x18002f910]
add edx, r12d
add eax, r12d
mov dword [0x18002f910], eax
add byte [r11 + 0x104], al
movsxd rax, edx
cmp rax, qword [rcx]
jb 0x180018965
movzx r10d, r10b
movzx r9d, di
mov r8d, r10d
cmp r10d, r9d
je 0x1800189db
movzx eax, word [0x18002f93c]
add di, r12w
add eax, r10d
cdq
idiv r8d
movsxd rdx, eax
movzx eax, word [0x18002f8dc]
lea rcx, [rax + rax*2]
movsxd rax, r8d
mov qword [rbp + rcx*8 + 0xb8], rdx
add r8d, r12d
lea ecx, [r9 + 0x1c]
xor edx, edx
div qword [rsi + rcx*8]
movzx r9d, di
mov qword [rsi + rcx*8], rax
cmp r8d, r9d
jne 0x180018996
mov rcx, qword [0x18002f8d0]
sub di, r12w
mov rdx, qword [0x18002f8b8]
movzx eax, cx
sub ax, word [0x18002f8dc]
sub rcx, r12
mov rbp, qword [rsp + 0x28]
sub rdx, r12
mov rsi, qword [rsp + 0x30]
mov qword [0x18002f8d0], rcx
mov rcx, qword [0x18002f8f8]
mov word [0x18002f8dc], ax
mov qword [0x18002f8b8], rdx
mov rax, qword [rbx + rcx*8]
imul rax, rdx
xor edx, edx
mov qword [rbx + rcx*8], rax
movzx ecx, byte [r11 + 0xb5f]
movzx eax, byte [r11 + 6]
mov rbx, qword [rsp + 0x20]
div ecx
mov rax, qword [0x18002f8f8]
shl rax, 4
movsxd rcx, edx
imul rcx, qword [0x18002f8e8]
movzx edx, di
mov rdi, qword [rsp + 0x38]
add edx, 8
mov qword [rax + 0x9be], rcx
movzx ecx, word [0x18002f93c]
add cx, r12w
movzx eax, r15w
mov word [0x18002f93c], cx
movzx ecx, cx
or rcx, rax
mov eax, 0x1980
xor qword [r14 + rdx*8], rcx
pop r15
pop r14
pop r12
ret
Function at 0x140008b00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor esi, esi
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rbx, [0x14020d328]
mov eax, dword [rcx + rax]
cmp dword [0x14020d378], eax
jle 0x140008b90
lea rcx, [0x14020d378]
call fcn.140115fa0
cmp dword [0x14020d378], 0xffffffff
jne 0x140008b90
xorps xmm0, xmm0
movups xmmword [0x14020d328], xmm0
mov qword [0x14020d338], rsi
mov qword [0x14020d340], rsi
lea r8d, [rsi + 0x1a]
lea rdx, str.Growtopiacacheitems.dat
mov rcx, rbx
call fcn.140006cb0
lea rcx, [0x14011ce60]
call fcn.140115ea4
nop
lea rcx, [0x14020d378]
call fcn.140115f34
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140008c50
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140008bc0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006cb0
nop
cmp qword [0x14020d340], 0x10
cmovae rbx, qword [0x14020d328]
mov r8, qword [0x14020d338]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140009f90
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140008800
nop
lea rcx, [rsp + 0x20]
call fcn.140007ab0
nop
lea rcx, [rsp + 0x40]
call fcn.140007ab0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400090a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400090c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400090ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400090f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009149
test ecx, ecx
jle 0x140009129
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140009149
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009149
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140009170
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140009192
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400091a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400091c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400091c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009202
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000929e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000923d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000927e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000929e
cmp rbx, rax
ja 0x140009250
test rbx, rbx
je 0x14000929e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400096a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400096cd
xor eax, eax
jmp 0x140009839
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009707
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009707
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140009839
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000982c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000974a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140009775
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009831
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400097e4
sub eax, 1
je 0x1400097e4
cmp eax, 2
jne 0x14000982c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009831
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009812
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000982c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009831
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140115c10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140009bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009c93
cmp byte [rcx + 0x71], 0
je 0x140009c93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140009c8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009c54
sub eax, 1
je 0x140009c58
cmp eax, 2
jne 0x140009c8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009c86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140009c8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140009c3c
xor al, al
jmp 0x140009c3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x60
pop rbx
ret

Function at 0x14000d5d0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000d6aa
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000d6b0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000d680
test ebx, ebx
je 0x14000d6da
jmp 0x14000d6b7
cmp ebx, 0xffffffff
je 0x14000d6fd
jmp 0x14000d6aa
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140115c10
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.14000d470
lea rdx, [0x1401cfce8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.14000b8a0
mov r8, rax
lea r9, str.Failed_to_select_socket
lea rcx, [rsp + 0x30]
call fcn.14000b590
lea rdx, [0x1401cfbd0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000f4c0
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x14020cac0]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14000f4dc
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14000f4ea
bts eax, 6
shr ecx, 1
test cl, 1
je 0x14000f4f5
bts eax, 5
shr ecx, 1
test cl, 1
je 0x14000f500
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14000f50b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x14000f516
bts eax, 2
shr ecx, 1
test cl, 1
je 0x14000f521
bts eax, 1
test cl, 2
je 0x14000f52a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x14000f5c1
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14000f5cd
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x14000f5b5
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14000f4d0
mov dword [0x14020c9d8], 1
ret
Function at 0x140010700
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 + 0x40], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14001072f
xor eax, eax
jmp 0x1400108e7
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 0x1400108c7
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xd0]
jne 0x1400108c7
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xc8]
jne 0x1400108c7
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xcc]
jne 0x1400108c7
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x1400108c7
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14000f8c0
cmp rsi, qword [rbx + 0x50]
jae 0x1400107b5
mov qword [rbx + 0x50], 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 0x1400107ef
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xfc]
jae 0x1400107fd
mov dword [rbx + 0xfc], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x140010816
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0x100]
jae 0x140010824
mov dword [rbx + 0x100], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x58], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x5c], eax
mov dword [rbp + 0x80], 1
mov ecx, dword [rbx + 0x40]
test r14, r14
je 0x1400108ac
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x140010872
cmp dword [rbx + 0x58], 0
je 0x140010867
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2b60]
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2b58]
xor eax, eax
mov dword [rbx + 0x40], 5
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0xa0], rax
mov dword [rbx + 0xac], eax
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1f8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x1400108e2
xor eax, eax
mov rdx, rbx
cmp ecx, 1
mov rcx, rbp
sete al
lea r8d, [rax + 3]
call fcn.14000f680
xor eax, eax
jmp 0x1400108e2
xor eax, eax
mov rdx, rbx
mov rcx, rbp
mov dword [rbx + 0x1f8], eax
lea r8d, [rax + 9]
call fcn.14000f680
lea eax, [r8 - 0xa]
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 0x1400144e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
cmp dword [0x14020c680], ebx
jne 0x140014596
mov qword [rsp + 0x70], rdi
lea rcx, [rsp + 0x48]
mov edi, 1
mov dword [0x14020c680], edi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x14020c684], eax
test eax, eax
je 0x140014549
lea rcx, [0x14020d380]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
divsd xmm0, qword [0x1401b85f0]
jmp 0x140014589
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x107b2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x26], rdi
mov word [rsp + 0x2e], bx
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
movsd xmm0, qword [0x1401b8570]
shl rcx, 0x20
or rcx, rax
mov qword [0x14020d380], rcx
mov rdi, qword [rsp + 0x70]
movsd qword [0x14020d388], xmm0
cmp dword [0x14020c684], ebx
je 0x1400145b0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
jmp 0x1400145cf
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
mov qword [rsp + 0x40], rax
sub rax, qword [0x14020d380]
xorps xmm0, xmm0
movabs r9, 0x431bde82d7b634db
cvtsi2sd xmm0, rax
mov rax, r9
divsd xmm0, qword [0x14020d388]
cvttsd2si rcx, xmm0
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
imul eax, ecx, 0x3e8
movsxd r8, eax
movsxd rax, edx
imul rcx, rax, 0x3b9aca00
add r8, rcx
lock xadd qword [0x14020c688], rbx
test rbx, rbx
jne 0x14001464e
lea rcx, [r8 - 0xf4240]
xor eax, eax
lock cmpxchg qword [0x14020c688], rcx
mov rbx, rax
cmove rbx, rcx
sub r8, rbx
mov rax, r9
mul r8
shr rdx, 0x12
mov eax, edx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x60
pop rbx
ret
Function at 0x140014670
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea r9, [rsp + 0x20]
mov rax, rdx
lea r8, [rsp + 0x28]
mov rbx, rcx
xor edi, edi
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400146cd
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140014743
jmp 0x14001473d
mov r9, qword [rsp + 0x20]
mov rdx, r9
test r9, r9
je 0x140014743
nop word [rax + rax]
mov r8, qword [rdx + 0x20]
test r8, r8
je 0x140014731
mov ecx, dword [rdx + 4]
cmp ecx, 2
je 0x1400146ff
lea rax, [rdx + 0x10]
test ecx, ecx
jne 0x140014722
cmp qword [rax], 0x10
jne 0x14001472b
mov eax, dword [r8 + 4]
test eax, eax
jne 0x140014786
movups xmm0, xmmword [0x14013dbc8]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140014748
cmp ecx, 0x17
je 0x140014763
test ecx, ecx
jne 0x140014731
cmp qword [rax], 0x1c
je 0x140014763
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1400146e0
mov rcx, r9
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115c10
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
movups xmm0, xmmword [r8 + 8]
mov rcx, r9
movups xmmword [rbx], xmm0
mov rdx, qword [rdx + 0x20]
movzx r8d, word [rdx + 0x18]
mov word [rbx + 0x12], r8w
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140014748
cmp eax, 0xffffffff
jne 0x1400147a6
movups xmm0, xmmword [0x14013dbe8]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140014748
movups xmm0, xmmword [0x14013dbd8]
mov ecx, eax
shr ecx, 8
movups xmmword [rbx], xmm0
mov byte [rbx + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rbx + 0xc], al
mov byte [rbx + 0xe], cl
mov rcx, r9
shr eax, 0x18
mov word [rbx + 0xa], 0xffff
mov byte [rbx + 0xf], al
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140014748