joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002bc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140002bfb
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002c02
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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]
xor esi, esi
jmp 0x140002cf9
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002c55
mov rcx, qword [rbx + 0x50]
movsxd r15, dword [rcx]
test r15, r15
je 0x140002c55
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.1400adb90
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140002c66
jmp 0x140002cf6
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140002cf6
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp qword [rcx], rdx
jne 0x140002c8f
mov edx, dword [rbx + 0x90]
mov r8, qword [rbx + 0x88]
mov qword [rcx], r8
mov qword [rax], r8
sub edx, r8d
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word cs:[rax + rax]
cmp r14, 0x1000
jb 0x140002cd1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x140002ca0
jmp 0x140002cf6
test r14, r14
je 0x140002cf3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x140002cf6
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140002d10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002d46
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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 [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002d93
test rsi, rsi
jle 0x140002d93
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x140002d93
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call fcn.1400adb90
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x140002d9b
jmp 0x140002dbb
mov r14, rsi
test r14, r14
jle 0x140002dbb
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140002dbb
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140002dd0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [rcx + 0x38]
lea r13, [rcx + 0x70]
cmp qword [rax], r13
mov rax, qword [rcx + 0x68]
sete bpl
cmp r9d, 1
sete r15b
test rax, rax
sete r12b
cmp qword [rcx + 0x80], 0
je 0x140002ef7
mov ebx, r9d
mov r14, r8
mov rdi, rcx
test rax, rax
je 0x140002eb6
cmp byte [rdi + 0x71], 0
je 0x140002eb6
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002ef7
mov rcx, qword [rdi + 0x68]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x40]
cmp eax, 3
je 0x140002eb2
cmp eax, 1
lea rcx, [rsp + 0x40]
je 0x140002e7f
test eax, eax
jne 0x140002ef7
mov byte [rdi + 0x71], 0
mov rax, qword [rsp + 0x38]
sub rax, rcx
je 0x140002eaa
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x30], rax
jne 0x140002ef7
cmp byte [rdi + 0x71], 0
jne 0x140002ef7
jmp 0x140002eb6
mov byte [rdi + 0x71], 0
and r15b, r12b
and bpl, r15b
movzx eax, bpl
sub r14, rax
jne 0x140002eca
cmp ebx, 1
je 0x140002ee1
mov rcx, qword [rdi + 0x80]
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x140002ef7
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x140002f19
mov qword [rsi], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x18]
cmp qword [rax], r13
jne 0x140002f41
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rax, qword [rdi + 0x74]
mov rcx, qword [rsp + 0x40]
mov qword [rsi], rcx
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
jmp 0x140002f05
Function at 0x140002f60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rax, qword [r8 + 8]
add rax, qword [r8]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x80], 0
je 0x14000303a
mov rbx, r8
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140003024
cmp byte [rdi + 0x71], 0
je 0x140003024
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000303a
mov rcx, qword [rdi + 0x68]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
lea r14, [rsp + 0x40]
mov r8, r14
call qword [rax + 0x40]
cmp eax, 3
je 0x140003020
cmp eax, 1
je 0x140002ff1
test eax, eax
jne 0x14000303a
mov byte [rdi + 0x71], 0
mov r15, qword [rsp + 0x38]
sub r15, r14
je 0x140003018
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14000303a
cmp byte [rdi + 0x71], 0
jne 0x14000303a
jmp 0x140003024
mov byte [rdi + 0x71], 0
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
test eax, eax
je 0x140003057
mov qword [rsi], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, dword [rbx + 0x10]
lea rax, [rdi + 0x74]
mov dword [rdi + 0x74], ecx
mov ecx, dword [rbx + 0x14]
mov dword [rdi + 0x78], ecx
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x70]
cmp qword [rcx], rdx
jne 0x140003094
mov edx, dword [rdi + 0x90]
mov r8, qword [rdi + 0x88]
mov qword [rcx], r8
mov rcx, qword [rdi + 0x38]
mov qword [rcx], r8
sub edx, r8d
mov rcx, qword [rdi + 0x50]
mov dword [rcx], edx
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
jmp 0x140003048
Function at 0x1400188d0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401b0870]
mov ecx, dword [0x1401faa68]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400189d5
cmp byte [0x1401b0874], 0
jne 0x1400189cd
mov rdi, qword [0x1401b0868]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
test rax, rax
je 0x140018979
movzx ebx, byte [rsi]
test bl, bl
js 0x140018967
cmp byte [rsi + 1], 0x3a
jne 0x140018967
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 5]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1401b0860], rax
mov word [rax], 0x2f2f
mov byte [rax + 2], bl
mov word [rax + 3], 0x2f7c
add rsi, 2
lea rcx, [rax + 5]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
jmp 0x14001899a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [0x1401b0860], rax
jmp 0x14001899a
lea rax, str.RMANTREE
cmp rdi, rax
je 0x14001899a
lea rcx, str.RMANTREE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
test rax, rax
jne 0x140018921
mov rcx, qword [0x1401b0860]
lea rdx, str.rendermn.ini
call fcn.14001ecb0
call fcn.14001a690
lea rcx, str._messages_disable
call fcn.14001ed20
mov rcx, rax
call fcn.14003e250
mov byte [0x1401b0874], 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401b0870]
call fcn.140117f2c
cmp dword [0x1401b0870], 0xffffffff
jne 0x1400188fc
lea rax, str.RMANTREE
mov qword [0x1401b0868], rax
lea rcx, [0x1401b0870]
call fcn.140117ec0
jmp 0x1400188fc
Function at 0x1400255e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
cmp dword [rcx + 0x2c], edx
jge 0x140025614
movsxd rdx, ebx
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x1400256c1
mov dword [rsi + 0x2c], ebx
mov eax, dword [rsi + 4]
mov edi, 0xfffffffa
test al, 2
jne 0x1400256fb
test al, 0x40
jne 0x1400256b2
movsxd r14, ebx
mov r15, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop dword [rax]
call r15
mov dword [rax], 0
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140025670
mov r8d, ebx
call fcn.1400592e0
cmp eax, 0xffffffff
je 0x1400256a0
jmp 0x1400256c8
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140025688
mov r8, r14
call fcn.140041a50
cmp eax, 0xffffffff
je 0x1400256a0
jmp 0x1400256c8
mov ecx, dword [rsi]
mov r8d, ebx
call r12
cmp eax, 0xffffffff
jne 0x1400256c8
nop word cs:[rax + rax]
call r15
cmp dword [rax], 0xb
je 0x140025640
call r15
cmp dword [rax], 4
je 0x140025640
jmp 0x1400256eb
or eax, 2
mov dword [rsi + 4], eax
mov dword [rsi + 0x28], 0
jmp 0x1400256fb
mov edi, 0xfffffffe
jmp 0x1400256fb
test eax, eax
jne 0x1400256d9
or byte [rsi + 4], 2
mov dword [rsi + 0x28], 0
jmp 0x1400256fb
js 0x1400256eb
mov dword [rsi + 0x28], eax
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x20], rax
movzx edi, byte [rax]
jmp 0x1400256fb
or byte [rsi + 4], 6
mov dword [rsi + 0x28], 0
mov edi, 0xfffffff9
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140025ac0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov esi, 1
test eax, eax
jns 0x140025aff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
jne 0x140025afd
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
movzx eax, word [rsp + 0x2e]
test eax, 0x4000
jne 0x140025aff
xor esi, esi
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140027130
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
cmp dword [rcx + 0x2c], edx
jge 0x140027162
movsxd rdx, edi
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsi + 0x18], rax
test rax, rax
je 0x140027211
mov dword [rsi + 0x2c], edi
mov ecx, dword [rsi + 4]
mov eax, 0xfffffffa
test cl, 2
jne 0x140027250
test cl, 0x40
jne 0x140027202
movsxd rbx, edi
mov r14, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
nop dword [rax]
call r14
mov dword [rax], 0
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1400271c0
mov r8d, edi
call fcn.1400592e0
cmp eax, 0xffffffff
je 0x1400271f0
jmp 0x140027218
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400271d8
mov r8, rbx
call fcn.140041a50
cmp eax, 0xffffffff
je 0x1400271f0
jmp 0x140027218
mov ecx, dword [rsi]
mov r8d, edi
call r15
cmp eax, 0xffffffff
jne 0x140027218
nop word cs:[rax + rax]
nop
call r14
cmp dword [rax], 0xb
je 0x140027190
call r14
cmp dword [rax], 4
je 0x140027190
jmp 0x140027240
or ecx, 2
mov dword [rsi + 4], ecx
mov dword [rsi + 0x28], 0
jmp 0x140027250
mov eax, 0xfffffffe
jmp 0x140027250
test eax, eax
jne 0x14002722e
or byte [rsi + 4], 2
mov dword [rsi + 0x28], 0
mov eax, 0xfffffffa
jmp 0x140027250
js 0x140027240
mov dword [rsi + 0x28], eax
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x20], rax
movzx eax, byte [rax]
jmp 0x140027250
or byte [rsi + 4], 6
mov dword [rsi + 0x28], 0
mov eax, 0xfffffff9
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400321b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rdx, [0x1401247bc]
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400321fc
lea rdx, [0x1401247bf]
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400321fc
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdi, rax
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140032262
lea ebx, [rdi + rax]
inc ebx
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140032262
mov rdi, rax
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140032262
inc rsi
mov rcx, rdi
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rsi
jmp 0x140032264
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140032290
Capabilities:
Check if file exists

Disassembly:
push rsi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [0x1401b0d50]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
mov ecx, 0x1200
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [rax - 1]
cmp ecx, 2
jl 0x1400322f3
mov ecx, ecx
cmp byte [rcx + rsi], 0xa
jne 0x1400322f3
add eax, 0xfffffffe
cmp byte [rax + rsi], 0xd
jne 0x1400322f3
mov byte [rax + rsi], 0
lea rax, [0x1401b0d50]
add rsp, 0x40
pop rsi
ret

Function at 0x140032300
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rdx
lea rcx, [rsp + 0x20]
call qword [sym.imp.libpxrcore.dll_bool___cdecl_pxrcore::v1_0::SampleProcessMem_struct_pxrcore::v1_0::ProcessMemInfo____ptr64_]
test al, al
je 0x14003237c
cvtsi2sd xmm2, qword [rsp + 0x20]
movsd xmm6, qword [0x1401247c8]
mulsd xmm2, xmm6
lea rdx, [0x1401247d0]
mov rcx, rsi
movq r8, xmm2
call fcn.140008d40
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x30]
mulsd xmm2, xmm6
lea rdx, str._______Max_resident_mem:__5.2f_MB_n
mov rcx, rsi
movq r8, xmm2
call fcn.140008d40
mov r8, qword [rsp + 0x38]
lea rdx, str.____________Page_faults:__lld_n
mov rcx, rsi
call fcn.140008d40
jmp 0x140032396
lea rcx, str._nError_accessing_process_info._Memory_statistics_unavailable._n
mov edx, 0x3e
mov r8d, 1
mov r9, rsi
call fcn.140119584
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rsi
ret
Function at 0x140041a50
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x58]
jmp 0x140041a60
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x64]
cmp eax, 0x63
je 0x140041adc
cmp eax, 8
je 0x140041adc
test eax, eax
jne 0x140041c48
mov rax, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x78]
mov r15, rax
sub r15, rcx
add rcx, r14
cmp rcx, rax
cmovle r15, r14
test r15, r15
je 0x140041c48
mov rax, qword [rdi]
mov r9, qword [rax + 8]
mov edx, 1
mov rcx, rbx
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp rax, r15
jne 0x140041c9d
add qword [rdi + 0x78], rsi
jmp 0x140041c4a
test r14, r14
je 0x140041c48
lea r15, [rdi + 8]
xor esi, esi
nop dword [rax + rax]
cmp byte [rdi + 0x60], 0
mov r12, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x88]
je 0x140041b30
cmp dword [rdi + 0x10], 0
jne 0x140041b30
mov eax, dword [rdi + 0x90]
lea rcx, [rax + rdx]
cmp rcx, r12
je 0x140041c4a
sub r12, rcx
jne 0x140041b3f
jmp 0x140041b94
mov eax, dword [rdi + 0x90]
lea rcx, [rax + rdx]
sub r12, rcx
je 0x140041b94
lea rcx, [rbx + rsi]
cmp r12, r14
mov r13, r14
cmovb r13, r12
add rdx, rax
mov r8, r13
call fcn.1400adb90
add dword [rdi + 0x90], r13d
cmp r12, r14
ja 0x140041b80
mov rax, qword [rdi + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x20], 0x4000
mov dword [rdi + 0x90], 0
test r13d, r13d
jle 0x140041b94
mov eax, r13d
add rsi, rax
sub r14, rax
je 0x140041c4a
mov ebp, 4
cmp byte [rdi + 0x60], 0
jne 0x140041c10
mov ebp, 2
cmp dword [rdi + 0x10], 0
jne 0x140041c10
mov rcx, qword [rdi + 0x80]
mov qword [rdi + 8], rcx
mov rax, qword [rdi + 0x68]
mov r8, qword [rdi + 0x78]
lea r9, [r8 + 0x2000]
mov edx, 0x2000
cmp r9, rax
jle 0x140041bdc
sub rax, r8
mov byte [rdi + 0x60], 1
mov rdx, rax
test eax, eax
jle 0x140041c10
mov rax, qword [rdi]
mov r12d, edx
mov r9, qword [rax + 8]
mov edx, 1
mov r8, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r13, rax
cmp rax, r12
jne 0x140041c34
test r13, r13
jle 0x140041c10
add qword [rdi + 0x78], r13
add dword [rdi + 0x10], r13d
nop dword [rax]
mov rcx, r15
mov edx, ebp
call fcn.14005f580
cmp eax, 2
jb 0x140041af0
cmp eax, 0xfffffffb
jne 0x140041c5e
cmp dword [rdi + 0x20], 0
je 0x140041af0
jmp 0x140041c62
lea rcx, str.ZipFileRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
test r13, r13
jg 0x140041c01
jmp 0x140041c10
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jns 0x140041c4a
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140041c4a
mov r9, qword [rdi]
cmp qword [r9 + 0x28], 0x10
jb 0x140041c7b
mov r9, qword [r9 + 0x10]
jmp 0x140041c7f
add r9, 0x10
mov qword [rsp + 0x20], rax
lea rcx, str.U10009
mov edx, 2
mov r8d, 2
call fcn.14003e350
jmp 0x140041c4a
lea rcx, str.ZipFileRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140041ad3
Function at 0x140041a60
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x58]
jmp 0x140041a60
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x64]
cmp eax, 0x63
je 0x140041adc
cmp eax, 8
je 0x140041adc
test eax, eax
jne 0x140041c48
mov rax, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x78]
mov r15, rax
sub r15, rcx
add rcx, r14
cmp rcx, rax
cmovle r15, r14
test r15, r15
je 0x140041c48
mov rax, qword [rdi]
mov r9, qword [rax + 8]
mov edx, 1
mov rcx, rbx
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
cmp rax, r15
jne 0x140041c9d
add qword [rdi + 0x78], rsi
jmp 0x140041c4a
test r14, r14
je 0x140041c48
lea r15, [rdi + 8]
xor esi, esi
nop dword [rax + rax]
cmp byte [rdi + 0x60], 0
mov r12, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x88]
je 0x140041b30
cmp dword [rdi + 0x10], 0
jne 0x140041b30
mov eax, dword [rdi + 0x90]
lea rcx, [rax + rdx]
cmp rcx, r12
je 0x140041c4a
sub r12, rcx
jne 0x140041b3f
jmp 0x140041b94
mov eax, dword [rdi + 0x90]
lea rcx, [rax + rdx]
sub r12, rcx
je 0x140041b94
lea rcx, [rbx + rsi]
cmp r12, r14
mov r13, r14
cmovb r13, r12
add rdx, rax
mov r8, r13
call fcn.1400adb90
add dword [rdi + 0x90], r13d
cmp r12, r14
ja 0x140041b80
mov rax, qword [rdi + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x20], 0x4000
mov dword [rdi + 0x90], 0
test r13d, r13d
jle 0x140041b94
mov eax, r13d
add rsi, rax
sub r14, rax
je 0x140041c4a
mov ebp, 4
cmp byte [rdi + 0x60], 0
jne 0x140041c10
mov ebp, 2
cmp dword [rdi + 0x10], 0
jne 0x140041c10
mov rcx, qword [rdi + 0x80]
mov qword [rdi + 8], rcx
mov rax, qword [rdi + 0x68]
mov r8, qword [rdi + 0x78]
lea r9, [r8 + 0x2000]
mov edx, 0x2000
cmp r9, rax
jle 0x140041bdc
sub rax, r8
mov byte [rdi + 0x60], 1
mov rdx, rax
test eax, eax
jle 0x140041c10
mov rax, qword [rdi]
mov r12d, edx
mov r9, qword [rax + 8]
mov edx, 1
mov r8, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r13, rax
cmp rax, r12
jne 0x140041c34
test r13, r13
jle 0x140041c10
add qword [rdi + 0x78], r13
add dword [rdi + 0x10], r13d
nop dword [rax]
mov rcx, r15
mov edx, ebp
call fcn.14005f580
cmp eax, 2
jb 0x140041af0
cmp eax, 0xfffffffb
jne 0x140041c5e
cmp dword [rdi + 0x20], 0
je 0x140041af0
jmp 0x140041c62
lea rcx, str.ZipFileRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
test r13, r13
jg 0x140041c01
jmp 0x140041c10
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
jns 0x140041c4a
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140041c4a
mov r9, qword [rdi]
cmp qword [r9 + 0x28], 0x10
jb 0x140041c7b
mov r9, qword [r9 + 0x10]
jmp 0x140041c7f
add r9, 0x10
mov qword [rsp + 0x20], rax
lea rcx, str.U10009
mov edx, 2
mov r8d, 2
call fcn.14003e350
jmp 0x140041c4a
lea rcx, str.ZipFileRead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x140041ad3
Function at 0x140042390
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, rdx
mov rsi, rcx
cmp dword [rcx + 0x58], 0
je 0x14004240f
mov ebp, r8d
mov eax, dword [rsi + 0x18]
xor edi, edi
cmp rax, 0x3fff
ja 0x14004248f
mov rcx, qword [rsi + 0x80]
mov rdx, qword [rsi + 0x88]
sub rdx, rcx
mov r14, rdx
sub r14, rax
cmp byte [rsi + 0x60], 0
je 0x140042459
lea r15, [rsi + 0x80]
add rdx, 0x4000
mov rcx, r15
call fcn.1400433c0
add dword [rsi + 0x18], 0x4000
add r14, qword [r15]
mov qword [rsi + 0x10], r14
test bpl, bpl
jne 0x140042498
jmp 0x140042556
xor edi, edi
cmp byte [rsi + 0x60], 0
je 0x140042556
mov rcx, qword [rsi + 0x80]
mov r14, qword [rsi + 0x88]
cmp rcx, r14
je 0x140042556
sub r14, rcx
mov r9, qword [rbx + 8]
mov edx, 1
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
jne 0x140042569
add qword [rsi + 0x78], r14
jmp 0x140042556
cmp rdx, rax
je 0x14004248f
mov r9, qword [rbx + 8]
mov edx, 1
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
jne 0x14004257d
add qword [rsi + 0x78], r14
mov dword [rsi + 0x18], 0x4000
mov rax, qword [rsi + 0x80]
mov qword [rsi + 0x10], rax
test bpl, bpl
je 0x140042556
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r14, str.ZipFileWrite
jmp 0x1400424ca
add qword [rsi + 0x78], r15
mov dword [rsi + 0x18], 0x4000
mov rax, qword [rsi + 0x80]
mov qword [rsi + 0x10], rax
test ebp, ebp
jne 0x14004252b
test edi, edi
jne 0x140042540
mov rcx, rsi
mov edx, 4
call fcn.140061230
mov ebp, eax
xor edi, edi
mov eax, dword [rsi + 0x18]
mov r13b, 1
cmp ebp, 1
je 0x1400424ee
test eax, eax
jne 0x1400424c6
mov rcx, qword [rsi + 0x80]
mov r15, qword [rsi + 0x88]
sub r15, rcx
sub r15, rax
je 0x1400424c6
mov r9, qword [rbx + 8]
mov edx, 1
mov r8, r15
call r12
cmp rax, r15
je 0x1400424b0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov edi, 0xffffffff
xor r13d, r13d
jmp 0x1400424c6
mov rcx, rsi
cmp ebp, 1
jne 0x14004254f
call fcn.140060c90
test r13b, r13b
cmovne edi, eax
jmp 0x140042556
mov rcx, rsi
call fcn.140060c90
mov edi, 0xffffffff
jmp 0x140042556
call fcn.140060c90
mov edi, ebp
mov eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.ZipFileWrite
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov edi, 0xffffffff
jmp 0x140042556
lea rcx, str.ZipFileWrite
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov edi, 0xffffffff
test bpl, bpl
jne 0x140042498
jmp 0x140042556