joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006290
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r10, r8
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov rax, rdx
lea rcx, [rsp + 0x50]
mov rbx, r9
mov qword [rsp + 0x38], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov rdx, r10
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006326
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 8
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14000633b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret
Function at 0x140006360
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp - 0x40], r8
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x30], 0x67452301
mov dword [rbp - 0x2c], 0xefcdab89
mov dword [rbp - 0x28], 0x98badcfe
mov dword [rbp - 0x24], 0x10325476
mov rdx, qword [r8]
cmp dword [rdx - 8], 1
jle 0x1400063c8
mov edx, dword [rdx - 0x10]
mov rcx, r8
call fcn.140001da4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov r8d, 3
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140002ac0
mov rax, qword [rdi]
mov r9d, dword [rax - 0x10]
mov r8, qword [rsp + 0x30]
lea rdx, [rbp - 0x30]
mov rcx, qword [r14]
call fcn.140006790
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x140006411
call fcn.14000ffe4
mov byte [rbp + 0x30], 0
xor eax, eax
mov qword [rbp + 0x31], rax
mov dword [rbp + 0x39], eax
mov word [rbp + 0x3d], ax
mov byte [rbp + 0x3f], al
mov r14, qword [r14]
mov r8d, ebx
lea rdx, [rbp + 0x42]
lea r9d, [rax + 2]
nop dword [rax]
nop word [rax + rax]
mov eax, r8d
lea rcx, [rax*4]
movzx eax, byte [rbp + rcx - 0x20]
mov byte [rdx - 2], al
movzx eax, byte [rbp + rcx - 0x1f]
mov byte [rdx - 1], al
movzx eax, byte [rbp + rcx - 0x1e]
mov byte [rdx], al
movzx eax, byte [rbp + rcx - 0x1d]
mov byte [rdx + 1], al
inc r8d
lea rdx, [rdx + 4]
sub r9, 1
jne 0x140006440
mov edx, dword [rbp - 0x20]
shr edx, 3
and edx, 0x3f
mov eax, 0x78
sub eax, edx
mov r9d, 0x38
sub r9d, edx
cmp edx, 0x38
cmovae r9d, eax
lea r8, [0x140031b70]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.140006790
mov r9d, 8
lea r8, [rbp + 0x40]
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.140006790
lea rdx, [rbp + 0x32]
mov r8d, 4
nop word [rax + rax]
lea rcx, [rbx*4]
movzx eax, byte [rbp + rcx - 0x30]
mov byte [rdx - 2], al
movzx eax, byte [rbp + rcx - 0x2f]
mov byte [rdx - 1], al
movzx eax, byte [rbp + rcx - 0x2e]
mov byte [rdx], al
movzx eax, byte [rbp + rcx - 0x2d]
mov byte [rdx + 1], al
lea ebx, [rbx + 1]
lea rdx, [rdx + 4]
sub r8, 1
jne 0x1400064d0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea r8, [rbp + 0x30]
mov rdx, rsi
call fcn.140006570
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000654e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rsi
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140009320
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007790
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
call fcn.1400021cc
test rax, rax
je 0x140007944
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [0x14002b908]
lea rcx, [rsp + 0x58]
call fcn.140001318
test al, al
jne 0x1400077f7
mov r8d, 3
lea rdx, [0x14002b908]
lea rcx, [rsp + 0x58]
call fcn.1400014c0
nop
mov rsi, qword [rbp + 0x18]
mov r10, qword [rsi + 8]
mov r8, r10
mov rdi, rsi
mov rbx, qword [rsp + 0x58]
cmp byte [r10 + 0x19], 0
jne 0x14000788a
test rbx, rbx
je 0x140007944
mov r9, qword [r8 + 0x20]
mov rax, r9
mov r11, rbx
sub r11, r9
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r11]
sub edx, ecx
jne 0x140007844
add rax, 2
test ecx, ecx
jne 0x140007830
test edx, edx
jns 0x14000784e
mov r8, qword [r8 + 0x10]
jmp 0x140007883
cmp byte [rdi + 0x19], 0
je 0x14000787d
test r9, r9
je 0x140007944
mov rax, rbx
sub r9, rbx
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x140007877
add rax, 2
test ecx, ecx
jne 0x140007863
test edx, edx
cmovs rdi, r8
mov rsi, r8
mov r8, qword [r8]
cmp byte [r8 + 0x19], 0
je 0x140007811
cmp byte [rdi + 0x19], 0
jne 0x140007893
mov r10, qword [rdi]
cmp byte [r10 + 0x19], 0
jne 0x1400078de
nop word [rax + rax]
mov r8, qword [r10 + 0x20]
test r8, r8
je 0x140007944
mov rax, rbx
sub r8, rbx
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400078c7
add rax, 2
test ecx, ecx
jne 0x1400078b3
test edx, edx
jns 0x1400078d3
mov rdi, r10
mov r10, qword [r10]
jmp 0x1400078d7
mov r10, qword [r10 + 0x10]
cmp byte [r10 + 0x19], 0
je 0x1400078a0
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x18]
call fcn.1400080a0
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000791d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8d, 1
lea rdx, [0x14002b908]
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp 0x140007cc0
mov ecx, 0x80004005
call fcn.140001fa4
int3
Function at 0x140007b10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x140007cb1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140001318
xor r15d, r15d
lea rbx, [r15 - 1]
test al, al
jne 0x140007b98
test rdi, rdi
jne 0x140007b7a
mov r8d, r15d
jmp 0x140007b8a
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdi + r8*2], r15w
jne 0x140007b80
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400014c0
nop
lea rcx, [r14 + 0x48]
lea rdx, [rsp + 0x58]
call fcn.140007e50
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007bc4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor bpl, bpl
mov dword [rsp + 0x58], r15d
mov eax, dword [r14 + 8]
or eax, 2
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14 + 0x10]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007c81
test rsi, rsi
je 0x140007c4a
cmp word [rsi], ax
je 0x140007c4a
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140007c16
add ebx, ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bpl
jmp 0x140007c76
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebp, bpl
test eax, eax
cmove ebp, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r14
call fcn.1400072b0
movzx eax, bpl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001fa4
int3
Function at 0x140007d90
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [rcx + 8]
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
or eax, 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rdi]
xor r8d, r8d
mov qword [rsp + 0x30], rdx
xor bl, bl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov rdx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007e24
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14002b898]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140007e19
lea rdx, [0x14002b898]
mov rcx, rdi
call fcn.1400072b0
mov bl, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1400098d8
Capabilities:
Parse pe header

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

Function at 0x14001553c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001532c
Function at 0x14001a56c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001a5f3
mov rsi, rbx
cmp word [rax], bp
je 0x14001a5b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001a59c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001a598
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001f62
mov rdi, rax
test rax, rax
je 0x14001a5e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020d90
mov rbp, rdi
xor ecx, ecx
call fcn.140016f54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400209f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005340
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 0x140005368
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 0x14000538e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005390
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400053e9
test ecx, ecx
jle 0x1400053c9
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 0x1400053e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400053e9
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 0x140005410
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 0x140005432
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005448
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 0x140005464
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005466
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400054a2
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 0x14000553e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400054dd
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 0x14000551e
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 0x14000553e
cmp rbx, rax
ja 0x1400054f0
test rbx, rbx
je 0x14000553e
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 0x140005970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b6028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000599d
xor eax, eax
jmp 0x140005afa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400059c8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400059c8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005afa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005aed
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005a0b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140005a36
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 0x140005af2
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 0x140005aa5
sub eax, 1
je 0x140005aa5
cmp eax, 2
jne 0x140005aed
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 0x140005af2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005ad3
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 0x140005aed
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005af2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140095220
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b6028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006dd3
cmp byte [rcx + 0x71], 0
je 0x140006dd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140006dcf
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 0x140006d94
sub eax, 1
je 0x140006d98
cmp eax, 2
jne 0x140006dcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140095220
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006dc6
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 0x140006dcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006d7c
xor al, al
jmp 0x140006d7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140095220
add rsp, 0x60
pop rbx
ret
Function at 0x14001cbc0
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 0x14001cc8c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001cc8c
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 0x14001cca5
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 0x14001cc7c
cmp byte [rax], 0x5c
jne 0x14001cc76
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001cc76
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001cc62
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001cc73
test r8b, 0x10
jne 0x14001cc76
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001cc76
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140017ce0
test edi, edi
jne 0x14001cbe0
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.140017cd0
int3

Function at 0x14001ff90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400b6028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400b7910], eax
jle 0x14001ffee
lea rcx, [0x1400b7910]
call fcn.1400953c8
cmp dword [0x1400b7910], 0xffffffff
jne 0x14001ffee
mov rax, qword [0x1400b7820]
mov qword [0x1400b7920], rax
lea rcx, [0x1400b7910]
call fcn.140095368
cmp qword [0x1400b7920], 0
jne 0x140020018
mov rax, qword [0x1400b7820]
mov qword [0x1400b7920], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140095220
add rsp, 0x68
ret
mov ecx, 1
call fcn.1400954d8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400213a0]
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 0x14002009f
cmp dword [rsp + 0x38], 0
jne 0x14002006a
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14002008d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140095220
add rsp, 0x68
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3