joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400929e0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400fddb8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x140100fa0], 0
je 0x140092a39
mov eax, 1
jmp 0x140092bb9
mov dword [rsp + 0x20], 0
jmp 0x140092a4d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x140092a7f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140100fa0], rax
cmp qword [0x140100fa0], 0
je 0x140092a7d
jmp 0x140092a7f
jmp 0x140092a43
cmp qword [0x140100fa0], 0
jne 0x140092aa1
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14008b1a0
xor eax, eax
jmp 0x140092bb9
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fa8], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fb0], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fb8], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fc0], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fc8], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fd0], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x140100fa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100fd8], rax
cmp qword [0x140100fa8], 0
je 0x140092b9a
cmp qword [0x140100fb8], 0
je 0x140092b9a
cmp qword [0x140100fc0], 0
je 0x140092b9a
cmp qword [0x140100fc8], 0
je 0x140092b9a
cmp qword [0x140100fd0], 0
je 0x140092b9a
cmp qword [0x140100fd8], 0
jne 0x140092bb4
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14008b1a0
call fcn.140092bf0
xor eax, eax
jmp 0x140092bb9
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14009d8f0]
call fcn.1400960e4
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140095500
add rsp, 0x70
pop rdi
ret
Function at 0x140093e50
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
mov rdi, rsp
mov ecx, 0x88
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400fddb8]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x14010069a]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x140093eb3
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x1400940b7
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1401003e0]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140093ee4
jmp 0x140093ea9
cmp dword [rsp + 0x40], 0x140
jl 0x140093fc0
cmp dword [rsp + 0x40], 0x14e
jg 0x140093fc0
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x140093fd9
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x140094053
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x140094062
jmp 0x140093ea9
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x14010069a]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140093ea9
mov rcx, rsp
lea rdx, [0x14009ded0]
call fcn.1400960e4
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140095500
add rsp, 0x220
pop rdi
ret
Function at 0x140096330
Capabilities:
Parse pe header

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

Function at 0x140097270
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400972f4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009e840]
cmp byte [rcx + rax], 0
je 0x1400972f4
dec r8
sub rdx, 1
jne 0x1400972da
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x1400150f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012e00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012e20
xor al, al
jmp 0x140012ea1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012e33
xor al, al
jmp 0x140012ea1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012e5d
xor al, al
jmp 0x140012ea1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012e71
xor al, al
jmp 0x140012ea1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012e83
xor al, al
jmp 0x140012ea1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012e9f
xor al, al
jmp 0x140012ea1
mov al, 1
add rsp, 0x38
ret
Function at 0x141143058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411431df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141143089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14114306f
add dl, dl
jne 0x141143096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411430f6
xor eax, eax
add dl, dl
jne 0x1411430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411431ad
add dl, dl
jne 0x1411430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14114307e
mov eax, 1
add dl, dl
jne 0x141143106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141143113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411430fb
sub eax, ebx
mov ebx, 1
jne 0x14114314c
mov ecx, 1
add dl, dl
jne 0x14114312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14114313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141143123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14114307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141143168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141143175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14114315d
cmp eax, 0x7d00
jae 0x14114319b
cmp eax, 0x500
jb 0x141143196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14114307e
cmp eax, 0x7f
ja 0x14114319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14114307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411431d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14114307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x140001684
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140001700
mov byte [rsp], 0
jmp 0x14000169d
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x1400016fb
movzx eax, byte [rsp + 0x20]
shl eax, 2
movzx ecx, byte [rsp + 1]
shl ecx, 2
lea eax, [rcx + rax*4]
movzx ecx, byte [rsp]
add eax, ecx
cdqe
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 1]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rcx*4]
movzx edx, byte [rsp]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140001694
jmp 0x140001679
add rsp, 0x18
ret

Function at 0x140001e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x140001e9d
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x140001ed2
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x140001e94
add rsp, 0x18
ret

Function at 0x140003550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov eax, 1
imul rax, rax, 0
lea rcx, [0x14000f128]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14000357e
jmp 0x1400035f3
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1400035f3
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
sub eax, dword [rsp]
and eax, 0xff
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
mov dword [rsp + 4], eax
xor edx, edx
mov eax, dword [rsp]
mov ecx, 8
div ecx
mov eax, edx
mov eax, eax
lea rcx, [0x14000f128]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
jmp 0x14000357e
add rsp, 0x18
ret
Function at 0x140003600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov eax, 1
imul rax, rax, 0
lea rcx, [0x14000f128]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14000362e
jmp 0x1400036a3
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1400036a3
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
sub eax, dword [rsp]
and eax, 0xff
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
mov dword [rsp + 4], eax
xor edx, edx
mov eax, dword [rsp]
mov ecx, 0xa
div ecx
mov eax, edx
mov eax, eax
lea rcx, [0x14000f118]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
jmp 0x14000362e
add rsp, 0x18
ret

Function at 0x140003ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x140003f6d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x20], eax
jae 0x140003fba
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140003ce0
cmp eax, dword [rsp + 0x78]
jne 0x140003fb8
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x70]
jmp 0x140003fbc
jmp 0x140003f63
xor eax, eax
add rsp, 0x68
ret
Function at 0x14000a07c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a0c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a0c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a0c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a0c6
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a0c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a0c8
xor al, al
add rsp, 0x28
ret
Function at 0x14000e7d0
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 0x14000e7f8
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 0x14000e81e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e820
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e879
test ecx, ecx
jle 0x14000e859
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 0x14000e879
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e879
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 0x14000e8a0
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 0x14000e8c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000e8d8
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 0x14000e8f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e8f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e932
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 0x14000e9ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e96d
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 0x14000e9ae
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 0x14000e9ce
cmp rbx, rax
ja 0x14000e980
test rbx, rbx
je 0x14000e9ce
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 0x14000ee30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000ee5d
xor eax, eax
jmp 0x14000efc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ee97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ee97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000efc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000efbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000eeda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x14000ef05
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 0x14000efc1
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 0x14000ef74
sub eax, 1
je 0x14000ef74
cmp eax, 2
jne 0x14000efbc
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 0x14000efc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000efa2
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 0x14000efbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000efc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008fdb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010e90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140010f63
cmp byte [rcx + 0x71], 0
je 0x140010f63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140010f5f
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 0x140010f24
sub eax, 1
je 0x140010f28
cmp eax, 2
jne 0x140010f5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008fdb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140010f56
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 0x140010f5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140010f0c
xor al, al
jmp 0x140010f0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008fdb0
add rsp, 0x60
pop rbx
ret