joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70795980
Capabilities:
Parse credit card information

Disassembly:
cmp cx, 0x16
je 0x70795c04
jbe 0x707959e0
cmp cx, 0x25
je 0x70795df0
jbe 0x70795b10
cmp cx, 0x44
je 0x70795de0
ja 0x70795ae3
cmp cx, 0x41
je 0x70795dd0
jbe 0x70795a30
cmp cx, 0x42
je 0x70795dc0
cmp cx, 0x43
jne 0x70795db0
lea rcx, [0x707a8880]
jmp fcn.7078b300
cmp cx, 0xa
je 0x70795da0
ja 0x70795aa3
cmp cx, 4
je 0x70795d90
jbe 0x70795a70
cmp cx, 7
je 0x70795d80
jbe 0x70795a50
cmp cx, 8
je 0x70795d70
cmp cx, 9
jne 0x70795db0
lea rcx, [0x707a8c00]
jmp fcn.7078b300
cmp cx, 0x26
je 0x70795d60
cmp cx, 0x40
jne 0x70795db0
lea rcx, [0x707a88e0]
jmp fcn.7078b300
cmp cx, 5
je 0x70795d50
cmp cx, 6
jne 0x70795db0
lea rcx, [0x707a8c60]
jmp fcn.7078b300
cmp cx, 1
je 0x70795d40
test cx, cx
je 0x70795d30
cmp cx, 2
je 0x70795d20
cmp cx, 3
jne 0x70795db0
lea rcx, [0x707a8cc0]
jmp fcn.7078b300
cmp cx, 0x10
je 0x70795d10
jbe 0x70795be0
cmp cx, 0x13
je 0x70795d00
jbe 0x70795bc0
cmp cx, 0x14
je 0x70795cf0
cmp cx, 0x15
jne 0x70795db0
lea rcx, [0x707a8aa0]
jmp fcn.7078b300
cmp cx, 0x47
je 0x70795ce0
jbe 0x70795b50
cmp cx, 0x48
je 0x70795cd0
cmp cx, 0xfff
jne 0x70795db0
lea rcx, [0x707a8780]
jmp fcn.7078b300
cmp cx, 0x1b
je 0x70795cc0
jbe 0x70795b90
cmp cx, 0x1e
je 0x70795cb0
jbe 0x70795b70
cmp cx, 0x1f
je 0x70795ca0
cmp cx, 0x24
jne 0x70795db0
lea rcx, [0x707a8940]
jmp fcn.7078b300
cmp cx, 0x45
je 0x70795c90
cmp cx, 0x46
jne 0x70795db0
lea rcx, [0x707a87e0]
jmp fcn.7078b300
cmp cx, 0x1c
je 0x70795c80
cmp cx, 0x1d
jne 0x70795db0
lea rcx, [0x707a89a0]
jmp fcn.7078b300
cmp cx, 0x18
je 0x70795c70
jb 0x70795c60
cmp cx, 0x19
je 0x70795c50
cmp cx, 0x1a
jne 0x70795db0
lea rcx, [0x707a8a00]
jmp fcn.7078b300
cmp cx, 0x11
je 0x70795c40
cmp cx, 0x12
jne 0x70795db0
lea rcx, [0x707a8b00]
jmp fcn.7078b300
cmp cx, 0xc
je 0x70795c30
jb 0x70795c20
cmp cx, 0xd
je 0x70795c10
cmp cx, 0xe
jne 0x70795db0
lea rcx, [0x707a8b60]
jmp fcn.7078b300
lea rcx, [0x707a8a80]
jmp fcn.7078b300
lea rcx, [0x707a8b80]
jmp fcn.7078b300
lea rcx, [0x707a8bc0]
jmp fcn.7078b300
lea rcx, [0x707a8ba0]
jmp fcn.7078b300
lea rcx, [0x707a8b20]
jmp fcn.7078b300
lea rcx, [0x707a8a20]
jmp fcn.7078b300
lea rcx, [0x707a8a60]
jmp fcn.7078b300
lea rcx, [0x707a8a40]
jmp fcn.7078b300
lea rcx, [0x707a89c0]
jmp fcn.7078b300
lea rcx, [0x707a8800]
jmp fcn.7078b300
lea rcx, [0x707a8960]
jmp fcn.7078b300
lea rcx, [0x707a8980]
jmp fcn.7078b300
lea rcx, [0x707a89e0]
jmp fcn.7078b300
lea rcx, [0x707a87a0]
jmp fcn.7078b300
lea rcx, [0x707a87c0]
jmp fcn.7078b300
lea rcx, [0x707a8ac0]
jmp fcn.7078b300
lea rcx, [0x707a8ae0]
jmp fcn.7078b300
lea rcx, [0x707a8b40]
jmp fcn.7078b300
lea rcx, [0x707a8ce0]
jmp fcn.7078b300
lea rcx, [0x707a8d20]
jmp fcn.7078b300
lea rcx, [0x707a8d00]
jmp fcn.7078b300
lea rcx, [0x707a8c80]
jmp fcn.7078b300
lea rcx, [0x707a8900]
jmp fcn.7078b300
lea rcx, [0x707a8c20]
jmp fcn.7078b300
lea rcx, [0x707a8c40]
jmp fcn.7078b300
lea rcx, [0x707a8ca0]
jmp fcn.7078b300
lea rcx, [0x707a8be0]
jmp fcn.7078b300
lea rcx, [0x707a8de0]
jmp fcn.7078b300
lea rcx, [0x707a88a0]
jmp fcn.7078b300
lea rcx, [0x707a88c0]
jmp fcn.7078b300
lea rcx, [0x707a8840]
jmp fcn.7078b300
lea rcx, [0x707a8920]
jmp fcn.7078b300
Function at 0x70797420
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test rcx, rcx
je 0x70797495
cmp rcx, 0xffffffffffffffff
mov r8, qword [0x70916980]
mov r9, qword [0x70916988]
je 0x707974a0
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
not rdx
mov r10, rdx
nop dword [rax]
lea rax, [r9 + r8]
mov rdx, r9
xor rdx, r8
ror r8, 9
mov r9, rdx
xor r8, rdx
ror rdx, 0x1c
shl r9, 0xe
xor r8, r9
cmp rax, r10
mov r9, rdx
ja 0x70797450
movq xmm1, rdx
movq xmm0, r8
add rcx, 1
punpcklqdq xmm0, xmm1
xor edx, edx
movups xmmword [0x70916980], xmm0
div rcx
mov rax, rdx
ret
mov rax, r8
mov rdx, r8
xor rax, r9
ror rdx, 9
mov rcx, rax
xor rdx, rax
ror rax, 0x1c
shl rcx, 0xe
mov qword [0x70916988], rax
xor rdx, rcx
mov qword [0x70916980], rdx
lea rdx, [r8 + r9]
mov rax, rdx
ret

Function at 0x707974f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.7078b300
test rax, rax
je 0x7079754a
mov r9, qword [rax]
test r9, r9
jle 0x7079754a
mov r8, rax
add r9, rbx
sub r8, rbx
mov rcx, rbx
mov rdx, rbx
sar rcx, 8
sar rdx, 0x10
xor ecx, ebx
and edx, 0xffffffee
and ecx, 0xffffffee
xor cl, byte [r8 + rbx + 0x10]
xor ecx, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor ecx, edx
mov byte [r8 + rbx + 0x10], cl
add rbx, 1
cmp rbx, r9
jne 0x70797513
add rsp, 0x20
pop rbx
ret
Function at 0x70799fa0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
je 0x7079a020
cmp word [rcx], 0x5a4d
jne 0x7079a000
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
je 0x7079a040
mov qword [rsp + 0x28], 0
mov edx, 0x3f05380e
lea rcx, [0x707aea40]
call fcn.707974f0
lea rcx, [rsp + 0x28]
mov edx, 1
mov qword [rsp + 0x28], rax
call fcn.707826e0
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x28], 0
mov edx, 0x7358f22a
lea rcx, [0x707aea80]
jmp 0x70799fd9
mov qword [rsp + 0x28], 0
mov edx, 0x3ac5c76e
lea rcx, [0x707aeac0]
jmp 0x70799fd9
lea rcx, [0x707aea00]
mov edx, 0x43373e0a
call fcn.707974f0
mov edx, 0x311960aa
mov rcx, rax
call fcn.70798ca0
test byte [rbx + 0x17], 0x20
mov eax, 1
jne 0x70799ff4
mov qword [rsp + 0x28], 0
mov edx, 0x59f6a9ae
lea rcx, [0x707ae9a0]
jmp 0x70799fd9
Function at 0x7079e2d0
Capabilities:
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, qword [0x708fbe40]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
mov r13, rdx
mov rdi, qword [rax]
lea rbp, [rdi - 0x10]
mov rbx, rbp
mov rsi, qword [rbx + 0x50]
mov rcx, rsi
call qword [r12]
mov rcx, rsi
movsxd rdx, eax
call fcn.7078f870
test rax, rax
mov rsi, rax
je 0x7079e3c0
cmp qword [rax], 0
je 0x7079e3c0
xor ecx, ecx
call fcn.70792170
mov rdx, rsi
mov rcx, rax
call fcn.7078f7c0
test al, al
mov esi, eax
jne 0x7079e3c0
mov rcx, qword [rbx + 0x30]
cmp word [rcx], 0x5a4d
je 0x7079e395
lea rcx, [0x707aa280]
mov edx, 0x79eddeae
mov qword [rsp + 0x28], 0
call fcn.707974f0
mov edx, 0x6858f4ee
mov rcx, rax
call fcn.70798ca0
lea rcx, [rsp + 0x28]
mov edx, 1
mov qword [rsp + 0x28], rax
call fcn.707826e0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x7079e34b
movsxd rdx, dword [rax + 0x88]
mov r8, r13
add rdx, rcx
call fcn.7079dfc0
test al, al
mov esi, eax
jne 0x7079e386
nop dword [rax]
mov rdi, qword [rdi]
lea rbx, [rdi - 0x10]
cmp rbp, rbx
jne 0x7079e2f8
xor esi, esi
jmp 0x7079e386
Function at 0x707a4ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x70903d84]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x707a4c68
mov rax, qword [0x70903d88]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x707a4b2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x707a4bb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x707a4b10
mov rcx, rbx
call fcn.707a5780
test rax, rax
mov r12, rax
je 0x707a4c9d
mov rax, qword [0x70903d88]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.707a58b0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x70903d88]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x707a4c80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x707a4bae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x707a4c10
add dword [0x70903d84], 1
cmp edi, 8
jae 0x707a4be3
test dil, 4
jne 0x707a4c54
test edi, edi
je 0x707a4bd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x707a4c6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x707a4bd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x707a4bfc
jmp 0x707a4bd8
add rsi, qword [0x70903d88]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x707a4bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.707a5df0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x707a4bd8
xor esi, esi
jmp 0x707a4b37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x707a4bd8
mov rax, qword [0x70903d88]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.707a5df0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.707a5df0
nop
nop dword [rax]

Function at 0x707a53f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x70904060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x70904040]
test rbx, rbx
je 0x707a5444
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x707a543b
test rsi, rsi
je 0x707a543b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x707a5420
lea rcx, [0x70904060]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x707a5780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x708fc250]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x707a57ed
mov rcx, r8
call fcn.707a5660
test eax, eax
je 0x707a57ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x707a57ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x707a57e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x707a57ef
add rax, 0x28
cmp rax, r9
jne 0x707a57d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x707a5df0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x707813a0]
jmp 0x70781380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.707a5ce0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.707a5ce0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x70781390
Function at 0x180018610
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 0x180018638
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 0x18001865e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180018660
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800186b9
test ecx, ecx
jle 0x180018699
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 0x1800186b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800186b9
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 0x1800186e0
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 0x180018702
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180018718
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 0x180018734
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180018736
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180018772
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 0x18001880e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800187ad
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 0x1800187ee
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 0x18001880e
cmp rbx, rax
ja 0x1800187c0
test rbx, rbx
je 0x18001880e
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 0x180018c80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800e4040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180018cad
xor eax, eax
jmp 0x180018e0a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180018cd8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180018cd8
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 0x180018e0a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180018dfd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180018d1b
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 0x180018d46
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 0x180018e02
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 0x180018db5
sub eax, 1
je 0x180018db5
cmp eax, 2
jne 0x180018dfd
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 0x180018e02
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180018de3
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 0x180018dfd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180018e02
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ac900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18001a510
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800e4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18001a5e3
cmp byte [rcx + 0x71], 0
je 0x18001a5e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18001a5df
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 0x18001a5a4
sub eax, 1
je 0x18001a5a8
cmp eax, 2
jne 0x18001a5df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ac900
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18001a5d6
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 0x18001a5df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001a58c
xor al, al
jmp 0x18001a58c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ac900
add rsp, 0x60
pop rbx
ret

Function at 0x18002d460
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x18002d4b0
lea rax, [0x1800e6270]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x18002d200]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18002d4b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1800354c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp qword [rdx + 0x18], 0xf
mov r9, qword [rdx + 0x10]
jbe 0x1800354ce
mov rdx, qword [rdx]
xor r8d, r8d
movabs rax, 0xcbf29ce484222325
test r9, r9
je 0x180035504
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
inc r8
xor rax, rcx
imul rax, r10
cmp r8, r9
jb 0x1800354f0
ret
Function at 0x1800528d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18005292d
lea rbx, [0x1800c9b70]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180052914
cmp r10, 2
jb 0x180052914
cmp byte [r9], r8b
jne 0x180052914
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800528f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18005296f
lea rbx, [0x1800c9b70]
cmp r8b, 0x23
jne 0x180052953
cmp byte [r9], r8b
jne 0x180052953
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180052940
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180052a70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x180052a8e
mov qword [r8], r14
lea rdx, [0x1800c9208]
call fcn.180052980
mov rbx, rax
test rax, rax
jne 0x180052ab3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x180052bdd
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180052bdd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180052bdd
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180052bdd
cmp rdi, 0xffffffffffffffff
je 0x180052bdd
mov rcx, rdi
call fcn.180056fd0
mov rbp, rax
test rax, rax
je 0x180052bdd
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180052bca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1800e62c0]
test r8, r8
je 0x180052bbf
movsx rdx, word [r8 + 0x3300]
lea rcx, [r8 + 0x3304]
mov r9d, dword [r8 + 0x1218]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180052bb4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x3300], cx
movsx rax, cx
lea rcx, [r8 + 0x3304]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x32fc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180052be6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180052bd8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x180052be8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret