joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bf40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
cmova rdi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rsi
jae 0x14000bfb9
mov rcx, qword [rcx + 0x30]
sub rsi, rax
lea rdx, [rax + rcx]
mov rcx, rbp
cmp rdi, rsi
ja 0x14000bf9d
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
jne 0x14000bfd7
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
mov qword [rsp + 0x40], r14
mov r14, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x14000c060
mov qword [rsp + 0x48], r15
mov r15, qword [rbx + 0x30]
nop dword [rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x14000c027
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c000
mov r15, qword [rsp + 0x48]
test rsi, rsi
jle 0x14000c045
mov rdx, qword [rbx + 0x30]
mov rcx, rbp
cmp rsi, rdi
jg 0x14000c04a
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
jmp 0x14000c087
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
jmp 0x14000c087
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14000c084
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c060
mov rax, rbx
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], 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 0x14000c0d9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x30], 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 0x14000c106
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c0e2
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c130
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140007915
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400077f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005e370
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x1400078c0
Function at 0x1400140c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rcx + 0x410]
lea rbp, [rcx + 0x418]
mov r15, qword [rdx]
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov rbx, rdx
mov rcx, rbp
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140014291
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x140014222
mov rcx, rsi
call qword [sym.imp.libssl_1_1_x64.dll_SSL_new]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rsi, rsi
je 0x140014260
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r15d
call qword [sym.imp.libcrypto_1_1_x64.dll_BIO_new_socket]
xor r9d, r9d
mov rcx, rax
mov r12, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call qword [sym.imp.libcrypto_1_1_x64.dll_BIO_ctrl]
mov r8, r12
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.libssl_1_1_x64.dll_SSL_set_bio]
cmp qword [r14 + 0x20], 0x10
lea r9, [r14 + 8]
jb 0x140014193
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x37]
call qword [sym.imp.libssl_1_1_x64.dll_SSL_ctrl]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400142a0
cmp al, 1
jne 0x140014202
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x66]
call qword [sym.imp.libcrypto_1_1_x64.dll_BIO_ctrl]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
mov qword [rbx + 8], rsi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.libssl_1_1_x64.dll_SSL_shutdown]
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140014291
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
jne 0x140014233
dec eax
mov ecx, 6
mov dword [rbp + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rsi
call qword [sym.imp.libssl_1_1_x64.dll_SSL_free]
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140014274
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001428a
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
xor al, al
jmp 0x1400141e8
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400146e0
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 [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], 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 0x140014724
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 0x140014740
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140014764
cmp qword [rsi + 0x18], 0x10
jb 0x14001474a
mov rsi, qword [rsi]
lea r8, [rsp + 0x24]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140014769
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x140014855
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x28], eax
test eax, eax
jle 0x140014848
test r14b, r14b
jne 0x140014843
mov edx, ebx
mov rcx, r12
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x14001482d
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x14001481c
cmp edi, 7
jne 0x14001482d
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140014817
mov r8, r15
lea rcx, [rsp + 0x24]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001482d
mov r13b, 1
jmp 0x14001482d
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.140014880
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x28]
jl 0x1400147b0
test r14b, r14b
jne 0x140014843
test r13b, r13b
je 0x140014848
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_1_1_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005e370
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019d60
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 0x140019d88
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 0x140019dae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140019db0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140019e09
test ecx, ecx
jle 0x140019de9
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 0x140019e09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140019e09
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 0x140019e30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140019e61
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140019e7f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140019e9b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019e9d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019ed9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140019f6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140019f14
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 0x140019f4e
nop dword [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 0x140019f6e
cmp rbx, rax
ja 0x140019f20
test rbx, rbx
je 0x140019f6e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001a3b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001a3dd
xor eax, eax
jmp 0x14001a549
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a417
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001a417
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 0x14001a549
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001a53c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a45a
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 0x14001a485
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 0x14001a541
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x14001a4f4
sub eax, 1
je 0x14001a4f4
cmp eax, 2
jne 0x14001a53c
movsx ecx, byte [rsp + 0x40]
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 0x14001a541
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001a522
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 0x14001a53c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a541
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005e370
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001b924
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001b910
ret
Function at 0x14001cbd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009c030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001cca3
cmp byte [rcx + 0x71], 0
je 0x14001cca3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001cc9f
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 0x14001cc64
sub eax, 1
je 0x14001cc68
cmp eax, 2
jne 0x14001cc9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005e370
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001cc96
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 0x14001cc9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001cc4c
xor al, al
jmp 0x14001cc4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005e370
add rsp, 0x60
pop rbx
ret
Function at 0x14003e190
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 0x14003e25c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003e25c
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 0x14003e275
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 0x14003e24c
cmp byte [rax], 0x5c
jne 0x14003e246
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14003e246
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003e232
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14003e243
test r8b, 0x10
jne 0x14003e246
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14003e246
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140033bc0
test edi, edi
jne 0x14003e1b0
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.140033bb0
int3
Function at 0x140047300
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov edi, edx
mov r14, rcx
xor r12d, r12d
mov word [rcx], r12w
add rcx, 8
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
lea rcx, [r14 + 0x50]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
lea rbx, [r14 + 0x98]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rsp + 0x80], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x20], r12
lea ecx, [r12 + 0x10]
call fcn.14005e4c0
mov qword [rax + 8], r12
mov qword [rbx], rax
mov qword [rax], rbx
mov qword [r14 + 0xc0], r12
lea rcx, [r14 + 0xc8]
lea edx, [r12 + 2]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
lea rsi, [r14 + 0x118]
lea ebp, [r12 + 1]
test edi, edi
je 0x1400473ab
mov dword [rsi], edi
jmp 0x1400473da
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x1400473bd
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
jmp 0x1400473bf
mov eax, ebp
mov rcx, rsi
mov dword [rcx], eax
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
test eax, eax
je 0x1400473d8
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
mov edi, eax
jmp 0x1400473da
mov edi, ebp
lea r15, [r14 + 0x120]
mov qword [rsp + 0x80], r15
mov eax, reloc.WS2_32.dll_recv
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.14005ec98
mov qword [rax], rdi
lea rbx, [rax + 8]
lea rax, [0x140003660]
mov qword [rsp + 0x20], rax
lea r9, [0x1400471a0]
mov r8, rdi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.14005eca0
mov qword [r15], rbx
mov byte [r14 + 0x128], 0
xchg byte [r14 + 1], bpl
mov ebx, r12d
cmp dword [rsi], r12d
jbe 0x1400474c7
lea rdi, [0x1400476c0]
mov ecx, reloc.WS2_32.dll_recv
call fcn.14005e4c0
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14004f270]
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 0x1400474eb
mov eax, ebx
shl rax, 4
add rax, qword [r15]
cmp dword [rax + 8], 0
jne 0x1400474e4
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax], xmm1
cmp dword [rsp + 0x38], 0
jne 0x1400474e4
inc ebx
cmp ebx, dword [rsi]
jb 0x140047454
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14005e020
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005e0a4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400674c0]
cmp byte [rcx + rax], 0
je 0x14005e0a4
dec r8
sub rdx, 1
jne 0x14005e08a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14005f1b0
Capabilities:
Parse pe header

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