joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001547
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
xor eax, eax
mov r10, qword [r8 + 0x30]
test r10, r10
je 0x140001608
mov rdx, r8
mov r8, qword [r8]
movsxd rbp, dword [r10 + 0x3c]
mov r9d, dword [rbp + r10 + 0x88]
test r9, r9
je 0x140001560
mov r11, qword [rdx + 0x60]
movzx esi, word [rdx + 0x5a]
xor edi, edi
xor edx, edx
cmp rsi, rdi
je 0x1400015b0
rol edx, 0xd
movsx ebx, byte [r11 + rdi]
movzx ebp, bl
add ebp, 0xffffffe0
cmp ebx, 0x61
cmovl ebp, ebx
add edx, ebp
inc rdi
jmp 0x140001590
mov r14d, dword [r9 + r10 + 0x18]
mov edi, dword [r9 + r10 + 0x20]
add rdi, r10
xor r11d, r11d
cmp r11d, r14d
je 0x140001560
mov ebx, dword [rdi]
add rbx, r10
xor ebp, ebp
rol ebp, 0xd
movsx esi, byte [rbx]
add ebp, esi
inc rbx
test esi, esi
jne 0x1400015cc
add ebp, edx
cmp ebp, ecx
je 0x1400015ea
add rdi, 4
inc r11d
jmp 0x1400015c0
mov eax, dword [r10 + r9 + 0x1c]
mov ecx, dword [r10 + r9 + 0x24]
add r11d, r11d
add r11, r10
movzx ecx, word [rcx + r11]
add rax, r10
mov eax, dword [rax + rcx*4]
add rax, r10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140002200
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
xor eax, eax
mov r10, qword [r8 + 0x30]
test r10, r10
je 0x1400022c1
mov rdx, r8
mov r8, qword [r8]
movsxd rbp, dword [r10 + 0x3c]
mov r9d, dword [rbp + r10 + 0x88]
test r9, r9
je 0x140002219
mov r11, qword [rdx + 0x60]
movzx esi, word [rdx + 0x5a]
xor edi, edi
xor edx, edx
cmp rsi, rdi
je 0x140002269
rol edx, 0xd
movsx ebx, byte [r11 + rdi]
movzx ebp, bl
add ebp, 0xffffffe0
cmp ebx, 0x61
cmovl ebp, ebx
add edx, ebp
inc rdi
jmp 0x140002249
mov r14d, dword [r9 + r10 + 0x18]
mov edi, dword [r9 + r10 + 0x20]
add rdi, r10
xor r11d, r11d
cmp r11d, r14d
je 0x140002219
mov ebx, dword [rdi]
add rbx, r10
xor ebp, ebp
rol ebp, 0xd
movsx esi, byte [rbx]
add ebp, esi
inc rbx
test esi, esi
jne 0x140002285
add ebp, edx
cmp ebp, ecx
je 0x1400022a3
add rdi, 4
inc r11d
jmp 0x140002279
mov eax, dword [r10 + r9 + 0x1c]
mov ecx, dword [r10 + r9 + 0x24]
add r11d, r11d
add r11, r10
movzx ecx, word [rcx + r11]
add rax, r10
mov eax, dword [rax + rcx*4]
add rax, r10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140002a20
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002fa0
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002fa0
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3
Function at 0x1400030c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140004010]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x14000312c
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x14000312c
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x14000312c
movzx edx, word [r8 + 6]
test edx, edx
je 0x14000312c
sub rcx, qword [0x140004010]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140003118
add rax, 0x28
dec edx
je 0x14000312c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140003110
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140003110
jmp 0x14000312e
xor eax, eax
ret

Function at 0x140003130
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140004010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140003166
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x140003166
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x140003166
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x1400031e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000320c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000320c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000320e
xor eax, eax
ret
Function at 0x14001ad40
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 0x14001ae0c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001ae0c
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 0x14001ae25
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 0x14001adfc
cmp byte [rax], 0x5c
jne 0x14001adf6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001adf6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001ade2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001adf3
test r8b, 0x10
jne 0x14001adf6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001adf6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001f7a0
test edi, edi
jne 0x14001ad60
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.14001d1c0
int3

Function at 0x14001cfa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001d073
cmp byte [rcx + 0x71], 0
je 0x14001d073
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001d06f
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 0x14001d034
sub eax, 1
je 0x14001d038
cmp eax, 2
jne 0x14001d06f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e4f50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001d066
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 0x14001d06f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001d01c
xor al, al
jmp 0x14001d01c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e4f50
add rsp, 0x60
pop rbx
ret
Function at 0x140020390
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x1400203f4
movzx r8d, byte [rsp + 0x20]
mov rdx, rax
call fcn.1400079d0
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0x10
jb 0x14002040c
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x140020412
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140020528
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x20]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x1400204bf
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14002049d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140020492
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400204b5
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140007860
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbp, 1
jne 0x140020460
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x140020430
cmp r13d, 0xfffffffa
jle 0x140020528
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rdx, r14d
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140020515
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14002050a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140020528
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.140007860
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140020578
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14002055b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140020553
mov rax, qword [rdi]
mov word [rcx + rax], 0x3d
jmp 0x14002056f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140007860
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140020536
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140021e50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021e84
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021e70
ret
Function at 0x140022d10
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140022d48
cmp ax, 0x17
jne 0x140022dbd
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140022dbd
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140022da2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400201c0
mov al, 1
jmp 0x140022dbf
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400e4f50
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140025bad
xor eax, eax
jmp 0x140025d16
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 0x140025bed
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 0x140025bed
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 0x140025d0e
cmp qword [rdi + 0x80], 0
je 0x140025d09
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 0x140025c27
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 0x140025c52
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 0x140025d0e
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 0x140025cc1
sub eax, 1
je 0x140025cc1
cmp eax, 2
jne 0x140025d09
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 0x140025d0e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140025cef
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 0x140025d09
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140025d0e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e4f50
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400294d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140029524
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140029500
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002a940
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140158638]
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 0x14002aa1a
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002aa20
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 0x14002a9f0
test ebx, ebx
je 0x14002aa4a
jmp 0x14002aa27
cmp ebx, 0xffffffff
je 0x14002aa6d
jmp 0x14002aa1a
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400e4f50
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.14000e1b0
lea rdx, [0x140151f78]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call fcn.14002df20
mov r8, rax
lea r9, str.Failed_to_select_socket
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14000e920
lea rdx, [0x140151e48]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002aab0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
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]
movsxd rbx, eax
test eax, eax
jns 0x14002ab20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002aaf0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400e4f50
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14002ab50
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14002abbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002ab90
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400e4f50
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14002e580
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x140158638]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x14002e5c4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002e5e0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14002e604
cmp qword [rsi + 0x18], 0x10
jb 0x14002e5ea
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002e609
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call sub.libcrypto_3_x64.dll_X509_get_ext_d2i
mov r12, rax
test rax, rax
je 0x14002e6f2
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call sub.libcrypto_3_x64.dll_OPENSSL_sk_num
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14002e6e5
nop
test r14b, r14b
jne 0x14002e6e0
mov edx, ebx
mov rcx, r12
call sub.libcrypto_3_x64.dll_OPENSSL_sk_value
mov rsi, rax
cmp dword [rax], edi
jne 0x14002e6ca
mov rcx, qword [rax + 8]
call sub.libcrypto_3_x64.dll_ASN1_STRING_get0_data
mov rcx, qword [rsi + 8]
mov rbp, rax
call sub.libcrypto_3_x64.dll_ASN1_STRING_length
movsxd r8, eax
cmp edi, 2
je 0x14002e6b9
cmp edi, 7
jne 0x14002e6ca
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002e6b4
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002e6ca
mov r13b, 1
jmp 0x14002e6ca
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.1400205a0
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14002e650
test r14b, r14b
jne 0x14002e6e0
test r13b, r13b
je 0x14002e6e5
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call sub.libcrypto_3_x64.dll_GENERAL_NAMES_free
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400e4f50
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x14002e9d9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14002ea06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002e9e2
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fa40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x14002fa62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14002fa78
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 0x14002fac2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
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, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, 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 [rbp + 0x80], 0
mov rdi, rbx
je 0x14002fb31
mov rcx, rbp
call fcn.14001eee0
cmp rbx, 0xfff
jbe 0x14002fb11
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14002fb4a
cmp rbx, rax
ja 0x14002fae0
test rdi, rdi
je 0x14002fb31
mov r9, qword [rbp + 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 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 0x14002fb34