joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004650
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r9
mov r10, r8
mov r9, rdx
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
movzx edx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [r8 + 1]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [r8 + 2]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [r8 + 3]
xor rdx, rax
imul rdx, rcx
mov r8, qword [rsi + 0x30]
and r8, rdx
mov rbx, qword [rsi + 8]
add r8, r8
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx + r8*8]
cmp rbx, rax
je 0x14000473f
mov rbx, qword [rcx + r8*8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14000473f
mov ecx, dword [r10]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x140004704
cmp rbx, rax
jne 0x1400046f4
jmp 0x14000473f
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [rsi + 0x10]
lea rcx, [rdi + 0x18]
call fcn.140001e50
mov rcx, rdi
call fcn.140005008
mov rax, qword [rsp + 0x28]
mov qword [rax], rbx
mov byte [rax + 8], 0
jmp 0x140004877
mov qword [rsp + 0x50], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140004779
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [rsi + 8]
jne 0x140004796
mov qword [rdx + r8*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x1400047c5
cmp rax, rbx
jne 0x1400047a1
mov qword [rdx + r8*8], rdi
jmp 0x1400047c5
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x1400047c5
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x140007edc]
test rax, rax
jns 0x1400047e6
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x1400047f7
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x14000486c
cmp rdx, 0x200
jae 0x140004813
lea rdx, [rdx*8]
jmp 0x140004825
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x140004825
add rdx, rdx
mov rcx, rsi
call fcn.1400038d0
mov rbx, qword [rsi + 8]
cmp qword [rbx], rbx
je 0x140004867
mov rbx, qword [rbx + 8]
nop word [rax + rax]
mov r9, qword [rsi + 8]
mov r9, qword [r9]
cmp r9, rbx
sete byte [rsp + 0x20]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140004650
cmp byte [rsp + 0x20], 0
je 0x140004840
mov r9, qword [rsp + 0x28]
mov qword [r9], rdi
mov byte [r9 + 8], 1
mov rax, r9
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004fa0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400048b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
mov r8, qword [r9 + 0x30]
and r8, rcx
mov rbx, qword [r9 + 8]
shl r8, 4
mov rcx, qword [r9 + 0x18]
mov rax, qword [rcx + r8]
cmp rbx, rax
je 0x140004994
mov rbx, qword [rcx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x140004994
mov ecx, dword [r10]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x140004964
cmp rbx, rax
jne 0x140004954
jmp 0x140004994
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [r9 + 0x10]
mov rcx, rdi
call fcn.140005008
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x140004a24
mov rax, qword [rdi]
cmp rbx, rax
je 0x1400049c9
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r9 + 0x18]
add rcx, r8
mov rax, qword [rcx]
cmp rax, qword [r9 + 8]
jne 0x1400049e7
mov qword [rcx], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8 + 8], rdi
jmp 0x140004a11
cmp rax, rbx
jne 0x1400049f1
mov qword [rcx], rdi
jmp 0x140004a11
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x140004a11
add r8, qword [r9 + 0x18]
mov rax, qword [r8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + 8], rdx
mov rcx, r9
call fcn.140004460
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004fa0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004aa0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, r8
mov r8, rcx
movabs rax, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
movzx edx, byte [rdi + 0x10]
mov r9, qword [r8 + 0x30]
xor rdx, rax
movzx eax, byte [rdi + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rdi + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rdi + 0x13]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r8 + 0x18]
and r9, rdx
shl r9, 4
add rcx, r9
cmp qword [rcx + 8], rdi
jne 0x140004b35
cmp qword [rcx], rdi
jne 0x140004b2b
mov rax, qword [r8 + 8]
mov qword [rcx], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
mov qword [r9 + rcx + 8], rax
jmp 0x140004b40
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140004b40
cmp qword [rcx], rdi
jne 0x140004b40
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rcx], rbx
mov rcx, qword [rdi + 8]
mov rdx, qword [rdi]
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x18]
dec qword [r8 + 0x10]
call fcn.140001e50
mov rcx, rdi
call fcn.140005008
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, 1
mov dword [rsp + 0x40], 0x104
mov rdi, r8
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x30]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAMDPPCLOG
mov rcx, 0xffffffff80000001
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004d7e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.log_component_ids
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004d73
cmp dword [rsp + 0x38], esi
movzx ebx, bl
cmove ebx, esi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140004d95
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x140004d86
test rcx, rcx
jne 0x140004e11
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 0x104
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], esi
lea rdx, str.SOFTWAREAMDPPCLOG
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004e11
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.log_component_ids
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004e06
mov ecx, dword [rsp + 0x38]
dec ecx
movzx ebx, bl
cmp ecx, esi
cmovbe ebx, esi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004fa0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004e40
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x140004f77
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbp
lea rdx, str.SOFTWAREAMDPPCLOG
mov ebp, 1
mov dword [rsp + 0x40], 4
mov r9d, ebp
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004eed
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004ee2
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140004f68
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov r9d, ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREAMDPPCLOG
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f68
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004f5d
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
jmp 0x140004f79
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004fa0
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x18000c9a0
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 0x18000c9c8
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 0x18000c9ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000c9f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000ca49
test ecx, ecx
jle 0x18000ca29
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 0x18000ca49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000ca49
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 0x18000ca70
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 0x18000ca92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000caa8
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 0x18000cac4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000cac6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000cb02
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 0x18000cb9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000cb3d
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 0x18000cb7e
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 0x18000cb9e
cmp rbx, rax
ja 0x18000cb50
test rbx, rbx
je 0x18000cb9e
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 0x18000cfd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000cffd
xor eax, eax
jmp 0x18000d169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000d037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000d037
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 0x18000d169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000d15c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000d07a
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 0x18000d0a5
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 0x18000d161
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 0x18000d114
sub eax, 1
je 0x18000d114
cmp eax, 2
jne 0x18000d15c
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 0x18000d161
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000d142
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 0x18000d15c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000d161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800cac90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000d6c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000d793
cmp byte [rcx + 0x71], 0
je 0x18000d793
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000d78f
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 0x18000d754
sub eax, 1
je 0x18000d758
cmp eax, 2
jne 0x18000d78f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800cac90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000d786
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 0x18000d78f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000d73c
xor al, al
jmp 0x18000d73c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800cac90
add rsp, 0x60
pop rbx
ret
Function at 0x180025030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov qword [rsp + 0x88], rcx
xor edi, edi
lea r9, [rsp + 0x88]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800d2e78]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea r8d, [rdi + 6]
lea rdx, str.Carbon
lea rcx, [rsp + 0x48]
call fcn.18001f4f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov rdx, qword [rsp + 0x88]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800250c0
lea rcx, [rsp + 0x28]
call fcn.18001f4f0
nop
mov r8d, 1
lea rdx, [0x1800f6728]
lea rcx, [rsp + 0x28]
call fcn.180030c00
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.18002c140
nop
lea rcx, [rsp + 0x68]
call fcn.18001f320
nop
lea rcx, [rsp + 0x28]
call fcn.18001f320
nop
lea rcx, [rsp + 0x48]
call fcn.18001f320
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.1800296b0
nop
lea rcx, [rsp + 0x90]
call fcn.18001f320
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800cac90
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x180041c00
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18011f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx r14d, cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180041cd6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x180041cd6
mov qword [rsp + 0x60], rbx
nop
mov r8d, dword [rsp + 0x28]
cmp r8d, esi
je 0x180041cbf
cmp dword [rsp + 0x2c], ebp
jne 0x180041cbf
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
mov rcx, rax
test r14b, r14b
je 0x180041cb0
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x180041cb6
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180041c80
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800cac90
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180047480
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 0x18004754c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18004754c
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 0x180047565
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 0x18004753c
cmp byte [rax], 0x5c
jne 0x180047536
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180047536
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180047522
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180047533
test r8b, 0x10
jne 0x180047536
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180047536
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1800435c0
test edi, edi
jne 0x1800474a0
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.1800435b0
int3

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

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