joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003bb00
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15d, dword [rsp + 0x38]
xor ebp, ebp
mov r11, rdx
mov r14, rcx
test r8d, r8d
je 0x18003bc00
lea esi, [rbp + 4]
xor r10d, r10d
test r8d, r8d
je 0x18003bb6c
movzx edi, byte [r11]
mov r10d, 1
inc r11
sub r8d, r10d
je 0x18003bb6f
movzx ecx, byte [r11]
inc r10d
inc r11
mov rdx, r11
sub r8d, 1
je 0x18003bb71
movzx edx, byte [rdx]
inc r11
inc r10d
dec r8d
jmp 0x18003bb73
xor dil, dil
xor cl, cl
xor dl, dl
cmp esi, r15d
jge 0x18003bc08
movzx ebx, cl
movzx ecx, dil
and ecx, 3
movzx eax, dil
shr rax, 2
shl ecx, 4
movzx eax, byte [rax + r14]
mov byte [r9], al
mov eax, ebx
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 1], al
cmp r10d, 1
jbe 0x18003bbe0
and ebx, 0xf
movzx eax, dl
shr rax, 6
shl ebx, 2
mov ecx, ebx
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jbe 0x18003bbe9
and edx, 0x3f
movzx eax, byte [rdx + r14]
jmp 0x18003bbeb
mov byte [r9 + 2], 0x3d
add r9, 3
mov al, 0x3d
mov byte [r9], al
add ebp, 4
inc r9
add esi, 4
test r8d, r8d
jne 0x18003bb31
lea eax, [rbp + 1]
cmp eax, r15d
jl 0x18003bc0f
mov eax, 0xffffffff
jmp 0x18003bc15
mov byte [r9], 0
mov eax, ebp
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x18003e3c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
xor r10d, r10d
mov rax, qword [rdx]
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov ebp, r10d
mov r8, qword [r9 + 0x18]
test r8, r8
jne 0x18003e3fb
mov rcx, qword [rcx]
mov r8d, dword [rcx + 0x7ec]
mov rsi, qword [rbx + 0xd0]
mov ecx, r8d
mov rdx, qword [rsi + 0x130]
cmp rcx, rdx
cmovbe edx, r8d
mov ecx, edx
cmp rcx, rdi
cmovbe edi, edx
test edi, edi
jne 0x18003e426
xor eax, eax
jmp 0x18003e5e9
test byte [rsi + 0x124], 4
mov qword [rsp + 0x58], r14
mov r14, rax
jne 0x18003e4ed
movzx edx, byte [rsi + 0x141]
mov ecx, edx
and ecx, 3
movzx r8d, byte [rcx + rsi + 0x128]
lea rcx, [rdx + 1]
and ecx, 3
mov byte [rsp + 0x50], r8b
movzx r9d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 2]
and ecx, 3
mov byte [rsp + 0x51], r9b
movzx r11d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 1]
and ecx, 3
mov byte [rsp + 0x52], r11b
movzx edx, byte [rcx + rsi + 0x128]
mov ecx, edi
shr ecx, 2
mov byte [rsp + 0x53], dl
test ecx, ecx
je 0x18003e4b7
nop dword [rax + rax]
xor byte [rax], r8b
xor byte [rax + 1], r9b
xor byte [rax + 2], r11b
xor byte [rax + 3], dl
add rax, 4
sub ecx, 1
jne 0x18003e4a0
mov edx, edi
and edx, 3
je 0x18003e4d4
mov ebp, edx
movzx ecx, byte [rsp + r10 + 0x50]
inc r10
xor byte [rax], cl
lea rax, [rax + 1]
cmp r10, rdx
jl 0x18003e4c0
mov rcx, qword [rbx + 0xd0]
movzx eax, dil
add al, byte [rcx + 0x141]
and al, 3
mov byte [rcx + 0x141], al
mov esi, edi
add qword [r15], rsi
mov rax, qword [rbx + 0xd0]
sub qword [rax + 0x130], rsi
mov rcx, qword [rbx + 0xd0]
mov eax, dword [rcx + 0x124]
bt eax, 0xa
jae 0x18003e598
bt eax, 0xb
jb 0x18003e598
add rcx, 0x146
mov r8d, esi
mov rdx, r14
call fcn.180028d40
test eax, eax
je 0x18003e542
lea r8, str.bad_utf8
mov r9d, 8
jmp 0x18003e574
mov rax, qword [rbx + 0xd0]
cmp qword [rax + 0x130], 0
jne 0x18003e598
test byte [rax + 0x124], 1
je 0x18003e598
cmp byte [rax + 0x146], 0
je 0x18003e598
test ebp, ebp
jne 0x18003e598
lea r8, str.partial_utf8
lea r9d, [rbp + 0xc]
mov edx, 0x3ef
mov rcx, rbx
call fcn.180039f60
movsxd r8, edi
mov rdx, r14
mov ecx, 8
call fcn.180026670
mov eax, 0xffffffff
jmp 0x18003e5e4
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18003e5d1
cmp dword [rbx + 0x404], 0
jne 0x18003e5d1
mov r9, qword [rbx + 0x3d8]
mov r8d, 6
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.180024a20
test eax, eax
jne 0x18003e591
mov rax, qword [rbx + 0xd0]
and dword [rax + 0x124], 0xffffbfff
mov eax, edi
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x180042580
Capabilities:
Hash data using sha1

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
xorps xmm0, xmm0
mov dword [rbp - 0x29], 0x67452301
xor eax, eax
mov dword [rbp - 0x25], 0xefcdab89
xor ebx, ebx
mov dword [rbp + 0x3b], eax
mov dword [rbp - 0x21], 0x98badcfe
mov r15, r8
mov dword [rbp - 0x1d], 0x10325476
mov rsi, rdx
mov dword [rbp - 0x19], 0xc3d2e1f0
mov r14, rcx
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
movups xmmword [rbp + 0x2b], xmm0
test rdx, rdx
je 0x180042656
mov qword [r11 + 8], rdi
nop
movzx ecx, byte [rbp + 0x37]
lea rdx, [rbx + r14]
and ecx, 0x3f
mov edi, 0x40
sub rdi, rcx
mov rax, rsi
sub rax, rbx
cmp rdi, rax
cmovae rdi, rax
lea rax, [rbp - 9]
add rcx, rax
mov r8, rdi
call sub.ntdll.dll_memcpy
mov rax, qword [rbp - 0x11]
movzx edx, dil
add dl, byte [rbp + 0x37]
and dl, 0x3f
mov byte [rbp + 0x37], dl
lea rcx, [rax + rdi*8]
mov qword [rbp - 0x11], rcx
test dl, 0x3f
jne 0x180042646
lea rcx, [rbp - 0x29]
call fcn.1800428f0
add rbx, rdi
cmp rbx, rsi
jb 0x1800425f0
mov rdi, qword [rsp + 0xc0]
lea rcx, [rbp - 0x29]
call fcn.180042720
movzx eax, byte [rbp - 0x1d]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov byte [rbp - 0x2a], al
movzx eax, byte [rbp - 0x1c]
mov byte [rbp - 0x2b], al
movzx eax, byte [rbp - 0x1b]
mov byte [rbp - 0x2c], al
movzx eax, byte [rbp - 0x1a]
mov byte [rbp - 0x2d], al
movzx eax, byte [rbp - 0x21]
mov byte [rbp - 0x2e], al
movzx eax, byte [rbp - 0x20]
mov byte [rbp - 0x2f], al
movzx eax, byte [rbp - 0x1f]
mov byte [rbp - 0x30], al
movzx eax, byte [rbp - 0x1e]
mov byte [rbp - 0x31], al
movzx eax, byte [rbp - 0x25]
mov byte [rbp - 0x32], al
movzx eax, byte [rbp - 0x24]
mov byte [rbp - 0x33], al
movzx eax, byte [rbp - 0x23]
mov byte [rbp - 0x34], al
movzx eax, byte [rbp - 0x22]
mov byte [rbp - 0x35], al
movzx eax, byte [rbp - 0x29]
mov byte [rbp - 0x36], al
movzx eax, byte [rbp - 0x28]
mov byte [rbp - 0x37], al
movzx eax, byte [rbp - 0x27]
mov byte [rbp - 0x38], al
movzx eax, byte [rbp - 0x26]
mov byte [rbp - 0x39], al
movzx eax, byte [rbp - 0x16]
movdqa xmm0, xmmword [rbp - 0x39]
mov byte [r15 + 0x10], al
movzx eax, byte [rbp - 0x17]
mov byte [r15 + 0x11], al
movzx eax, byte [rbp - 0x18]
mov byte [r15 + 0x12], al
movzx eax, byte [rbp - 0x19]
mov byte [r15 + 0x13], al
mov rax, r15
movdqu xmmword [r15], xmm0
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180048830
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x250
mov rax, qword [0x18005f4c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180056d88]
mov rbp, rcx
call sub.msvcrt.dll_wcspbrk
test rax, rax
je 0x1800489f1
mov qword [rsp + 0x268], rbx
xor ebx, ebx
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x278], rdi
call sub.msvcrt.dll__errno
mov esi, dword [rax]
call sub.msvcrt.dll__errno
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], ebx
call sub.msvcrt.dll__wfullpath
mov rdi, rax
test rax, rax
je 0x1800488af
call sub.msvcrt.dll__errno
mov dword [rax], esi
jmp 0x1800488e0
call sub.msvcrt.dll__errno
cmp dword [rax], 0x22
jne 0x1800489cf
call sub.msvcrt.dll__errno
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], esi
call sub.msvcrt.dll__wfullpath
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x1800489cf
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x1800488f0
cmp rcx, 3
je 0x1800489b5
inc rax
cmp word [rdi + rax*2], 0
jne 0x180048904
cmp rax, 5
jb 0x1800489cf
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x18004892b
cmp ax, 0x2f
jne 0x1800489cf
movzx eax, word [rdi + 2]
cmp ax, 0x5c
je 0x18004893f
cmp ax, 0x2f
jne 0x1800489cf
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x1800489cf
cmp ax, 0x2f
je 0x1800489cf
movzx eax, word [rdi + 6]
lea rcx, [rdi + 6]
test ax, ax
je 0x1800489cf
cmp ax, 0x5c
je 0x180048979
cmp ax, 0x2f
je 0x180048979
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x180048960
test ax, ax
je 0x1800489cf
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
je 0x1800489cf
nop dword [rax + rax]
cmp ax, 0x5c
je 0x1800489a9
cmp ax, 0x2f
je 0x1800489a9
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x180048990
test ax, ax
je 0x1800489b5
cmp word [rcx + 2], 0
jne 0x1800489cf
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov rcx, rbx
cmp eax, 1
jbe 0x1800489d2
call sub.msvcrt.dll_free
mov al, 1
jmp 0x1800489d9
mov rcx, rbx
call sub.msvcrt.dll_free
xor al, al
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180044ff0
add rsp, 0x250
pop rbp
ret
Function at 0x180048e70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18005f4c0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.DLL_IsProcessorFeaturePresent]
test eax, eax
je 0x180048eac
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.180045420
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.ntdll.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_RtlLookupFunctionEntry]
test rax, rax
je 0x180048f68
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
test eax, eax
jne 0x180048fce
test ebx, ebx
jne 0x180048fce
lea ecx, [rax + 2]
call fcn.180045420
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180044ff0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x180002c70
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002ca2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002ca2
nop word cs:[rax + rax]
jmp 0x180002ca0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002d78
mov rsi, r10
test r8b, r8b
je 0x180002d90
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002d10
test r9b, r9b
je 0x180002da0
sub rsi, rcx
je 0x180002d74
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002d70
test ebp, ebp
jne 0x180002d70
add rbx, 1
cmp rsi, rbx
jne 0x180002d30
jmp 0x180002d74
test ebp, ebp
jne 0x180002cfc
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002d90
jmp 0x180002da0
Function at 0x180002990
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov rax, qword gs:[0x60]
mov r12, qword [rax + 0x18]
mov r9, qword [r12 + 0x10]
add r12, 0x10
cmp r9, r12
je 0x180002a22
mov edx, dword [0x180020a94]
lea ebp, [rdx - 1]
imul ebp, edx
test bpl, 1
sete sil
cmp dword [0x180020a98], 0xa
setl r10b
mov ebp, dword [0x180020a9c]
mov eax, dword [0x180020aa0]
lea r15d, [rbp - 1]
imul r15d, ebp
and r15d, 1
sete bl
cmp eax, 0xa
setl r11b
cmp dword [0x180020a7c], 0xa
jl 0x180002a52
mov edi, dword [0x180020a80]
lea ebp, [rdi - 1]
imul ebp, edi
and ebp, 1
je 0x180002a52
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x180002a20
mov eax, dword [0x180020a9c]
mov ecx, dword [0x180020aa0]
lea r15d, [rax - 1]
imul r15d, eax
and r15d, 1
xor eax, eax
cmp ecx, 0xa
jl 0x180002b0f
test r15d, r15d
je 0x180002b0f
nop
jmp 0x180002a50
mov dword [rsp + 4], eax
or r10b, sil
or r11b, bl
lea r8, [rcx - 1]
mov rdi, r8
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002a70
test r10b, r10b
je 0x180002af0
sub rdi, rcx
je 0x180002b02
mov r13, qword [r9 + 0x60]
xor esi, esi
nop word [rax + rax]
movzx edx, word [r13 + rsi*2]
lea eax, [rdx - 0x41]
lea ebp, [rdx + 0x20]
cmp ax, 0x1a
cmovae ebp, edx
movsx eax, byte [rcx + rsi]
lea ebx, [rax - 0x41]
lea r14d, [rax + 0x20]
cmp bl, 0x1a
cmovae r14d, eax
sub ebp, r14d
test edx, edx
je 0x180002ad0
test ebp, ebp
jne 0x180002ad0
add rsi, 1
cmp rdi, rsi
jne 0x180002a90
jmp 0x180002b02
test ebp, ebp
je 0x180002b02
test r11b, r11b
je 0x180002b00
mov r9, qword [r9]
cmp r9, r12
jne 0x180002a60
mov ecx, dword [rsp + 4]
jmp 0x180002a3a
jmp 0x180002af0
jmp 0x180002b00
test r11b, r11b
je 0x180002b30
mov rax, qword [r9 + 0x30]
mov ecx, dword [rsp + 4]
cmp ecx, 0xa
jl 0x180002b32
test r15d, r15d
je 0x180002b32
nop dword [rax]
jmp 0x180002b20
jmp 0x180002b30
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400043c0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r13
push r15
mov eax, 0x1070
call fcn.14000c930
sub rsp, rax
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r15, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
jne 0x14000440c
mov rdx, rbp
jmp 0x14000451a
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140002ce0
test al, al
je 0x140004404
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r12
mov qword [rsp + 0x1050], r14
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140004450
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r12, rax
test r14d, r14d
je 0x1400044ef
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400044be
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1400044b0
cmp rdi, rax
je 0x1400044ce
inc esi
cmp esi, r14d
jae 0x1400044ef
lea rdx, str.PAGE
jmp 0x140004490
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x1400044ef
mov ecx, dword [rbx + 8]
mov edx, eax
lea rax, [rsp + 0x40]
add rax, rdx
je 0x1400044ef
test ecx, ecx
je 0x1400044ef
mov ebp, ecx
add rdx, r15
jmp 0x1400044f2
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r12, qword [rsp + 0x1058]
mov r14, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400042b0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b720
add rsp, 0x1070
pop r15
pop r13
pop rbp
ret
Function at 0x1400051a0
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.0x1400051d0
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 0x1400051f8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400051fa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005253
test ecx, ecx
jle 0x140005233
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005253
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005253
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
xchg dword [rdx + 0x3a41c30a], ebp
jns 0x140028eb8
ficom dword [rax + 0x34]
popfq
xchg ebp, eax
cmp esi, dword [rax]
invalid
insb byte [rdi], dx
invalid
Function at 0x140005280
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 0x1400052a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400052b1
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 0x1400052d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400052d6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140005310
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400053b7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000534b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005391
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400053d0
cmp rbx, rax
ja 0x140005360
mov r8, rdi
test rdi, rdi
je 0x1400053b7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x1400053ba
mov ch, 0x39
invalid
Function at 0x1400057d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400057fd
xor eax, eax
jmp 0x140005952
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005828
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005828
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 0x140005952
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005945
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000586b
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 0x140005896
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 0x14000594a
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 0x140005905
sub eax, 1
je 0x140005905
cmp eax, 2
jne 0x140005945
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 0x14000594a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005933
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 0x140005945
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000594a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000b720
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005c70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005d43
cmp byte [rcx + 0x71], 0
je 0x140005d43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005d3f
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 0x140005d04
sub eax, 1
je 0x140005d08
cmp eax, 2
jne 0x140005d3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b720
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005d36
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 0x140005d3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005cec
xor al, al
jmp 0x140005cec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b720
add rsp, 0x60
pop rbx
ret