joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403a03f0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1403db8a0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14029a710
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1403a4a30
test al, al
je 0x1403a04b6
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1403a04eb
mov rcx, r14
call fcn.14029a710
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1403a4a30
test al, al
je 0x1403a0530
cmp dword [rbx], 0x4550
jne 0x1403a056c
mov sil, 1
test rdi, rdi
je 0x1403a04ca
mov qword [rdi], r14
jmp 0x1403a04ca
mov ecx, 1
call fcn.140209bc0
test al, al
jne 0x1403a05b2
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.140209bc0
test al, al
je 0x1403a04c8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140110e20
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1403a05e4
mov ecx, 1
call fcn.140209bc0
test al, al
je 0x1403a04c8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140110e20
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1403a05de
mov ecx, 1
call fcn.140209bc0
test al, al
je 0x1403a04c8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140110e20
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1403a05e4
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140110e20
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.14029aae0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1403a05fa
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14029aae0
mov rcx, rdi
call fcn.140111310
jmp 0x1403a04c8
Function at 0x1400013a7
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 0x1400015aa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14000dee0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rdx, dword [rcx + 0x14]
mov rbx, rcx
cmp edx, dword [rcx + 0x10]
jl 0x14000df04
call fcn.1400023ba
mov esi, eax
jmp 0x14000df12
mov rax, qword [rcx + 8]
movzx esi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rcx + 0x14], eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000df4f
nop
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df35
mov rcx, rbx
call fcn.1400023ba
mov esi, eax
jmp 0x14000df43
mov rax, qword [rbx + 8]
movzx esi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x14000df20
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df64
mov rcx, rbx
call fcn.1400023ba
mov edi, eax
jmp 0x14000df72
mov rax, qword [rbx + 8]
movzx edi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000dfaf
nop
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df95
mov rcx, rbx
call fcn.1400023ba
mov edi, eax
jmp 0x14000dfa3
mov rax, qword [rbx + 8]
movzx edi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x14000df80
test edi, edi
jns 0x14000dfc8
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9d, dword [rbx + 0x34]
mov rdx, qword [0x14004c028]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
movzx ecx, byte [rax + rdx]
shl cl, 4
movzx r8d, cl
movsxd rax, edi
movzx ecx, byte [rax + rdx]
or r8d, ecx
lea eax, [r8 + r9]
sar r9d, 8
imul ecx, eax, 0x3193
mov eax, 0x58bf
sub eax, ecx
movzx eax, ax
mov dword [rbx + 0x34], eax
mov rbx, qword [rsp + 0x30]
movzx eax, r9b
xor eax, r8d
add rsp, 0x20
pop rdi
ret
Function at 0x140001901
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14000e370
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x10], 0
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
jge 0x14000e3a3
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
test ebp, ebp
jg 0x14000e3b9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov eax, dword [rcx + 0x28]
mov qword [rsp + 0x38], rdi
xor edi, edi
test eax, eax
js 0x14000e3e0
inc rsi
mov byte [rdx], al
mov edi, 1
mov dword [rcx + 0x28], 0xffffffff
cmp ebp, edi
jle 0x14000e47d
cmp byte [rbx + 0x30], 0
jne 0x14000e409
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000e3f9
mov rcx, rbx
call fcn.1400023ba
jmp 0x14000e468
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + rdx]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
jmp 0x14000e46a
cmp byte [rbx + 0x31], 0
je 0x14000e460
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000e424
mov rcx, rbx
call fcn.1400023ba
mov ecx, eax
jmp 0x14000e432
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + rdx]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
test ecx, ecx
js 0x14000e47d
mov r8d, dword [rbx + 0x34]
movzx edx, cl
lea eax, [rdx + r8]
sar r8d, 8
imul ecx, eax, 0x3193
mov eax, 0x58bf
sub eax, ecx
movzx ecx, r8b
movzx eax, ax
xor ecx, edx
mov dword [rbx + 0x34], eax
jmp 0x14000e46a
mov rcx, rbx
call fcn.1400015aa
mov ecx, eax
test ecx, ecx
js 0x14000e47d
mov byte [rsi], cl
inc edi
inc rsi
cmp edi, ebp
jl 0x14000e3e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x140001b9a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400359f0
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 0x140001dca
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000e150
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140001be0
cmp dword [rdi + 0x40], 0
je 0x14000e20c
mov rdx, qword [rdi + 0x48]
mov ecx, 0x80
mov qword [rsp + 0x30], rbx
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
xor ecx, ecx
cmp byte [rdi + 0x50], cl
setne cl
inc ecx
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov ebx, dword [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
movzx ecx, bl
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
mov eax, ebx
sar eax, 8
movzx ecx, al
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
mov eax, ebx
sar eax, 0x10
movzx ecx, al
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
sar ebx, 0x18
movzx ecx, bl
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
movsxd r8, dword [rdi + 0x40]
mov edx, 1
mov r9, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [rdi + 0x44], 0
mov rbx, qword [rsp + 0x30]
jge 0x14000e205
mov dword [rdi + 0x44], 0
mov qword [rdi + 0x38], 0
mov dword [rdi + 0x40], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1400020f9
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 0x14000dee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14000dee0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rdx, dword [rcx + 0x14]
mov rbx, rcx
cmp edx, dword [rcx + 0x10]
jl 0x14000df04
call fcn.1400023ba
mov esi, eax
jmp 0x14000df12
mov rax, qword [rcx + 8]
movzx esi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rcx + 0x14], eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000df4f
nop
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df35
mov rcx, rbx
call fcn.1400023ba
mov esi, eax
jmp 0x14000df43
mov rax, qword [rbx + 8]
movzx esi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x14000df20
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df64
mov rcx, rbx
call fcn.1400023ba
mov edi, eax
jmp 0x14000df72
mov rax, qword [rbx + 8]
movzx edi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14000dfaf
nop
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000df95
mov rcx, rbx
call fcn.1400023ba
mov edi, eax
jmp 0x14000dfa3
mov rax, qword [rbx + 8]
movzx edi, byte [rdx + rax]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x14000df80
test edi, edi
jns 0x14000dfc8
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9d, dword [rbx + 0x34]
mov rdx, qword [0x14004c028]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
movzx ecx, byte [rax + rdx]
shl cl, 4
movzx r8d, cl
movsxd rax, edi
movzx ecx, byte [rax + rdx]
or r8d, ecx
lea eax, [r8 + r9]
sar r9d, 8
imul ecx, eax, 0x3193
mov eax, 0x58bf
sub eax, ecx
movzx eax, ax
mov dword [rbx + 0x34], eax
mov rbx, qword [rsp + 0x30]
movzx eax, r9b
xor eax, r8d
add rsp, 0x20
pop rdi
ret
Function at 0x14000e150
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000e150
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140001be0
cmp dword [rdi + 0x40], 0
je 0x14000e20c
mov rdx, qword [rdi + 0x48]
mov ecx, 0x80
mov qword [rsp + 0x30], rbx
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
xor ecx, ecx
cmp byte [rdi + 0x50], cl
setne cl
inc ecx
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov ebx, dword [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
movzx ecx, bl
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
mov eax, ebx
sar eax, 8
movzx ecx, al
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
mov eax, ebx
sar eax, 0x10
movzx ecx, al
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
mov rdx, qword [rdi + 0x48]
sar ebx, 0x18
movzx ecx, bl
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_fputc]
movsxd r8, dword [rdi + 0x40]
mov edx, 1
mov r9, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [rdi + 0x44], 0
mov rbx, qword [rsp + 0x30]
jge 0x14000e205
mov dword [rdi + 0x44], 0
mov qword [rdi + 0x38], 0
mov dword [rdi + 0x40], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14000e370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14000e370
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x10], 0
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
jge 0x14000e3a3
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
test ebp, ebp
jg 0x14000e3b9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov eax, dword [rcx + 0x28]
mov qword [rsp + 0x38], rdi
xor edi, edi
test eax, eax
js 0x14000e3e0
inc rsi
mov byte [rdx], al
mov edi, 1
mov dword [rcx + 0x28], 0xffffffff
cmp ebp, edi
jle 0x14000e47d
cmp byte [rbx + 0x30], 0
jne 0x14000e409
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000e3f9
mov rcx, rbx
call fcn.1400023ba
jmp 0x14000e468
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + rdx]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
jmp 0x14000e46a
cmp byte [rbx + 0x31], 0
je 0x14000e460
movsxd rdx, dword [rbx + 0x14]
cmp edx, dword [rbx + 0x10]
jl 0x14000e424
mov rcx, rbx
call fcn.1400023ba
mov ecx, eax
jmp 0x14000e432
mov rax, qword [rbx + 8]
movzx ecx, byte [rax + rdx]
lea eax, [rdx + 1]
mov dword [rbx + 0x14], eax
test ecx, ecx
js 0x14000e47d
mov r8d, dword [rbx + 0x34]
movzx edx, cl
lea eax, [rdx + r8]
sar r8d, 8
imul ecx, eax, 0x3193
mov eax, 0x58bf
sub eax, ecx
movzx ecx, r8b
movzx eax, ax
xor ecx, edx
mov dword [rbx + 0x34], eax
jmp 0x14000e46a
mov rcx, rbx
call fcn.1400015aa
mov ecx, eax
test ecx, ecx
js 0x14000e47d
mov byte [rsi], cl
inc edi
inc rsi
cmp edi, ebp
jl 0x14000e3e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x14000e4f0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14000e4f0
push rbx
sub rsp, 0x20
movsxd r9, dword [rcx + 0x18]
mov rbx, rcx
test r9d, r9d
js 0x14000e50e
cmp dword [rcx + 0x1c], 0
jge 0x14000e50e
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x1c], eax
cmp r9d, dword [rcx + 0x1c]
jge 0x14000e55a
mov r10, r9
nop word [rax + rax]
mov edx, dword [rbx + 0x20]
lea r10, [r10 + 1]
mov r8, qword [rbx + 8]
inc r9d
sar edx, 8
xor dl, byte [r8 + r10 - 1]
movzx eax, dl
add eax, dword [rbx + 0x20]
imul ecx, eax, 0x3193
mov eax, 0x58bf
sub eax, ecx
movzx eax, ax
mov dword [rbx + 0x20], eax
mov byte [r8 + r10 - 1], dl
cmp r9d, dword [rbx + 0x1c]
jl 0x14000e520
mov rax, qword [rbx]
mov rcx, rbx
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 8]
call qword [rax + 0x18]
movzx eax, byte [rbx + 0x14]
neg al
mov dword [rbx + 0x10], 0
mov dword [rbx + 0x1c], 0xffffffff
sbb ecx, ecx
neg ecx
dec ecx
mov dword [rbx + 0x18], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14000e5c0
Capabilities:
Read file on windows

Disassembly:
jmp 0x14000e5c0
sub rsp, 0x28
mov r9, qword [rcx + 0x38]
mov rax, rdx
mov rcx, rax
movsxd r8, r8d
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
mov ecx, 0xffffffff
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14000e600
Capabilities:
Read file on windows

Disassembly:
jmp 0x14000e600
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x44]
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test eax, eax
jne 0x14000e699
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
cmp eax, 0x80
jne 0x14000e69b
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
cmp eax, 3
je 0x14000e69b
lea ecx, [rax - 1]
cmp ecx, 2
ja 0x14000e69b
mov rcx, qword [rdi + 0x38]
cmp eax, 2
sete al
mov byte [rdi + 0x40], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov rcx, qword [rdi + 0x38]
mov dword [rdi + 0x44], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov rcx, qword [rdi + 0x38]
shl eax, 8
or dword [rdi + 0x44], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov rcx, qword [rdi + 0x38]
shl eax, 0x10
or dword [rdi + 0x44], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
shl eax, 0x18
or eax, dword [rdi + 0x44]
mov dword [rdi + 0x44], eax
je 0x14000e624
test eax, eax
jns 0x14000e6a2
mov eax, 0xffffffff
jmp 0x14000e6c1
mov r9, qword [rdi + 0x38]
cmp esi, eax
mov edx, 1
mov rcx, rbp
cmovg esi, eax
sub eax, esi
movsxd r8, esi
mov dword [rdi + 0x44], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ea40
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000ea40
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x14], 0
mov rdi, rdx
movsxd rsi, r8d
mov rbx, rcx
je 0x14000eae8
test r8d, r8d
je 0x14000eafd
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov qword [rsp + 0x38], r14
lea r14, str.0123456789ABCDEF
nop
movzx eax, byte [rdi]
mov rdx, qword [rbx + 0x38]
shr rax, 4
movsx ecx, byte [rax + r14]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putc]
movzx eax, byte [rdi]
mov rdx, qword [rbx + 0x38]
and eax, 0xf
movsx ecx, byte [rax + r14]
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putc]
inc dword [rbx + 0x40]
cmp dword [rbx + 0x40], 0x27
jne 0x14000eac6
mov rdx, qword [rbx + 0x38]
mov ecx, 0xa
call qword [sym.imp.MiKTeX221000_utf8wrap.dll_miktex_utf8_putc]
mov dword [rbx + 0x40], ebp
inc rdi
sub esi, 1
jne 0x14000ea80
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x38]
mov r8, rsi
mov rcx, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400165d0
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400165d0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x8c0
mov rax, qword [0x14004c530]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpfile]
mov rdi, rax
test rax, rax
je 0x1400167d7
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001a55
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 8]
call fcn.140001e0b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
lea rdx, [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
mov r8d, 0xf
lea rdx, str.FontDirectory__
mov rcx, rsi
call fcn.140002072
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 8]
mov rdx, qword [rax]
mov r8d, dword [rdx - 4]
mov rcx, rsi
call fcn.140002072
mov r8d, 8
lea rdx, str._known_n
mov rcx, rsi
call fcn.140002072
mov r8d, 1
lea rdx, [0x14004050c]
mov rcx, rsi
call fcn.140002072
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 8]
mov rdx, qword [rax]
mov r8d, dword [rdx - 4]
mov rcx, rsi
call fcn.140002072
mov r8d, 0x31
lea rdx, str._findfont_dup__UniqueID_known_dup__UniqueID_get
mov rcx, rsi
call fcn.140002072
mov edx, dword [rbx + 0x10]
mov rcx, rsi
call fcn.140001dd4
mov rbx, rax
mov r8d, 0x59
lea rdx, str._eq_exch__FontType_get_1_eq_andpop_falseifelse__nsave_userdict_fbufstr_512_string_put_n
mov rcx, rax
call fcn.140002072
mov eax, dword [rsp + 0x94]
cdq
and edx, 0x1ff
add edx, eax
sar edx, 9
mov rcx, rbx
call fcn.140001dd4
mov rbx, rax
mov r8d, 0x86
lea rdx, str.currentfile_fbufstr_readstringpopclear_currentfile_nclosefile_fontdownload_unexpectedEOF_.error_cvx_execifelserepeat_ncurrentfile
mov rcx, rax
call fcn.140002072
mov edx, dword [rsp + 0x94]
and edx, 0x800001ff
jge 0x140016749
dec edx
or edx, 0xfffffe00
inc edx
mov rcx, rbx
call fcn.140001dd4
mov r8d, 0x74
lea rdx, str._string_readstringpopclear_currentfile_nclosefile_fontdownload_unexpectedEOF_.error_cvx_execifelse_nrestoreifif_n
mov rcx, rax
call fcn.140002072
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov r9, rdi
mov edx, 1
mov r8d, 0x800
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x1400167c3
nop
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call fcn.140002072
mov r9, rdi
mov edx, 1
mov r8d, 0x800
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140016790
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rcx, [rsp + 0x30]
call fcn.140001497
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140001a14
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret