joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c5a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, dword [0x1401c4004]
mov rax, qword gs:[0x58]
mov esi, 4
mov rbx, qword [rax + rcx*8]
mov eax, dword [rbx + rsi]
cmp dword [0x14018aba8], eax
jg 0x14002c75e
mov eax, dword [rbx + rsi]
cmp dword [0x14018abb8], eax
jg 0x14002c794
call sub.MSVCP140.dll__Xtime_get_ticks
mov rcx, rax
sub rcx, qword [0x14018abb0]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x14014ebe8]
comisd xmm0, xmmword [0x14014ebb0]
jb 0x14002c6ee
mov qword [0x14018abb0], rax
mov rcx, qword [0x14018c670]
movss xmm0, dword [rcx + 0x5fd8]
mulss xmm0, dword [0x14014eba4]
cvttss2si eax, xmm0
mov dword [rsp + 0x44], eax
movss xmm0, dword [rcx + 0x5fdc]
mulss xmm0, dword [0x14014eba4]
cvttss2si eax, xmm0
mov dword [rsp + 0x40], eax
cmp byte [0x14018abbc], 0
jne 0x14002c6ee
mov byte [0x14018abbc], 1
lea rax, [rsp + 0x44]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14011e498
test rax, rax
je 0x14002c699
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140016030]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002c74b
cmp dword [rsp + 0x38], 0
je 0x14002c740
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14002c740
call sub.MSVCP140.dll__Xtime_get_ticks
mov rcx, rax
sub rcx, qword [0x14018aba0]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm0, qword [0x14014ebe8]
comisd xmm0, xmmword [0x14014ebc8]
jb 0x14002c725
mov qword [0x14018aba0], rax
mov byte [0x14018abbc], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011e5f0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rsi
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [0x14018aba8]
call fcn.14011ea74
cmp dword [0x14018aba8], 0xffffffff
jne 0x14002c5e0
call sub.MSVCP140.dll__Xtime_get_ticks
mov qword [0x14018aba0], rax
lea rcx, [0x14018aba8]
call fcn.14011ea08
jmp 0x14002c5e0
lea rcx, [0x14018abb8]
call fcn.14011ea74
cmp dword [0x14018abb8], 0xffffffff
jne 0x14002c5ef
call sub.MSVCP140.dll__Xtime_get_ticks
mov qword [0x14018abb0], rax
lea rcx, [0x14018abb8]
call fcn.14011ea08
jmp 0x14002c5ef
Function at 0x14004e7e0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x14004e7ea
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.14004e7e0

Function at 0x14004f8c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
imul r8d, dword [rcx + 0x30], 0x64
mov r10, rcx
mov rbx, qword [0x14018c670]
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
xor r9d, r9d
add r8d, dword [rcx + 0x2c]
mov eax, r8d
mov r11d, r8d
shr eax, 8
movzx edx, al
movzx eax, r8b
xor rax, rsi
imul rax, rdi
xor rdx, rax
mov eax, r8d
imul rdx, rdi
shr eax, 0x10
movzx ecx, al
xor rdx, rcx
mov eax, r8d
mov rcx, qword [rbx + 0x6090]
imul rdx, rdi
shr rax, 0x18
xor rdx, rax
imul rdx, rdi
and rcx, rdx
mov rdx, qword [rbx + 0x6068]
shl rcx, 4
add rcx, qword [rbx + 0x6078]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x14004f974
mov rcx, qword [rcx]
cmp r11d, dword [rax + 0x10]
je 0x14004f977
cmp rax, rcx
je 0x14004f974
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x14004f963
jmp 0x14004f977
mov rax, r9
mov ecx, dword [r10 + 0x14]
test rax, rax
cmove rax, rdx
cmp ecx, 0x12
jne 0x14004f9bc
cmp word [rax + 0x16], r9w
je 0x14004f9a5
mov word [rax + 0x16], r9w
xor al, al
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov word [rax + 0x18], r9w
xor al, al
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r11, rcx
shr ecx, 8
movzx r8d, cl
movzx ecx, r11b
xor rcx, rsi
imul rcx, rdi
xor r8, rcx
mov ecx, r11d
imul r8, rdi
shr ecx, 0x10
movzx edx, cl
mov rcx, r11
xor r8, rdx
shr rcx, 0x18
mov rdx, qword [rbx + 0x61d0]
imul r8, rdi
xor r8, rcx
imul r8, rdi
and rdx, r8
mov r8, qword [rbx + 0x61a8]
shl rdx, 4
add rdx, qword [rbx + 0x61b8]
mov rcx, qword [rdx + 8]
cmp rcx, r8
je 0x14004fa36
mov rdx, qword [rdx]
cmp r11d, dword [rcx + 0x10]
je 0x14004fa33
cmp rcx, rdx
je 0x14004fa36
mov rcx, qword [rcx + 8]
cmp r11d, dword [rcx + 0x10]
jne 0x14004fa24
mov r9, rcx
movzx ecx, word [r10 + 0x14]
test r9, r9
cmove r9, r8
cmp byte [r9 + 0x1e], 0x12
jne 0x14004fa4f
mov word [rax + 0x18], cx
jmp 0x14004fa53
mov word [rax + 0x16], cx
mov rcx, qword [0x14018c670]
mov eax, dword [rcx + 0x5fd0]
cmp dword [r10 + 4], eax
jne 0x14004fa9f
mov r9, qword [rcx + 0x28]
mov rax, qword [rcx + 0x20]
cmp rax, r9
je 0x14004fa9f
movzx ecx, word [rax]
mov r8d, dword [r10 + 0x14]
cmp ecx, r8d
jne 0x14004fa96
movzx edx, byte [rax + 2]
cmp dl, 1
jbe 0x14004fa8f
dec dl
mov byte [rax + 2], dl
jmp 0x14004fa96
sub cx, r8w
mov word [rax], cx
add rax, 4
cmp rax, r9
jne 0x14004fa73
mov rbx, qword [rsp + 8]
xor al, al
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14004fca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14004fccd
xor eax, eax
jmp 0x14004fe36
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14004fd0d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14004fd0d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14004fe2e
cmp qword [rdi + 0x80], 0
je 0x14004fe29
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14004fd47
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14004fd72
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14004fe2e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x14004fde1
sub eax, 1
je 0x14004fde1
cmp eax, 2
jne 0x14004fe29
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14004fe2e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14004fe0f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14004fe29
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14004fe2e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14011e5f0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140055870
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140185fc0]
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 0x14005594a
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140055950
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 0x140055920
test ebx, ebx
je 0x14005597a
jmp 0x140055957
cmp ebx, 0xffffffff
je 0x14005599d
jmp 0x14005594a
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011e5f0
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.14001c980
lea rdx, [0x14017dbd0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.14005cf80
mov r8, rax
lea r9, str.Failed_to_select_socket
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001df70
lea rdx, [0x14017da10]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14006d0d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x14006d0f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14006d108
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x14006d152
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x14006d1c1
mov rcx, r14
call fcn.140025800
cmp rbx, 0xfff
jbe 0x14006d1a1
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14006d1da
cmp rbx, rax
ja 0x14006d170
test rdi, rdi
je 0x14006d1c1
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x14006d1c4
Function at 0x14006d1e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14006d208
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14006d27c
test rax, rax
jle 0x14006d25c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14006d27c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006d27c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x14006f400
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
ja 0x14006f5ad
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.14006f1a0
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 0x14006f576
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14006f4f0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14006f565
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14006f52d
mov r10, qword [rdx]
cmp r10, rax
je 0x14006f527
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 0x14006f565
cmp r9, rdx
je 0x14006f541
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14006f587
cmp r9, rdx
jne 0x14006f532
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 0x14006f4a0
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 0x14006f565
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140075930
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov rbp, rcx
sar rdi, 2
test rdi, rdi
je 0x140075b0f
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140075980
mov eax, ntohs
jmp 0x1400759ae
cmp rdi, 0x44
jb 0x14007598d
mov eax, 7
jmp 0x1400759ae
cmp rdi, 0x27
jb 0x14007599a
mov eax, 5
jmp 0x1400759ae
cmp rdi, 7
jb 0x1400759a7
mov eax, 3
jmp 0x1400759ae
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 0x1400759c7
mov r15, rdi
mov r8, rdi
mov edx, 0x8b8b8b8b
shl r8, 2
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x140075a7f
mov qword [rsp + 0x58], 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 r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [r12]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x140075a3d
mov rax, rbx
jmp 0x140075a52
cmp rcx, rbx
ja 0x140075a4f
mov rax, qword [rbp]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140075a52
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 0x1400759f0
mov r12, qword [rsp + 0x58]
add r15, rdi
cmp rcx, r15
jae 0x140075afb
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 0x140075a91
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400778b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140077a3c
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140077a2c
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_new
mov rcx, rsi
mov rdi, rax
call sub.MSVCP140.dll__Mtx_unlock
test rdi, rdi
je 0x1400779be
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call sub.libcrypto_3_x64.dll_BIO_new_socket
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call sub.libcrypto_3_x64.dll_BIO_ctrl
mov r8, r14
mov rdx, r14
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_set_bio
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0xf
jbe 0x140077973
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call sub.libssl_3_x64.dll_SSL_ctrl
mov rdx, rdi
mov rcx, r15
call fcn.140080300
cmp al, 1
jne 0x1400779df
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call sub.libcrypto_3_x64.dll_BIO_ctrl
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011e5f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_shutdown
mov rcx, rsi
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140077a3c
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140077a2c
mov rcx, rdi
call sub.libssl_3_x64.dll_SSL_free
mov rcx, rsi
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x1400779c1
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14007b0d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140185fc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r15d, r15d
lea rax, vtable.httplib::ThreadPool.0
mov qword [rcx], rax
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov qword [rcx + 0x28], r15
lea ecx, [r15 + 0x50]
call fcn.14011e498
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi + 0x20], rax
mov byte [rsi + 0x30], r15b
lea rcx, [rsi + 0x38]
call sub.MSVCP140.dll__Cnd_init_in_situ
nop
lea rcx, [rsi + 0x80]
mov dword [rcx], r15d
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], r15
lea edx, [r15 + 2]
call sub.MSVCP140.dll__Mtx_init_in_situ
nop
test rbp, rbp
je 0x14007b1f3
nop dword [rax]
mov qword [rsp + 0x38], rsi
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi + 0x18]
je 0x14007b1dc
mov ecx, 8
call fcn.14011e498
test rax, rax
je 0x14007b1a3
mov qword [rax], rsi
jmp 0x14007b1a6
mov rax, r15
mov qword [rsp + 0x38], rax
lea r14, [rdi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140073840]
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 0x14007b21d
add qword [rsi + 0x10], 0x10
jmp 0x14007b1ed
lea r8, [rsp + 0x38]
mov rdx, rdi
lea rcx, [rsi + 8]
call fcn.1400729d0
sub rbp, 1
jne 0x14007b180
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011e5f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov dword [r14], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140088460
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14008852c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14008852c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140088545
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14008851c
cmp byte [rax], 0x5c
jne 0x140088516
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140088516
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140088502
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140088513
test r8b, 0x10
jne 0x140088516
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140088516
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14008c7c0
test edi, edi
jne 0x140088480
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14008ab40
int3