joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400057d0
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 0x14000582d
lea rbx, [0x140045b30]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140005814
cmp r10, 2
jb 0x140005814
cmp byte [r9], r8b
jne 0x140005814
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 0x1400057f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000586f
lea rbx, [0x140045b30]
cmp r8b, 0x23
jne 0x140005853
cmp byte [r9], r8b
jne 0x140005853
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 0x140005840
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400059b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400059ca
mov qword [r8], 0
lea rdx, [0x1400456a0]
call fcn.140005880
mov rbx, rax
test rax, rax
jne 0x1400059ea
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140005ac1
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 0x140005ac1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140005ac1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140005ac1
cmp rdi, 0xffffffffffffffff
je 0x140005ac1
mov rax, qword [0x140053ce8]
test rax, rax
je 0x140005a5e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140005ac1
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 0x140005aae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140053ce8]
test rax, rax
je 0x140005aa3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140005aca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140005abc
mov qword [r14], rdi
mov rax, rsi
jmp 0x140005acc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140008df0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x140045b30]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f40], ebx
jne 0x140008e86
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001c730
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140008e90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x140045b30]
movss xmm2, dword [rcx + 0x110]
movss xmm3, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x140015ae0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140053ce8]
mov edi, ecx
cmp byte [rbx + 0x4a9d], 0
jne 0x140015b41
cmp byte [rbx + 0x4a9e], 0
jne 0x140015b41
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140005630
test dil, 1
je 0x140015c6f
jmp 0x140015bca
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5bc2]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004ab78]
mulss xmm1, dword [0x14004ab6c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47e8], rax
mov dword [rbx + 0x47d4], 1
movss dword [rbx + 0x47e0], xmm0
movss dword [rbx + 0x47e4], xmm1
movss xmm0, dword [rbx + 0x3904]
mulss xmm0, dword [0x14004aaec]
or dword [rbx + 0x47d0], 0x41
movss dword [rbx + 0x4830], xmm0
call fcn.140005630
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140015c20
lea r11, [0x140045b30]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140015c03
cmp byte [r8], r9b
jne 0x140015c03
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140015bf0
not ecx
call fcn.14000cca0
test rax, rax
je 0x140015c6f
cmp byte [rax + 0xb6], 0
je 0x140015c6f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bc2]
movsx r9d, word [rbx + 0x5bc2]
call fcn.140005630
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000f590
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140042130
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001af80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca8], 0
lea rbx, [rcx + 0x5cb0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001b027
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001afda
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001d3a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140005ed0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140053cdc]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001b02f
mov rcx, rbx
call fcn.140005ed0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b4b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140053ce8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001b513
mov qword [rsp], rbx
lea rbx, [0x140045b30]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001b4f3
cmp byte [r8], r9b
jne 0x14001b4f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001b4e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c20]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14001b547
mov r10, qword [r10 + 0x5c28]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001b54e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14001b534
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140042d74
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1409baeb0
mov ecx, 0x4e246da6
ror cx, 0x4a
movsx edi, cx
mov edi, dword [r10 + rcx - 0x4e24699b]
push rcx
inc cx
sbb qword [rsp + rcx - 0x4e24699c], rcx
lea r10, [r10 + rcx - 0x4e246998]
lea rsi, [rsi + rcx - 0x4e24699d]
jne 0x1409cd01c

Function at 0x1409a6d16
Capabilities:
Encode data using xor

Disassembly:
mov r8d, dword [rsp + 1]
movzx ebp, byte [r11]
jp 0x1409ac2c8
push 0xffffffff9baaa685
sub r11, 1
neg byte [rsp]
jb 0x14099a36f
mov qword [rsp + rbx - 0x58857099], rdi
lea r10, [rdi + rdi*4 + 0x143a3384]
mov r14, qword [rsp + rbx - 0x58857091]
mov r8d, dword [rsp + rbx - 0x588570b6]
jae 0x1409d63fb
lea r10, [0x1409ddb88]
lea rsp, [rsp + 8]
mov esi, 0x1ead0289
movzx esi, byte [rsi + rbx - 0x1ead0289]
push 0xffffffffb49bec1e
xor esi, ecx
and esi, 0xff
push 0x42212030
mov esi, dword [r10 + rsi*4]
shr ecx, 8
rol byte [rsp + 7], 0x62
xor ecx, esi
inc rbx
xor ecx, 0xbabc0801
dec rax
lea rsp, [rsp + 0x10]
jne 0x1409a6d22
mov esi, 0xb3323fb4
not rsi
pop rsi
call fcn.1409a75fa
jmp 0x14099f8d0
lea r8, [r8 + r8 - 0x127770e2]
xor bpl, dil
rol bpl, 1
pop r8
not r8
call fcn.1409d29e5
xor dl, 0x9f
dec edi
inc dl
push rdi
ror dl, 1
ror rdi, 0x55
neg dl
or di, word [rsp + 6]
not rdi
not dl
neg dl
sal rdi, 0x58
sub dl, 0x17
rol dword [rsp + rdi + 0x7000002], 0x1e
jae 0x1409c8324
mov ebp, dword [r9]
mov edx, dword [r9 + 4]
call fcn.1409a03a1
call fcn.1409bf26b
call fcn.1409cc6d1
mov edx, 0xe6b8291e
mov rdx, qword [rbp + riz]
call fcn.1409ce294
test ebx, ebx
call fcn.14099cd20
add r9, 2
shr al, cl
mov word [r9], ax
jmp fcn.1409c09b5
mov ebp, r10d
mov r15, qword [rsp + rbx - 0x58857089]
mov qword [rsp + r8 + 0xa], r8
mov qword [rsp + r8 + 0x1a], 0x2684d3a4
add dword [rsp + r8*8 - 0x4c], ebp
mov rbp, qword [rsp + r8*4]
mov qword [rsp + rbx - 0x58857089], r10
mov r13d, 0xe81dcf24
mov r13, qword [rsp + r8*4 + 8]
sub byte [rsp + rbx - 0x588570b4], dil
mov rbx, qword [rsp + r8*8 - 0x28]
lea rcx, [r8*2 - 0x5bf5c2e4]
mov rdx, qword [rsp + rcx + 0x5bf5c318]
add rdi, qword [rsp + r8*4 - 0x38]
mov r12, qword [rsp + r8 + 0x4a]
push rdi
mov qword [rsp + r8*4 + 8], 0xffffffffc41c9b03
mov r10, qword [rsp + r8 + 0x5a]
push qword [rsp + 0x70]
popfq
call fcn.14099d9dd
call fcn.1409cf041
mov r9d, dword [rsi]
neg eax
shl ax, 0x65
bswap eax
mov eax, dword [rsi + 4]
call fcn.1409daf14
mov byte [r8], dl
push 0xffffffff802e3e00
lea rsp, [rsp + 0x18]
jmp fcn.1409d1f3c

Function at 0x1409d3a7a
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], r10
mov r10d, 0x74b5e381
push rbx
lea r10, [0x1409c91f8]
mov ebx, 0xf03eab85
movzx ebx, byte [rdx]
push 0xffffffffb2a1c62b
xor ebx, r11d
and ebx, 0xff
mov ebx, dword [r10 + rbx*4]
shr r11d, 8
xor r11d, ebx
inc rdx
not qword [rsp]
xor r11d, 0x7c9df927
dec rdi
push 0xffffffffb635e699
push 0xffffffffb61c6709
lea rsp, [rsp + 0x18]
jne 0x1409d3a8c
push 0x15a3672d
mov rbx, qword [rsp + 8]
call fcn.1409a1f03
add r9, 6
mov word [r9], bx
lea rsp, [rsp + 8]
jmp fcn.1409c09b5
Function at 0x1409dc30c
Capabilities:
Authenticate hmac

Disassembly:
movzx r10d, r11w
mov rbp, qword [r8 + r10*2 - 0x10c34]
mov r9d, r11d
lea r8, [r8 + r11 - 0x2d1f8612]
mov qword [rsp + r11 - 0x2d1f861a], r9
not byte [rsp + r10*2 - 0x10c32]
mov rdi, rbp
jmp 0x1409cd031
Function at 0x140008300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400083ac
cmp byte [rcx + 0x71], 0
je 0x1400083ac
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000836d
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 0x140008371
sub eax, 1
je 0x140008375
sub eax, 2
je 0x1400083ac
xor al, al
jmp 0x1400083ae
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400083a3
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 0x14000836d
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400083ae
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b900
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140008e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008e6d
xor eax, eax
jmp 0x140008fc2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140008e98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140008e98
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 0x140008fc2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140008fb5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140008edb
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 0x140008f06
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 0x140008fba
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
js 0x140008fb5
cmp eax, 1
jle 0x140008f75
cmp eax, 3
jne 0x140008fb5
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 0x140008fba
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008fa3
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 0x140008fb5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140008fba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000b900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140009820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140009850
mov rbx, qword [rsp + 0x40]
mov rdi, 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], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov rdx, qword [rax]
test rdx, rdx
je 0x140009878
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000987a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400098e0
test ecx, ecx
jle 0x1400098ae
cmp rbx, rbp
mov rcx, r14
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400098e0
cmp qword [rdi + 0x80], 0
je 0x1400098e0
mov rcx, rdi
call fcn.1400085b0
mov r9, qword [rdi + 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 rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
invalid

Function at 0x140009910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140009940
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140009968
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000996a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400099c3
test ecx, ecx
jle 0x14000999e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400099c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400099c3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jp 0x140023593
sub rdi, qword [r10 - 0xa]
invalid
or eax, 0x49afe460
adc al, 0x82
test eax, 0xbfffaf47
movabs r14, 0x9fc44e4f5d166b0d
push rax
cwde
push rbp
jmp 0xd05797a5
Function at 0x140014fbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001503a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015031
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015031
mov rax, qword [rbp - 8]
jmp 0x14001504f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015004
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f6cfbc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6cfc6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6cfef
pop rbp
sub rbp, 0x33
sub rbp, 0xf6cfbc
sub rsp, 0x20
jmp 0x140f6d00e
mov rax, 0xf6cfbc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff9887d788
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6d02d
jmp 0x140f6d044
rol byte [rcx], 0x61
add eax, dword [rcx]
mov ah, 0x88
mov byte [rax - 0x7fb6f640], cl
mov dword [rax + 0x6189c088], ecx
ror byte [rdi + 0x48], 0x80
mov byte [rax + 0x4a4fc088], cl
movabs al, byte [0x89c06a7fc0888888]
add rcx, qword [r9]
test byte [rax - 0x763f7778], cl
invalid