joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800225c0
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 0x1800225f1
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 case.default.0x180022608
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 0x18002262b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002262d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180022669
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 0x1800226fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800226a4
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 0x1800226de
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 0x1800226fe
cmp rbx, rax
ja 0x1800226b0
test rbx, rbx
je 0x1800226fe
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 0x180022b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180022b8d
xor eax, eax
jmp 0x180022cf9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180022bc7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180022bc7
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 0x180022cf9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180022cec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180022c0a
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 0x180022c35
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 0x180022cf1
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 0x180022ca4
sub eax, 1
je 0x180022ca4
cmp eax, 2
jne 0x180022cec
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 0x180022cf1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180022cd2
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 0x180022cec
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180022cf1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180062330
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180026800
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, r9
mov rbx, r8
mov rbp, rcx
lea rdi, [rcx + 0xa8]
mov qword [rsp + 0x68], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18002684f
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x18002686a
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x20], xmm0
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1800268b4
movabs r10, 0x100000001b3
mov r8, qword [rsp + 0x20]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x1800268a0
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x48]
call fcn.180041610
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1800268d2
mov rbx, qword [rbp + 0x50]
cmp rbx, qword [rbp + 0x50]
jne 0x1800268e0
xor r15b, r15b
jmp 0x1800269db
lea r14, [rbp + 0x90]
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sub rax, 0x27ffd8
cmp rax, 0x28
jae 0x180026902
mov rcx, rbp
call fcn.180020380
xor r15b, r15b
mov rax, qword [rbx + 0x20]
mov r12, qword [rax + 8]
mov rbx, qword [r12]
cmp rbx, r12
je 0x1800269db
movabs rdi, 0x6666666666666667
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x18002698f
mov r15b, 1
cmp byte [rsi + 0x50], 0x20
jne 0x180026941
mov rdx, rsi
mov rcx, rbp
call fcn.180026a10
mov rcx, qword [r14 + 8]
sub rcx, qword [r14]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [rsi + 0x50]
mov word [rsi + rax*2 + 0x10], dx
inc byte [rsi + 0x50]
cmp byte [rsi + 0x50], r15b
jne 0x18002698f
mov rax, qword [rbp + 0x88]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rax, rax
je 0x180026988
mov qword [rax], rsi
mov qword [rbp + 0x88], rsi
mov rbx, qword [rbx]
cmp rbx, r12
jne 0x180026924
test r15b, r15b
mov rdi, qword [rsp + 0x68]
je 0x1800269db
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x1800269cc
mov rdx, r13
mov rcx, rbx
call fcn.180023510
mov eax, dword [r13 + 0x20]
mov dword [rbx + 0x20], eax
movzx eax, byte [r13 + 0x24]
mov byte [rbx + 0x24], al
add qword [r14 + 8], 0x28
jmp 0x1800269db
mov r8, r13
mov rdx, rbx
mov rcx, r14
call fcn.180040f50
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
movzx eax, r15b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180027130
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180084080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180027203
cmp byte [rcx + 0x71], 0
je 0x180027203
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800271ff
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 0x1800271c4
sub eax, 1
je 0x1800271c8
cmp eax, 2
jne 0x1800271ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180062330
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800271f6
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 0x1800271ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800271ac
xor al, al
jmp 0x1800271ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180062330
add rsp, 0x60
pop rbx
ret
Function at 0x180030080
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 0xf
mov r8, rdx
mov r10, qword [rdx + 0x10]
jbe 0x180030097
mov r8, qword [rdx]
xor ebx, ebx
movabs r9, 0xcbf29ce484222325
mov ecx, ebx
test r10, r10
je 0x1800300d4
movabs r11, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, r10
jb 0x1800300c0
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.18003f9e0
cmp qword [rax + 8], rbx
setne bl
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x180039c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
sub rsp, 0x58
movabs rax, 0xfffffffffffffff
mov rbp, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x180039c69
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x80], rsi
mov rsi, qword [rbp + 8]
or rax, rbx
bsr rcx, rax
mov qword [rsp + 0x50], rdi
mov r8, rsi
inc ecx
mov qword [rsp + 0x38], r14
shl rbx, cl
lea r14, [rbp + 0x18]
mov rcx, r14
mov qword [rsp + 0x78], r14
lea rdx, [rbx + rbx]
call fcn.180029600
lea rax, [rbx - 1]
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x30], rax
mov rbx, qword [rbp + 8]
mov rbx, qword [rbx]
mov rdi, rbx
cmp rbx, rsi
je 0x180039e30
mov qword [rsp + 0x48], r12
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x40], r13
movabs r10, 0x100000001b3
mov qword [rsp + 0x30], r15
nop dword [rax]
movups xmm0, xmmword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
xor ecx, ecx
mov rdi, qword [rdi]
mov rdx, rax
movaps xmmword [rsp + 0x20], xmm0
test r8, r8
je 0x180039d24
mov r9, qword [rsp + 0x20]
nop
movzx eax, byte [rcx + r9]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r8
jb 0x180039d10
mov r12, qword [rbp + 0x30]
and r12, rdx
shl r12, 4
add r12, qword [r14]
mov r15, qword [r12]
cmp r15, rsi
jne 0x180039d49
mov qword [r12], rbx
mov qword [r12 + 8], rbx
jmp 0x180039e06
mov r14, qword [r12 + 8]
cmp r8, qword [r14 + 0x18]
jne 0x180039d96
mov rdx, qword [r14 + 0x10]
movq rcx, xmm0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180039d96
mov r8, qword [r14]
cmp r8, rbx
je 0x180039d8f
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12 + 8], rbx
jmp 0x180039df7
cmp r15, r14
je 0x180039dd2
movups xmm0, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x20], xmm0
mov rbp, qword [rsp + 0x28]
mov r13, qword [rsp + 0x20]
nop
mov r14, qword [r14 + 8]
cmp rbp, qword [r14 + 0x18]
jne 0x180039dcd
mov rdx, qword [r14 + 0x10]
mov r8, rbp
mov rcx, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180039e49
cmp r15, r14
jne 0x180039db0
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r14
mov rax, qword [r14 + 8]
mov qword [rax], rbx
mov qword [r14 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r12], rbx
mov r14, qword [rsp + 0x78]
movabs r10, 0x100000001b3
mov rbp, qword [rsp + 0x70]
mov rbx, rdi
movabs rax, 0xcbf29ce484222325
cmp rdi, rsi
jne 0x180039cf0
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x38]
add rsp, 0x58
pop rbp
pop rbx
ret
mov r8, qword [r14]
mov rdx, qword [rbx + 8]
mov qword [rdx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rdi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x180039df7
Function at 0x180039e70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x180039ea8
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x40], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.180029600
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x18003a014
mov qword [rsp + 0x30], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x180039f89
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18003a003
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180039fc6
mov r10, qword [rdx]
cmp r10, rax
je 0x180039fc0
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18003a003
cmp r9, rdx
je 0x180039fdf
nop dword [rax + rax]
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18003a029
cmp r9, rdx
jne 0x180039fd0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x180039f10
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003a003
Function at 0x18003fee0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 0xc8
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800400c8
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov qword [rsp + 0x38], r14
mov qword [rbx + 8], rax
call fcn.180008d10
mov ecx, 0x50
mov rsi, rax
add rdi, 0x50
call fcn.18006243c
xorps xmm0, xmm0
lea rcx, [rsi + 8]
xorps xmm1, xmm1
mov rdx, rax
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
mov dword [rax + 0x48], 0xffffffff
movups xmmword [rax + 8], xmm1
mov dword [rax], 2
mov dword [rax + 0x4c], 0
call fcn.1800479c0
mov rax, qword [rdi]
lea rcx, [0x1800191c0]
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], rcx
lea r14, [rax - 0x50]
mov rax, qword [rax - 0x50]
cmp qword [rsi], rax
jne 0x18004006f
mov rbx, qword [r14 + 8]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18003ffb8
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x18003ffd3
dec eax
mov ecx, 6
mov dword [rbx + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mfence
mov rax, qword [rdi]
cmp qword [rsi + 0x40], rax
je 0x18003ffe7
mov qword [rsi + 0x40], rax
lea r14, [rax - 0x50]
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180040025
mfence
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, 8
mov qword [r14 + 0x30], rsi
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180040064
mfence
mov r8d, dword [rsp + 0x40]
lea rax, [rsi + 0x50]
lea r9, [rsp + 0x40]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x1800400be
mfence
mov rax, qword [rdi]
cmp qword [rsi + 0x40], rax
je 0x18004007f
mov qword [rsi + 0x40], rax
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800400be
mfence
mov r8d, dword [rsp + 0x40]
lea rax, [rsi + 0x50]
lea r9, [rsp + 0x40]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800400e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 0xc8
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800402c8
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov qword [rsp + 0x38], r14
mov qword [rbx + 8], rax
call fcn.180008d10
mov ecx, 0x50
mov rsi, rax
add rdi, 0x28
call fcn.18006243c
xorps xmm0, xmm0
lea rcx, [rsi + 8]
xorps xmm1, xmm1
mov rdx, rax
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
mov dword [rax + 0x48], 0xffffffff
movups xmmword [rax + 8], xmm1
mov dword [rax], 2
mov dword [rax + 0x4c], 0
call fcn.1800479c0
mov rax, qword [rdi]
lea rcx, [0x180018d50]
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], rcx
lea r14, [rax - 0x50]
mov rax, qword [rax - 0x50]
cmp qword [rsi], rax
jne 0x18004026f
mov rbx, qword [r14 + 8]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1800401b8
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x1800401d3
dec eax
mov ecx, 6
mov dword [rbx + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mfence
mov rax, qword [rdi]
cmp qword [rsi + 0x40], rax
je 0x1800401e7
mov qword [rsi + 0x40], rax
lea r14, [rax - 0x50]
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180040225
mfence
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, 8
mov qword [r14 + 0x30], rsi
lea rcx, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180040264
mfence
mov r8d, dword [rsp + 0x40]
lea rax, [rsi + 0x50]
lea r9, [rsp + 0x40]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x1800402be
mfence
mov rax, qword [rdi]
cmp qword [rsi + 0x40], rax
je 0x18004027f
mov qword [rsi + 0x40], rax
lea r9, [rsp + 0x40]
mov edx, 8
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800402be
mfence
mov r8d, dword [rsp + 0x40]
lea rax, [rsi + 0x50]
lea r9, [rsp + 0x40]
mov qword [rdi], rax
mov edx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180051cd0
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 0x180051d95
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180051d95
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 0x180051dae
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 0x180051d85
cmp byte [rcx], 0x5c
jne 0x180051d7e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x180051d7e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180051d6c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x180051d7b
test r8b, 0x10
jne 0x180051d7e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x180051d7e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180046990
test edi, edi
jne 0x180051cf0
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.180046980
int3
Function at 0x180054a20
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx + 0x20]
mov esi, r9d
mov r10, r8
mov rdi, rdx
cmp qword [rdx + 0x28], rax
je 0x180054af8
movzx eax, byte [rdx + 0x10]
and al, 3
cmp al, 1
je 0x180054af8
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov r8d, esi
mov qword [rsp + 0x40], r14
mov r14, qword [rdx + 8]
mov rdx, r10
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov ebp, dword [rsp + 0x58]
mov ebx, eax
cmp eax, esi
jne 0x180054a98
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180054a98
add ebx, eax
mov r14, qword [rsp + 0x40]
lea eax, [rsi + rbp]
mov rbp, qword [rsp + 0x38]
cmp ebx, eax
je 0x180054adf
movzx edx, byte [rdi + 0x10]
movzx ecx, dl
movzx eax, dl
shr cl, 2
and al, 4
and cl, 2
or cl, al
cmp cl, 6
je 0x180054adf
mov rcx, qword [rdi]
lea r8, [0x180054c60]
and dl, 3
or dl, 0xc
mov byte [rdi + 0x10], dl
mov edx, 3
call fcn.180059350
xor eax, eax
test ebx, ebx
cmovs ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx + 0x20]
mov esi, r9d
mov r10, r8
mov rdi, rdx
cmp qword [rdx + 0x28], rax
je 0x180054bb5
movzx eax, byte [rdx + 0x10]
and al, 3
cmp al, 1
je 0x180054bb5
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, esi
mov qword [rsp + 0x30], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, esi
je 0x180054b9c
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov dword [rdx + 0x10], 1
movzx eax, byte [rdi + 0x10]
movzx edx, al
movzx ecx, al
shr dl, 2
and cl, 4
and dl, 2
or dl, cl
cmp dl, 6
je 0x180054b9c
mov rcx, qword [rdi]
lea r8, [0x180054c60]
and al, 3
mov edx, 3
or al, 0xc
mov byte [rdi + 0x10], al
call fcn.180059350
xor eax, eax
test ebx, ebx
cmovs ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret