joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400168a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400168a0
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x40], 0
mov rbx, rdx
mov qword [rsp + 0x38], rsi
mov rsi, rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
mov r14d, dword [rcx + 0x30]
jl 0x1400168ce
add rcx, 0x20
call fcn.140001feb
mov rdi, qword [rsi + 0x28]
lea rax, [0x14004d23c]
mov qword [rsp + 0x30], rbp
cmp qword [rsi + 8], rax
jne 0x14001692c
mov r8d, 4
lea rdx, str.dup
mov rcx, rbx
call fcn.140002072
mov edx, dword [rsi + 0x10]
mov rcx, rbx
call fcn.140001dd4
mov rbp, rax
cmp dword [rax + 0x10], 0x400
jl 0x140016918
mov rcx, rax
call fcn.140002199
movsxd rdx, dword [rbp + 0x10]
mov rcx, qword [rbp + 8]
mov byte [rdx + rcx], 0x20
mov rcx, rbp
inc dword [rbp + 0x10]
jmp 0x14001697f
cmp dword [rbx + 0x10], 0x400
jl 0x14001693d
mov rcx, rbx
call fcn.140002199
movsxd rcx, dword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov byte [rcx + rax], 0x2f
mov rcx, rbx
inc dword [rbx + 0x10]
mov rdx, qword [rsi + 8]
mov r8d, dword [rdx - 4]
call fcn.140002072
cmp dword [rbx + 0x10], 0x400
jl 0x14001696d
mov rcx, rbx
call fcn.140002199
movsxd rcx, dword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov byte [rcx + rax], 0x20
mov rcx, rbx
inc dword [rbx + 0x10]
mov edx, dword [rbx + 0x30]
add edx, r14d
call fcn.140001dd4
mov rdx, qword [rbx + 0x28]
mov rcx, rax
mov r8d, dword [rdx - 4]
call fcn.140002072
mov eax, dword [rbx + 0x30]
test eax, eax
jns 0x1400169b4
mov r8d, r14d
mov rdx, rdi
mov rcx, rbx
call fcn.140002072
jmp 0x140016a54
add eax, r14d
movsxd rcx, eax
call fcn.14000190b
xor r9d, r9d
mov rbp, rax
mov r8, rax
mov edx, 0x10ea
cmp dword [rbx + 0x30], r9d
jle 0x140016a06
nop dword [rax]
nop word [rax + rax]
mov ecx, edx
inc r9d
shr ecx, 8
mov byte [r8], cl
inc r8
movzx eax, cl
add eax, edx
mov edx, 0x58bf
imul ecx, eax, 0x3193
sub edx, ecx
cmp r9d, dword [rbx + 0x30]
jl 0x1400169e0
test r14d, r14d
jle 0x140016a3a
sub r8, rdi
mov r9, r14
mov eax, edx
lea rdi, [rdi + 1]
shr eax, 8
xor al, byte [rdi - 1]
mov byte [r8 + rdi - 1], al
movzx eax, al
add eax, edx
mov edx, 0x58bf
imul ecx, eax, 0x3193
sub edx, ecx
sub r9, 1
jne 0x140016a11
mov r8d, dword [rbx + 0x30]
mov rdx, rbp
add r8d, r14d
mov rcx, rbx
call fcn.140002072
mov rcx, rbp
call fcn.140001a0a
mov rdx, qword [rsi + 0x18]
mov rcx, rbx
mov r8d, dword [rdx - 4]
call fcn.140002072
cmp dword [rbx + 0x10], 0x400
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
jl 0x140016a89
mov rcx, rbx
call fcn.140002199
movsxd rcx, dword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov byte [rcx + rax], 0xa
inc dword [rbx + 0x10]
add rsp, 0x20
pop rbx
ret
Function at 0x14001b950
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14001b950
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x20]
mov rdi, rcx
test ebx, ebx
js 0x14001b9b3
add rcx, 8
call fcn.1400021f8
xor r9d, r9d
mov r8, rax
cmp dword [rdi + 0x10], r9d
jle 0x14001b9ac
nop dword [rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, ebx
inc r9d
sar ecx, 8
xor cl, dl
lea eax, [rbx + rdx]
mov byte [r8 - 1], cl
imul ecx, eax, 0x3193
mov ebx, 0x58bf
sub ebx, ecx
cmp r9d, dword [rdi + 0x10]
jl 0x14001b980
mov dword [rdi + 0x20], 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d6f0
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002d6f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rsi, rdx
mov r14, rcx
lea r15, [0x140042458]
mov qword [rbp + 0xf], r15
xor ebx, ebx
mov dword [rbp + 0x17], ebx
mov qword [rbp + 0x1f], rbx
mov rdx, qword [rdx]
movsxd r8, dword [rsi + 8]
add r8, rdx
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea r9, [0x14004186c]
mov rcx, rsi
call fcn.140001be5
mov rdi, rax
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
mov rdx, qword [r14 + 0x18]
lea r12, [0x140042459]
lea rcx, [rbp - 0x19]
cmp rdx, r12
je 0x14002d780
mov r8d, dword [r14 + 0x20]
call fcn.140001b27
jmp 0x14002d785
call fcn.140001d0c
mov r8b, 1
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x27]
call fcn.140001f91
nop
mov rdx, qword [rax]
lea rcx, [rbp - 0x19]
cmp rdx, r12
je 0x14002d7ad
mov r8d, dword [rax + 8]
call fcn.140001b27
jmp 0x14002d7b2
call fcn.140001d0c
mov rdx, qword [rsi]
movsxd rcx, dword [rsi + 8]
add rcx, rdx
cmp rdi, rcx
jae 0x14002d7eb
cmp rdi, rdx
jb 0x14002d7eb
mov rbx, qword [rsi + 0x10]
mov qword [rbp - 9], rdi
sub ecx, edi
mov dword [rbp - 1], ecx
mov qword [rbp + 7], rbx
test rbx, rbx
je 0x14002d7fb
mov eax, dword [rbx]
inc eax
mov dword [rbx], eax
mov rbx, qword [rbp + 7]
mov ecx, dword [rbp - 1]
jmp 0x14002d7fb
mov qword [rbp - 9], r15
mov ecx, ebx
mov dword [rbp - 1], ebx
mov qword [rbp + 7], rbx
mov rdi, r15
cmp rdi, r12
je 0x14002d811
mov r8d, ecx
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140001b27
jmp 0x14002d81a
lea rcx, [rbp - 0x19]
call fcn.140001d0c
mov eax, dword [rbp - 0x11]
cmp eax, dword [rbp - 0xd]
jl 0x14002d835
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.14000201d
test rax, rax
je 0x14002d843
mov eax, dword [rbp - 0x11]
movsxd rcx, eax
mov rax, qword [rbp - 0x19]
mov byte [rcx + rax], 0xa
inc dword [rbp - 0x11]
test rbx, rbx
je 0x14002d85b
mov eax, dword [rbx]
sub eax, 1
mov rcx, qword [rbp + 7]
mov dword [rcx], eax
jne 0x14002d85b
call fcn.1400016ef
nop
mov rax, qword [rbp + 0x37]
test rax, rax
je 0x14002d87b
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0x37]
mov dword [rax], ecx
jne 0x14002d87b
mov rcx, qword [rbp + 0x37]
call fcn.1400016ef
nop
movsxd r8, dword [rbp - 0x11]
mov r9, qword [r14 + 0x10]
mov edx, 1
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop
cmp dword [rbp - 0xd], 0
jle 0x14002d8a7
mov rcx, qword [rbp - 0x19]
add rcx, 0xfffffffffffffff4
call fcn.140001a0a
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14002d8c7
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rbp + 0x1f]
mov dword [rax], ecx
jne 0x14002d8c7
mov rcx, qword [rbp + 0x1f]
call fcn.1400016ef
nop
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400317b0
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400317b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x6c]
mov eax, dword [rbx + 0x80]
mov edi, dword [rbx + 0x60]
sub edi, dword [rbx + 0x78]
mov r8d, dword [rbx + 0x70]
sub edi, eax
add edi, ecx
sub r8d, ecx
mov esi, edi
cmp r8d, eax
jbe 0x1400317f9
mov rdx, qword [rbx + 0x78]
mov r8d, eax
lea rcx, [rdi + rdx]
call sub.VCRUNTIME140.dll_memmove
add qword [rbx + 0x78], rsi
jmp 0x140031811
mov rdx, rcx
add rdx, qword [rbx + 0x60]
mov rcx, rdx
sub rcx, rsi
call sub.VCRUNTIME140.dll_memmove
sub dword [rbx + 0x6c], edi
sub dword [rbx + 0x70], edi
mov eax, dword [rbx + 0x78]
mov rcx, rbx
sub eax, dword [rbx + 0x60]
mov edx, dword [rbx + 0x6c]
mov dword [rbx + 0x6c], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400013a7

Function at 0x140031860
Capabilities:
Read file on windows

Disassembly:
jmp 0x140031860
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, dword [rdi + 0x70]
cmp ebx, edx
jae 0x140031897
mov r8, qword [rdi + 0x60]
nop
mov eax, ebx
movzx ecx, byte [rax + r8]
cmp cl, 0xa
je 0x1400318f5
cmp cl, 0xd
je 0x1400318f5
inc ebx
cmp ebx, edx
jb 0x140031880
sub ebx, dword [rdi + 0x6c]
mov rcx, rdi
call fcn.140001c71
mov ecx, dword [rdi + 0x70]
mov edx, 1
mov r8d, dword [rdi + 0x68]
mov r9, qword [rdi]
sub r8d, ecx
add rcx, qword [rdi + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov esi, dword [rdi + 0x6c]
add ebx, esi
add dword [rdi + 0x70], eax
test eax, eax
jne 0x140031874
mov byte [rdi + 0x85], 1
mov r8d, dword [rdi + 0x70]
cmp ebx, r8d
jne 0x1400318fa
cmp ebx, dword [rdi + 0x68]
jne 0x1400318e7
mov rcx, rdi
call fcn.140001c71
mov esi, dword [rdi + 0x6c]
mov edx, ebx
cmp ebx, esi
jne 0x140031962
dec dword [rdi + 0x58]
jmp 0x140031962
mov esi, dword [rdi + 0x6c]
jmp 0x1400318d1
mov r9, qword [rdi + 0x60]
mov eax, ebx
cmp byte [rax + r9], 0xa
jne 0x14003190c
lea edx, [rbx + 1]
jmp 0x140031962
lea eax, [r8 - 1]
cmp ebx, eax
jne 0x14003194d
mov rcx, rdi
call fcn.140001c71
mov ecx, dword [rdi + 0x70]
mov edx, 1
mov r8d, dword [rdi + 0x68]
mov r9, qword [rdi]
sub r8d, ecx
add rcx, qword [rdi + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [rdi + 0x70], eax
mov eax, dword [rdi + 0x6c]
mov r8d, dword [rdi + 0x70]
sub eax, esi
mov r9, qword [rdi + 0x60]
add ebx, eax
mov esi, dword [rdi + 0x6c]
lea eax, [r8 - 1]
lea edx, [rbx + 1]
cmp ebx, eax
jae 0x140031962
cmp byte [rdx + r9], 0xa
jne 0x140031962
lea edx, [rbx + 2]
mov rcx, qword [rdi + 0x60]
mov eax, esi
add rax, rcx
mov qword [rdi + 0x78], rax
mov eax, ebx
sub eax, esi
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 0x80], eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov byte [rax + rcx], 0
inc dword [rdi + 0x58]
mov rax, qword [rdi + 0x78]
mov dword [rdi + 0x6c], edx
add rsp, 0x20
pop rdi
ret
Function at 0x140036334
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14001a3c4
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400014b5
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400072c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, rcx
mov ecx, 1
movzx ebx, byte [rax]
lea rdi, [rax + 2]
movzx eax, byte [rax + 1]
shl rbx, 8
add rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
mov edx, 1
mov r9, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rax, [rbx + rdi]
cmp rax, qword [rsi + 0x20]
jae 0x14000735c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, [0x140022a10]
mov r9, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001735
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400073a0
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov rbx, rcx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rcx]
mov qword [rsp + 0x40], rsi
add rbp, 2
mov qword [rsp + 0x20], r14
lea rsi, [rcx + 0x20]
lea r14, [0x140128c30]
cmp rcx, r14
je 0x140007447
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x20]
cmp byte [rax - 1], 0x20
lea rdi, [rax - 1]
jne 0x1400073fc
cmp rdi, rbp
jb 0x1400073fc
mov rbx, qword [rsi + 8]
mov rsi, rbx
jmp 0x140007404
mov rdi, rax
mov rbx, r14
xor esi, esi
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub rdi, rbp
mov edx, 1
mov r9, rax
mov r8, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rbx]
cmp rbx, r14
jne 0x1400073e0
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
test rsi, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14000749d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, [0x140022a10]
mov r9, rax
lea r8d, [rdx + 2]
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x28
ret
Function at 0x1400072c0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400072c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, rcx
mov ecx, 1
movzx ebx, byte [rax]
lea rdi, [rax + 2]
movzx eax, byte [rax + 1]
shl rbx, 8
add rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
mov edx, 1
mov r9, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rax, [rbx + rdi]
cmp rax, qword [rsi + 0x20]
jae 0x14000735c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, [0x140022a10]
mov r9, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400073a0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400073a0
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov rbx, rcx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rcx]
mov qword [rsp + 0x40], rsi
add rbp, 2
mov qword [rsp + 0x20], r14
lea rsi, [rcx + 0x20]
lea r14, [0x140128c30]
cmp rcx, r14
je 0x140007447
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x20]
cmp byte [rax - 1], 0x20
lea rdi, [rax - 1]
jne 0x1400073fc
cmp rdi, rbp
jb 0x1400073fc
mov rbx, qword [rsi + 8]
mov rsi, rbx
jmp 0x140007404
mov rdi, rax
mov rbx, r14
xor esi, esi
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub rdi, rbp
mov edx, 1
mov r9, rax
mov r8, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rbx]
cmp rbx, r14
jne 0x1400073e0
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
test rsi, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14000749d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
lea rcx, [0x140022a10]
mov r9, rax
lea r8d, [rdx + 2]
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x28
ret
Function at 0x14000ba40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140326bf8]
lea rbx, [0x1403059e0]
mov edi, 1
cmp rcx, rbx
je 0x14000ba7d
movzx eax, byte [rcx]
cmp al, 0x20
je 0x14000bb02
dec rcx
cmp al, 0x5c
jne 0x14000ba78
cmp byte [rcx], al
jne 0x14000baee
cmp rcx, rbx
jne 0x14000ba62
mov edx, dword [0x140326c00]
lea rcx, str._n__Line_had_to_be_broken__output_l.__d_:_n
call fcn.140001375
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140326bf8]
lea rcx, [0x1403059e1]
sub r8, rbx
mov r9, rax
dec r8
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0xa
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putchar]
mov eax, dword [0x1400349e4]
test eax, eax
mov rcx, qword [0x140326bf8]
cmove eax, edi
dec rcx
mov dword [0x1400349e4], eax
mov edx, edi
mov r8d, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000c800
xor edx, edx
mov r8d, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000c800

Function at 0x14000c760
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140326bf8]
lea rdi, [0x1403059e0]
cmp rcx, rdi
jbe 0x14000c788
xor r8d, r8d
xor edx, edx
add rsp, 0x20
pop rdi
jmp fcn.14000c800
mov qword [rsp + 0x30], rbx
lea rbx, [0x14002afc0]
cmp rbx, qword [0x140028248]
ja 0x14000c7be
nop dword [rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000c7cb
cmp byte [rbx], 0x80
jae 0x14000c7cb
inc rbx
cmp rbx, qword [0x140028248]
jbe 0x14000c7a0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000c800
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea rdi, [0x1403059e0]
mov r14d, r8d
mov ebp, edx
mov rsi, rcx
mov rbx, rcx
test edx, edx
jne 0x14000c842
cmp rcx, rdi
jbe 0x14000c842
cmp byte [rbx], 0x20
jne 0x14000c842
dec rbx
cmp rbx, rdi
ja 0x14000c835
mov rcx, qword [0x14018a7f8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov r9, qword [0x14018a7f8]
lea rcx, [0x1403059e1]
mov r8, rbx
mov edx, 1
sub r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test ebp, ebp
je 0x14000c884
mov rdx, qword [0x14018a7f8]
mov ecx, 0x25
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putc]
mov rdx, qword [0x14018a7f8]
mov ecx, 0xa
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putc]
inc dword [0x140326c00]
test r14d, r14d
je 0x14000c8c7
cmp rbx, rdi
jbe 0x14000c8c7
movzx eax, byte [rbx]
dec rbx
cmp al, 0x25
jne 0x14000c8ba
cmp rbx, rdi
je 0x14000c8c1
cmp byte [rbx], 0x5c
jne 0x14000c8c1
cmp rbx, rdi
ja 0x14000c8a6
jmp 0x14000c8c7
mov byte [rsi], 0x25
dec rsi
mov rbx, qword [0x140326bf8]
cmp rsi, rbx
jae 0x14000c8e9
mov r8, rbx
lea rdx, [rsi + 1]
sub r8, rsi
lea rcx, [0x1403059e1]
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x38]
sub rdi, rsi
mov rsi, qword [rsp + 0x40]
add rbx, rdi
mov rdi, qword [rsp + 0x48]
mov qword [0x140326bf8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x14001b734
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x66528d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x66529d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x665285
lea eax, [rcx + 1]
jmp 0x6652ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6652be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6652a4
sub eax, 3
jb 0x6652de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x66532d
sar eax, 1
movsxd rbp, eax
jb 0x665314
jmp 0x6652ec
add ebx, ebx
jne 0x6652ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x665314
inc ecx
add ebx, ebx
jne 0x6652fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x665314
call r11
adc ecx, ecx
add ebx, ebx
jne 0x66530d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6652fc
add ecx, 2
jmp 0x665319
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00665242
jmp 0x66528d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1ca200
mov dl, 0x35
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x66537d
cmp rsi, rcx
jae 0x665385
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x665364
cmp al, 0x8f
ja 0x665364
cmp byte [rsi - 2], 0xf
je 0x66536a
sub al, 0xe8
cmp al, 1
ja 0x66534e
cmp rsi, rcx
jae 0x665385
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x665354
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x665385
lodsb al, byte [rsi]
jmp 0x665364
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x261000]
mov eax, dword [rdi]
or eax, eax
je 0x6653e2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x265000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x665392
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x6653dc
mov qword [rbx], rax
add rbx, 8
jmp 0x6653b2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x665426
cmp al, 0xef
ja 0x66540e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6653ee
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x6653fd
mov eax, dword [rdi]
add rdi, 4
jmp 0x6653fd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.006654a5], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.006654a5
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x665495
sub rsp, 0xffffffffffffff80
jmp 0x4014f0