joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400355f0
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 0x140035629
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 0x140035656
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140035632
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 0x140035670
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, r8
mov dword [rsp + 0x40], 0x80
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1400317c6
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rbx
mov ebx, dword [rsp + 0x40]
cmp ax, 2
je 0x140031703
cmp ax, 0x17
jne 0x1400317be
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0xd0]
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 + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400317be
lea rax, [rsp + 0xd0]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140031770
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x1400317ab
mov rsi, rdi
cmp rax, 0xf
jbe 0x14003178e
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x1400317be
lea r9, [rsp + 0xd0]
mov rdx, rbx
mov rcx, rdi
call fcn.14002c9a0
mov rbx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14010ee40
add rsp, 0x4f8
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x1400316a0
Function at 0x14003b6c0
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 [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0xf
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jbe 0x14003b704
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 0x14003b720
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14003b744
cmp qword [rsi + 0x18], 0xf
jbe 0x14003b72a
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 0x14003b749
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x14003b835
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14003b828
test r14b, r14b
jne 0x14003b823
mov edx, ebx
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x14003b80d
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x14003b7fc
cmp edi, 7
jne 0x14003b80d
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003b7f7
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14003b80d
mov r13b, 1
jmp 0x14003b80d
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14003b860
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14003b790
test r14b, r14b
jne 0x14003b823
test r13b, r13b
je 0x14003b828
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010ee40
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003d5a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ecx, 1
call fcn.14010ee60
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400558a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14003d659
cmp dword [rsp + 0x68], 0
jne 0x14003d60d
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14003d638
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010ee40
add rsp, 0xa8
ret
mov dword [rsp + 0x68], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14003e230
Capabilities:
Create thread

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ecx, 1
call fcn.14010ee60
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400558d0]
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 0x14003e2e9
cmp dword [rsp + 0x38], 0
jne 0x14003e29d
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14003e2c8
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14010ee40
add rsp, 0xb8
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14003e300
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x98
mov qword [rax - 0x20], rsi
mov r14, 0xffffffffffffffff
mov rsi, qword [0x140167660]
mov qword [rax - 0x28], rdi
mov rdi, qword [0x140167658]
cmp rdi, rsi
je 0x14003e504
mov qword [rax - 0x18], rbx
mov rbx, qword [0x140167a98]
mov qword [rax - 0x30], r12
movabs r12, 0x7fffffffffffffff
nop dword [rax]
nop dword [rax + rax]
cmp byte [rbx + 0x1d0], 0
je 0x14003e4e1
mov dword [rbp + 0x67], 0x8c9e8e90
xor ecx, ecx
mov word [rbp + 0x6b], 0x100
nop dword [rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx + 0x67], al
inc rcx
cmp rcx, 4
jb 0x14003e380
mov byte [rbp + 0x6c], 0
lea rcx, [rbp + 0x67]
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14003e3a0
cmp qword [rbx + 0x158], 0xf
lea rcx, [rbx + 0x140]
jbe 0x14003e3c1
mov rcx, qword [rbx + 0x140]
mov r8, qword [rbx + 0x150]
cmp r8, rax
jne 0x14003e3de
lea rdx, [rbp + 0x67]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003e4e1
cmp byte [0x140166a59], 0
je 0x14003e4e1
movsxd rbx, dword [0x14015d1c8]
lea rcx, [rbp + 0x7f]
call fcn.140005a00
mov rcx, qword [rbp + 0x7f]
mov qword [rbp + 0x77], rcx
test rbx, rbx
jle 0x14003e428
imul rdx, rbx, 0xf4240
mov rax, r12
sub rax, rdx
cmp rcx, rax
jge 0x14003e424
lea rax, [rdx + rcx]
mov qword [rbp + 0x77], rax
jmp 0x14003e428
mov qword [rbp + 0x77], r12
lea rcx, [rbp + 0x77]
call fcn.14002dce0
cmp byte [0x140166a59], 0
je 0x14003e4f0
mov rbx, qword [0x140167a98]
cmp byte [rbx + 0x1d0], 0
je 0x14003e4e1
mov dword [rbp + 0x6f], 0x8c9e8e90
xor ecx, ecx
mov word [rbp + 0x73], 0x100
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx + 0x6f], al
inc rcx
cmp rcx, 4
jb 0x14003e470
mov byte [rbp + 0x74], 0
lea rcx, [rbp + 0x6f]
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14003e490
cmp qword [rbx + 0x158], 0xf
lea rcx, [rbx + 0x140]
jbe 0x14003e4b1
mov rcx, qword [rbx + 0x140]
mov r8, qword [rbx + 0x150]
cmp r8, rax
jne 0x14003e4ca
lea rdx, [rbp + 0x6f]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003e4e1
mov r8d, dword [rdi + 4]
mov ecx, 0x18b6
mov edx, dword [rdi]
call fcn.1400d6990
mov rbx, qword [0x140167a98]
add rdi, 8
cmp rdi, rsi
jne 0x14003e360
jmp 0x14003e4f7
mov byte [0x140166a59], 0
mov rbx, qword [rsp + 0x90]
mov r12, qword [rsp + 0x78]
movdqa xmm0, xmmword [0x1401385e0]
xor ecx, ecx
movdqa xmm1, xmmword [0x140136590]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 0x17], 0x1009695
movdqu xmmword [rbp + 7], xmm1
nop word [rax + rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 0x22
jb 0x14003e540
xorps xmm0, xmm0
mov byte [rbp + 0x1a], 0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], 0
lea rax, [rbp - 9]
mov qword [rbp - 0x11], 0
nop
inc r14
cmp byte [rax + r14], 0
jne 0x14003e570
mov r8, r14
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14002c630
lea rcx, [rbp - 0x29]
call fcn.1400d15c0
mov byte [0x140166a59], 0
add rsp, 0x98
pop r14
pop rbp
ret
Function at 0x14003f9c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5c], 0
je 0x14003f9e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x5b
jb 0x14003f9d0
mov byte [rcx + 0x5c], 0
mov rax, rcx
ret

Function at 0x14003f9f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x70], 0
je 0x14003fa13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x6f
jb 0x14003fa00
mov byte [rcx + 0x70], 0
mov rax, rcx
ret

Function at 0x14003fa30
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov eax, edx
mov qword [rsp + 0x28], rcx
mov rbx, rcx
xor edx, edx
mov ecx, eax
xor edi, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
mov r8d, 0x100
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
test eax, eax
je 0x14003fab0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x14003faa0
lea rdx, [rsp + 0x30]
jmp 0x14003fabd
mov r8d, 7
lea rdx, str.Unknown
mov rcx, rbx
call fcn.14002c630
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010ee40
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x14004cfc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x50], 0
je 0x14004cfe3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x4f
jb 0x14004cfd0
mov byte [rcx + 0x50], 0
mov rax, rcx
ret

Function at 0x14004cff0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5e], 0
je 0x14004d013
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x5d
jb 0x14004d000
mov byte [rcx + 0x5e], 0
mov rax, rcx
ret

Function at 0x14004d020
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x57], 0
je 0x14004d043
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x56
jb 0x14004d030
mov byte [rcx + 0x57], 0
mov rax, rcx
ret

Function at 0x14004d050
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x6c], 0
je 0x14004d073
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x6b
jb 0x14004d060
mov byte [rcx + 0x6c], 0
mov rax, rcx
ret

Function at 0x14004d080
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x7c], 0
je 0x14004d0a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x7b
jb 0x14004d090
mov byte [rcx + 0x7c], 0
mov rax, rcx
ret

Function at 0x14004d0b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x70], 0
je 0x14004d0d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x6f
jb 0x14004d0c0
mov byte [rcx + 0x70], 0
ret

Function at 0x14004d0e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5c], 0
je 0x14004d103
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x5b
jb 0x14004d0f0
mov byte [rcx + 0x5c], 0
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14004d664
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14004d650
ret
Function at 0x14004ed70
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 [0x14015d040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, rdx
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x69], rsi
mov r15, qword [rbp + 0x7f]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 0x29], 1
xor r12d, r12d
movzx eax, byte [rdx]
test al, al
je 0x14004edd0
mov qword [rbp - 0x31], 4
jmp 0x14004edd8
mov dword [rbp - 0x2d], r9d
mov dword [rbp - 0x31], r12d
test al, al
cmove rbx, rcx
mov edx, r8d
lea rcx, [rbp - 0x51]
call fcn.140005010
nop
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0xf
cmova 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 0x14004ef15
mov rbx, qword [rbp - 0x61]
test rbx, rbx
je 0x14004ef0b
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
nop dword [rax + 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 0x14004ee76
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 0x14004eefa
test r14b, r14b
je 0x14004eea0
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 0x14004eeb7
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 0x14004eedf
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.140031360
test al, al
jne 0x14004ef5d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14004ee30
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x51]
call fcn.14002b140
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14004ef38
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.14010ee40
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.14002b140
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14004ef8b
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x14004ef3f
Function at 0x140050d40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 1
call fcn.14010ee60
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140055900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140050db3
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010ee40
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140050dd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.14010ee60
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140055970]
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 0x140050e4c
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010ee40
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140050ed0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 1
call fcn.14010ee60
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400559f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140050f43
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010ee40
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140059da0
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 0x140059e6c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140059e6c
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 0x140059e85
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 0x140059e5c
cmp byte [rax], 0x5c
jne 0x140059e56
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140059e56
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140059e42
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140059e53
test r8b, 0x10
jne 0x140059e56
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140059e56
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140054ee0
test edi, edi
jne 0x140059dc0
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.140054ed0
int3

Function at 0x14005c0b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
movdqa xmm0, xmmword [0x140135530]
mov r9, rcx
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x100ec99
xor eax, eax
nop
lea ecx, [rax - 0x2b]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x12
jb 0x14005c0d0
mov byte [rsp + 0x33], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14005c0f1
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.14002b230
add rsp, 0x48
ret
Function at 0x14005c110
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov ebx, edx
mov rsi, rcx
xor r14d, r14d
mov edx, r8d
lea rcx, [rbp + 0x27]
call fcn.140005010
mov rdi, rax
mov edx, ebx
lea rcx, [rbp + 7]
call fcn.140005010
mov rdx, rax
movdqa xmm0, xmmword [0x140135b50]
movdqu xmmword [rbp - 0x79], xmm0
mov dword [rbp - 0x69], 0xd29f9a8b
mov word [rbp - 0x65], 0x100
mov ecx, r14d
nop dword [rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx - 0x79], al
inc rcx
cmp rcx, 0x14
jb 0x14005c170
mov byte [rbp - 0x64], 0
lea rax, [rbp - 0x79]
mov rbx, 0xffffffffffffffff
mov r9, rbx
inc r9
cmp byte [rax + r9], 0
jne 0x14005c192
lea r8, [rbp - 0x79]
mov rcx, rdx
call fcn.14002d690
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x49], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov dword [rbp + 0x67], 0xedafee
mov byte [rbp + 0x6b], 1
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx + 0x67], al
inc rcx
cmp rcx, 3
jb 0x14005c1f0
mov byte [rbp + 0x6b], 0
lea rax, [rbp + 0x67]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14005c210
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x59]
call fcn.14002b230
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r9, rdi
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14002d190
nop
mov dword [rbp + 0x67], 0x100dca9
mov rcx, r14
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx + 0x67], al
inc rcx
cmp rcx, 2
jb 0x14005c260
mov byte [rbp + 0x6a], 0
lea rax, [rbp + 0x67]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005c280
mov r8, rbx
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x19]
call fcn.14002b230
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x69], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rdx, [rbp - 0x79]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
mov rcx, rsi
call fcn.14002b230
nop
lea rcx, [rbp - 0x79]
call fcn.14002b140
nop
lea rcx, [rbp - 0x19]
call fcn.14002b140
nop
lea rcx, [rbp - 0x39]
call fcn.14002b140
nop
lea rcx, [rbp - 0x59]
call fcn.14002b140
nop
lea rcx, [rbp + 7]
call fcn.14002b140
nop
lea rcx, [rbp + 0x27]
call fcn.14002b140
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret