joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015db0
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 0x1400117f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400117d0
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
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x140015e21
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x140015e08
mov r8, rsi
call fcn.140094ab4
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.140094ab4
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
jne 0x140015e3c
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x140015ee9
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x140015e97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140015e70
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x140015eb5
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x140015ec7
mov r8, rdi
call fcn.140094ab4
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.140094ab4
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x1400117a0
Function at 0x140015f10
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 0x140015f49
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 0x140015f76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140015f52
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 0x14001c1f0
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 [0x1400c6048]
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 0x14001c234
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 0x14001c250
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14001c274
cmp qword [rsi + 0x18], 0x10
jb 0x14001c25a
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 0x14001c279
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.crypto_49.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x14001c365
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.crypto_49.dll_sk_num]
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14001c358
test r14b, r14b
jne 0x14001c353
mov edx, ebx
mov rcx, r12
call qword [sym.imp.crypto_49.dll_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x14001c33d
mov rcx, qword [rax + 8]
call qword [sym.imp.crypto_49.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.crypto_49.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x14001c32c
cmp edi, 7
jne 0x14001c33d
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001c327
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001c33d
mov r13b, 1
jmp 0x14001c33d
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14001c390
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14001c2c0
test r14b, r14b
jne 0x14001c353
test r13b, r13b
je 0x14001c358
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.crypto_49.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d370
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 0x14001d398
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 0x14001d3be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001d3c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001d419
test ecx, ecx
jle 0x14001d3f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140094ab4
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 0x14001d419
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001d419
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 0x14001d440
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 0x14001d462
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001d478
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 0x14001d494
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001d496
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001d4d2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140094ab4
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 0x14001d56e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001d50d
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 0x14001d54e
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 0x14001d56e
cmp rbx, rax
ja 0x14001d520
test rbx, rbx
je 0x14001d56e
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 0x14001d970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001d99d
xor eax, eax
jmp 0x14001db09
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001d9d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001d9d7
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 0x14001db09
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001dafc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001da1a
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 0x14001da45
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 0x14001db01
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 0x14001dab4
sub eax, 1
je 0x14001dab4
cmp eax, 2
jne 0x14001dafc
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 0x14001db01
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001dae2
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 0x14001dafc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001db01
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001ee10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001eee3
cmp byte [rcx + 0x71], 0
je 0x14001eee3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001eedf
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 0x14001eea4
sub eax, 1
je 0x14001eea8
cmp eax, 2
jne 0x14001eedf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001eed6
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 0x14001eedf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001ee8c
xor al, al
jmp 0x14001ee8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x60
pop rbx
ret
Function at 0x14001fee0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x69], rsi
mov r15, qword [rbp + 0x7f]
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x29], 1
cmp qword [rdx + 0x10], r12
je 0x14001ff4c
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14001ff42
mov rbx, qword [rdx]
mov qword [rbp - 0x31], 4
jmp 0x14001ff67
cmp qword [rcx + 0x10], rbx
je 0x14001ff5f
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14001ff5f
mov rbx, qword [rcx]
mov dword [rbp - 0x2d], r9d
mov dword [rbp - 0x31], r12d
mov edx, r8d
lea rcx, [rbp - 0x51]
call fcn.14000ff70
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x31]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140020095
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14002008b
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001fff6
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002007a
test r14b, r14b
je 0x140020020
mov dword [rbp - 0x59], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140020037
mov qword [rbp - 0x59], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x14002005f
mov dword [rbp - 0x59], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x59]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140011ca0
test al, al
jne 0x1400200dd
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14001ffb0
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.1400040d0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400200b8
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140092d50
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.1400040d0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14002010b
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x1400200bf
Function at 0x140021e50
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 [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140021fe9
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140021fa7
mov rcx, rdi
call qword [sym.imp.ssl_52.dll_SSL_new]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rdi, rdi
je 0x140021f66
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 qword [sym.imp.crypto_49.dll_BIO_new_socket]
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call qword [sym.imp.crypto_49.dll_BIO_ctrl]
mov r8, r14
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ssl_52.dll_SSL_set_bio]
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x140021f19
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call qword [sym.imp.ssl_52.dll_SSL_ctrl]
mov rdx, rdi
mov rcx, r15
call fcn.14001be40
cmp al, 1
jne 0x140021f87
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call qword [sym.imp.crypto_49.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.140092d50
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.ssl_52.dll_SSL_shutdown]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140021fe9
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
jne 0x140021fb8
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rdi
call qword [sym.imp.ssl_52.dll_SSL_free]
mov rcx, rsi
call qword [sym.imp.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 0x140021f69
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14002b840
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 0x14002b90c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002b90c
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 0x14002b925
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 0x14002b8fc
cmp byte [rax], 0x5c
jne 0x14002b8f6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14002b8f6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002b8e2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14002b8f3
test r8b, 0x10
jne 0x14002b8f6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14002b8f6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400267f0
test edi, edi
jne 0x14002b860
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400267e0
int3
Function at 0x140037440
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0x14057b7ef767814f
lea r9, [rsp + 0x18]
mov qword [rcx], rax
mov r8, rdx
mov r10, rcx
movabs r11, 0x5851f42d4c957f2d
nop word [rax + rax]
mov rdx, qword [r8 + 8]
mov rax, rdx
mov rcx, rdx
imul rax, r11
shr rcx, 0x3b
add rax, qword [r8]
mov qword [r8 + 8], rax
mov rax, rdx
shr rax, 0x2d
shr rdx, 0x1b
xor eax, edx
ror eax, cl
mov dword [r9], eax
add r9, 4
lea rax, [rsp + 0x28]
cmp r9, rax
jne 0x140037480
lea r8, [rsp + 8]
lea rax, [rsp + 0x18]
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
lea rax, [rax + 8]
shl rcx, 0x20
or rdx, rcx
lea rcx, [rsp + 0x18]
mov qword [r8], rdx
add r8, 8
cmp r8, rcx
jne 0x1400374d0
mov rcx, qword [rsp + 8]
mov rax, r10
mov rdx, qword [rsp + 0x10]
lea r8, [rcx + rcx]
or r8, 1
add rdx, r8
mov qword [r10], r8
imul rdx, r11
add rdx, r8
mov qword [r10 + 8], rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x38
ret
Function at 0x140041eb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
lea rax, [rdx - 1]
mov qword [rsp + 0x48], rbp
mov rbx, rdx
mov ebp, 0xffffffff
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], r14
mov r11, rcx
mov r8d, ebp
mov r9d, 1
cmp rbp, rax
jae 0x140041eff
nop word [rax + rax]
shl r8, 0x20
inc r9d
or r8, rbp
cmp r8, rax
jb 0x140041ef0
mov rcx, qword [rcx]
lea esi, [r9 - 1]
movabs r14, 0x5851f42d4c957f2d
mov r9d, esi
mov rdx, qword [rcx + 8]
mov rax, rdx
mov r10, rdx
shr r10, 0x2d
imul rax, r14
add rax, qword [rcx]
mov qword [rcx + 8], rax
mov rcx, rdx
shr rdx, 0x1b
xor r10d, edx
shr rcx, 0x3b
ror r10d, cl
test esi, esi
je 0x140041f78
mov rcx, qword [r11]
shl r10, 0x20
mov rdx, qword [rcx + 8]
mov rax, rdx
imul rax, r14
add rax, qword [rcx]
mov qword [rcx + 8], rax
mov rax, rdx
shr rax, 0x2d
mov rcx, rdx
shr rdx, 0x1b
xor eax, edx
shr rcx, 0x3b
ror eax, cl
or r10, rax
add r9d, ebp
jne 0x140041f41
mov rax, rbx
mul r10
mov rcx, rax
mov r10, rdx
and rcx, r8
mov r9, rax
cmp rcx, rbx
jae 0x140042044
xor edx, edx
mov qword [rsp + 0x18], rdi
mov rax, r8
sub rax, rbx
inc rax
div rbx
mov rdi, rdx
cmp rcx, rdx
jae 0x14004203f
mov rcx, qword [r11]
mov r10d, esi
mov r9, qword [rcx + 8]
mov rax, r9
imul rax, r14
add rax, qword [rcx]
mov qword [rcx + 8], rax
mov rax, r9
mov rcx, r9
shr rax, 0x2d
shr r9, 0x1b
xor r9d, eax
shr rcx, 0x3b
ror r9d, cl
test esi, esi
je 0x140042027
nop word [rax + rax]
mov rcx, qword [r11]
shl r9, 0x20
mov rdx, qword [rcx + 8]
mov rax, rdx
imul rax, r14
add rax, qword [rcx]
mov qword [rcx + 8], rax
mov rax, rdx
shr rax, 0x2d
mov rcx, rdx
shr rdx, 0x1b
xor eax, edx
shr rcx, 0x3b
ror eax, cl
or r9, rax
add r10d, ebp
jne 0x140041ff0
mov rax, rbx
mul r9
mov r9, rax
mov r10, rdx
and rax, r8
cmp rax, rdi
jb 0x140041fb2
mov rdi, qword [rsp + 0x18]
cmp dword [reloc.WS2_32.dll_accept], 2
mov r14, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jge 0x1400420bc
mov rax, r8
movabs rcx, 0x5555555555555555
shr rax, 1
and rax, rcx
movabs rcx, 0x3333333333333333
sub r8, rax
mov rax, r8
and r8, rcx
shr rax, 2
and rax, rcx
add rax, r8
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
jmp 0x1400420c1
popcnt rcx, r8
mov ecx, ecx
test cl, cl
je 0x1400420e1
cmp cl, 0x40
jb 0x1400420dd
movzx ecx, cl
and ecx, 0x3f
shr r10, cl
mov rax, r10
add rsp, 0x28
ret
shrd r9, r10, cl
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400420f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, qword [rcx]
mov r11, rcx
movabs rbx, 0x5851f42d4c957f2d
mov r10d, edx
mov r9, qword [r8 + 8]
mov rax, r9
mov rcx, r9
imul rax, rbx
shr rcx, 0x3b
add rax, qword [r8]
mov qword [r8 + 8], rax
mov rax, r9
shr rax, 0x2d
shr r9, 0x1b
xor eax, r9d
mov r9d, edx
ror eax, cl
mov ecx, eax
imul rcx, r10
cmp ecx, edx
jae 0x140042186
xor edx, edx
mov eax, r10d
neg eax
div r10d
cmp ecx, edx
jae 0x140042186
nop dword [rax]
mov rcx, qword [r11]
mov r8, qword [rcx + 8]
mov rax, r8
imul rax, rbx
add rax, qword [rcx]
mov qword [rcx + 8], rax
mov rax, r8
shr rax, 0x2d
mov rcx, r8
shr rcx, 0x3b
shr r8, 0x1b
xor eax, r8d
ror eax, cl
mov ecx, eax
imul rcx, r9
cmp ecx, edx
jb 0x140042150
mov rbx, qword [rsp + 8]
shr rcx, 0x20
mov eax, ecx
ret