joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c130
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 0x140007e24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140007e00
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 0x14000c1a1
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x14000c188
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.140007e50
test rax, rax
jg 0x14000c1c8
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 0x14000c26a
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
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 0x14000c218
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c1f1
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x14000c236
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x14000c248
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
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 0x140007dd0
Function at 0x14000c290
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov r14, r8
mov r10, qword [rcx + 0x28]
mov r15, rdx
mov r9, qword [rcx + 0x20]
mov rbp, rcx
mov qword [rsp + 0x48], rax
lea edi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x3c], r10d
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000c31d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c2f0
mov qword [rsp + 0x280], rsi
test ebx, ebx
jle 0x14000c3fa
mov rdi, qword [rbp + 8]
xor eax, eax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000c37f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c350
test ebx, ebx
je 0x14000c3cd
jns 0x14000c390
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x14000c3fa
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x14000c3c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c3a0
test ebx, ebx
jle 0x14000c3fa
mov rdi, qword [rbp + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14000c3f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000c3d1
mov rax, rbx
jmp 0x14000c401
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140085780
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14000c4c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14000c519
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140007ef0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140085780
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140019500
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 0x140019528
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 0x14001954e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140019550
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400195a9
test ecx, ecx
jle 0x140019589
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 0x1400195a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400195a9
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 0x1400195d0
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 0x1400195f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140019608
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 0x140019624
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019626
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019662
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400196fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001969d
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 0x1400196de
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 0x1400196fe
cmp rbx, rax
ja 0x1400196b0
test rbx, rbx
je 0x1400196fe
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 0x140019b20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140019b4d
xor eax, eax
jmp 0x140019cb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140019b87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140019b87
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 0x140019cb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140019cac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140019bca
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 0x140019bf5
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 0x140019cb1
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 0x140019c64
sub eax, 1
je 0x140019c64
cmp eax, 2
jne 0x140019cac
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 0x140019cb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140019c92
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 0x140019cac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140019cb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140085780
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001aab0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001aae4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001aad0
ret

Function at 0x14001b710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10d, dword [0x1402a20d0]
lea r11, [0x1402a20d0]
mov r9d, 0x270
cmp r10d, r9d
jne 0x14001b775
lea r8, [0x1402a20d8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14001b730
mov r10d, dword [0x1402a20d0]
jmp 0x14001b84f
cmp r10d, 0x4e0
jb 0x14001b84f
xor r10d, r10d
mov r8d, 0x38c
mov r9d, r10d
nop
mov eax, dword [r9 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + r11 + 0xff8]
xor ecx, edx
mov dword [r9 + r11 + 4], ecx
add r9, 4
cmp r9, r8
jb 0x14001b790
mov eax, dword [r8 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r8 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + r11 - 0x388]
xor ecx, edx
mov dword [r8 + r11 + 4], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x14001b7d0
mov edx, dword [0x1402a3450]
xor edx, dword [0x1402a20d4]
btr edx, 0x1f
mov dword [0x1402a20d0], r10d
xor edx, dword [0x1402a3450]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x1402a2704]
mov dword [0x1402a2a90], ecx
mov eax, r10d
mov ecx, dword [r11 + rax*4 + 4]
inc eax
mov dword [0x1402a20d0], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x1402a3454]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x14001b890
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001b963
cmp byte [rcx + 0x71], 0
je 0x14001b963
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001b95f
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 0x14001b924
sub eax, 1
je 0x14001b928
cmp eax, 2
jne 0x14001b95f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140085780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001b956
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 0x14001b95f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001b90c
xor al, al
jmp 0x14001b90c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140085780
add rsp, 0x60
pop rbx
ret
Function at 0x1400276b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.1400858c0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14002d870]
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 0x140027729
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085780
mov rbx, qword [rsp + 0x50]
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 0x140027740
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
sar rdi, 2
test rdi, rdi
je 0x140027923
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1402a20b8]
sub rbx, qword [0x1402a20b0]
mov qword [rsp + 0x50], r13
sar rbx, 2
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140027793
mov eax, ntohs
jmp 0x1400277c1
cmp rdi, 0x44
jb 0x1400277a0
mov eax, 7
jmp 0x1400277c1
cmp rdi, 0x27
jb 0x1400277ad
mov eax, 5
jmp 0x1400277c1
cmp rdi, 7
jb 0x1400277ba
mov eax, 3
jmp 0x1400277c1
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x1400277da
mov r15, rdi
mov r8, rdi
mov qword [rsp + 0x48], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x14002788d
nop
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [rbp]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14002784d
mov rax, rbx
jmp 0x140027865
cmp rcx, rbx
ja 0x140027862
mov rax, qword [0x1402a20b0]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140027865
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r15
jb 0x140027800
add r15, rdi
cmp rcx, r15
jae 0x14002790a
inc r14
lea rbp, [rcx - 1]
inc r13
nop
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, dword [rsi + r9*4]
add ecx, r10d
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x1400278a0
mov rbp, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14002bef0
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 0x14002bfb5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002bfb5
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 0x14002bfce
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14002bfa5
cmp byte [rcx], 0x5c
jne 0x14002bf9e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14002bf9e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002bf8c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14002bf9b
test r8b, 0x10
jne 0x14002bf9e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14002bf9e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140027020
test edi, edi
jne 0x14002bf10
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.140027010
int3
Function at 0x14003e4c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
movaps xmmword [rsp + 0x1d0], xmm6
mov rax, qword [0x14029a040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
cmp byte [0x14029a230], 0
jne 0x14003e672
mov ebx, dword [rsp + 0x48]
movsd xmm6, qword [rsp + 0x40]
nop word [rax + rax]
mov eax, dword [reloc.WS2_32.dll_accept]
inc eax
movsxd rcx, eax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
call fcn.14001d650
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14003e665
cmp qword [0x1402a39d8], 0
je 0x14003e665
lea rcx, [rbp + 0x20]
call fcn.14003e6a0
mov qword [rbp + 0xb8], 0
movd xmm1, dword [0x14029a134]
cvtdq2ps xmm1, xmm1
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
movzx r9d, byte [0x14029a128]
mov r8d, dword [0x14029a130]
call fcn.14004d3f0
test al, al
je 0x14003e653
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14003e653
cmp byte [rbp + 0x60], 0
jne 0x14003e653
cmp byte [0x14029a129], 0
je 0x14003e5be
cmp byte [rbp + 0xb4], 0
je 0x14003e653
mov ecx, dword [reloc.WS2_32.dll_bind]
test ecx, ecx
je 0x14003e608
sub ecx, 1
je 0x14003e5ed
cmp ecx, 1
jne 0x14003e630
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14003e750
mov r9d, 0x60f2
lea rdx, [rsp + 0x50]
jmp 0x14003e621
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14003e750
mov r9d, 0x9995
lea rdx, [rsp + 0x5c]
jmp 0x14003e621
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14003e750
mov r9d, 0x796e
lea rdx, [rsp + 0x68]
mov r8, rax
call fcn.14004cb30
movsd xmm6, qword [rax]
mov ebx, dword [rax + 8]
movsd qword [rsp + 0x40], xmm6
mov dword [rsp + 0x48], ebx
mov r9d, dword [0x14029a13c]
mov r8d, dword [0x14029a138]
lea rdx, [rsp + 0x40]
call fcn.14004d840
nop
lea rcx, [rbp + 0x68]
call fcn.140028010
lea rcx, [rbp + 0x38]
call fcn.14001bfa0
cmp byte [0x14029a230], 0
je 0x14003e510
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140085780
mov rbx, qword [rsp + 0x1f0]
movaps xmm6, xmmword [rsp + 0x1d0]
add rsp, 0x1e0
pop rbp
ret
Function at 0x14003e890
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r8
mov r14, rdx
mov rbp, rcx
movzx esi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rsi, rax
movabs rcx, 0x100000001b3
imul rsi, rcx
movzx eax, byte [r8 + 1]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 2]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 3]
xor rsi, rax
imul rsi, rcx
mov rcx, rsi
and rcx, qword [rbp + 0x30]
add rcx, rcx
mov rax, qword [rbp + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rbp + 8]
mov r12, qword [rdx]
cmp rbx, r12
jne 0x14003e917
mov rbx, r12
mov r15, r12
jmp 0x14003e95a
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x14003e931
cmp rbx, rcx
je 0x14003e954
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14003e923
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r12, rbx
mov r15, rbx
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rbp + 0x10], rax
jne 0x14003e978
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.1400858c0
mov rdi, rax
mov qword [rsp + 0x28], rax
mov rax, qword [r13]
mov qword [rdi + 0x10], rax
mov rdx, qword [rbp + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x14003e9b4
cvtsi2ss xmm0, rdx
jmp 0x14003e9cc
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14003e9df
cvtsi2ss xmm1, rcx
jmp 0x14003e9f4
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
jbe 0x14003ea65
mov rcx, rbp
call fcn.14003ec80
mov rdx, rax
mov rcx, rbp
call fcn.14003ead0
mov rdx, rsi
and rdx, qword [rbp + 0x30]
add rdx, rdx
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rbx, qword [rbp + 8]
cmp rax, rbx
jne 0x14003ea38
mov qword [rsp + 0x28], 0
jmp 0x14003ea58
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x14003ea55
mov rbx, rax
cmp rax, rdx
je 0x14003ea96
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14003ea44
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r15, rbx
mov r12, qword [rsp + 0x20]
mov rcx, qword [rbx + 8]
inc qword [rbp + 0x10]
mov qword [rdi], r12
mov qword [rdi + 8], rcx
mov qword [rcx], rdi
mov qword [rbx + 8], rdi
mov rax, qword [rbp + 0x18]
and rsi, qword [rbp + 0x30]
add rsi, rsi
mov rdx, qword [rax + rsi*8]
cmp rdx, qword [rbp + 8]
jne 0x14003eaa6
mov qword [rax + rsi*8], rdi
jmp 0x14003eab8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x14003ea5d
cmp rdx, r15
jne 0x14003eab1
mov qword [rax + rsi*8], rdi
jmp 0x14003eabd
cmp qword [rax + rsi*8 + 8], rcx
jne 0x14003eabd
mov qword [rax + rsi*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x14003e939