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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rdx, [0x1400f4cd0]
cmp qword [0x1400f4ce8], 0xf
cmova rdx, qword [0x1400f4cd0]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
mov r8, qword [0x1400f4ce0]
test r8, r8
je 0x1400774df
movzx eax, byte [rdx + rcx]
xor rbx, rax
movabs r9, 0x100000001b3
imul rbx, r9
inc rcx
cmp rcx, r8
jb 0x1400774c2
mov r9, rbx
lea r8, [0x1400f4cd0]
lea rdx, [rsp + 0x20]
call fcn.140077bec
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140077509
mov qword [rsi], rax
mov byte [rsi + 8], 0
jmp 0x14007765f
movabs rax, 0x3ffffffffffffff
cmp qword [0x14014f350], rax
jne 0x14007752a
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x14014f348]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x40
call fcn.140077cd0
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rdx, [0x1400f4cd0]
lea rcx, [rax + 0x10]
call fcn.140002f60
and qword [rdi + 0x34], 0
and dword [rdi + 0x30], 0
and dword [rdi + 0x34], 0
and dword [rdi + 0x38], 0
mov r8, qword [0x14014f350]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140077589
cvtsi2ss xmm0, rcx
jmp 0x14007759e
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x14014f378]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400775b4
cvtsi2ss xmm1, rcx
jmp 0x1400775c9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x14014f340]
jbe 0x1400775fc
call fcn.14007790c
mov r9, rbx
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.140077bec
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov r8, qword [0x14014f350]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x14014f350], r8
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rcx + 8], rdi
and rbx, qword [0x14014f370]
add rbx, rbx
mov rax, qword [0x14014f358]
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x14014f348]
jne 0x140077641
mov qword [rax + rbx*8], rdi
jmp 0x140077653
cmp r8, rcx
jne 0x14007764c
mov qword [rax + rbx*8], rdi
jmp 0x140077658
cmp qword [rax + rbx*8 + 8], rdx
jne 0x140077658
mov qword [rax + rbx*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140077678
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1400776a0
mov rdx, qword [r8]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
cmp qword [r8 + 0x10], rcx
jbe 0x1400776d0
movzx eax, byte [rdx + rcx]
xor rbx, rax
movabs r8, 0x100000001b3
imul rbx, r8
inc rcx
cmp rcx, qword [r14 + 0x10]
jb 0x1400776b2
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x20]
call fcn.140077bec
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400776f6
mov qword [rsi], rax
mov byte [rsi + 8], 0
jmp 0x14007786f
movabs rax, 0x3ffffffffffffff
cmp qword [0x14014f350], rax
jne 0x140077717
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x14014f348]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x40
call fcn.140077cd0
mov rdi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
and qword [rax + 0x20], 0
and qword [rax + 0x28], 0
movups xmm0, xmmword [r14]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rax + 0x20], xmm1
and qword [r14 + 0x10], 0
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
and qword [rax + 0x34], 0
and dword [rax + 0x30], 0
and dword [rax + 0x34], 0
and dword [rax + 0x38], 0
mov r8, qword [0x14014f350]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140077799
cvtsi2ss xmm0, rcx
jmp 0x1400777ae
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x14014f378]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400777c4
cvtsi2ss xmm1, rcx
jmp 0x1400777d9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x14014f340]
jbe 0x14007780c
call fcn.14007790c
lea r8, [rdi + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x30]
call fcn.140077bec
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov r8, qword [0x14014f350]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x14014f350], r8
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rcx + 8], rdi
and rbx, qword [0x14014f370]
add rbx, rbx
mov rax, qword [0x14014f358]
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x14014f348]
jne 0x140077851
mov qword [rax + rbx*8], rdi
jmp 0x140077863
cmp r8, rcx
jne 0x14007785c
mov qword [rax + rbx*8], rdi
jmp 0x140077868
cmp qword [rax + rbx*8 + 8], rdx
jne 0x140077868
mov qword [rax + rbx*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140078a58
Capabilities:
Parse pe header

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

Function at 0x140078c90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140078cca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140078ccf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140078d18
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007ed50]
cmp byte [rcx + rax], 0
je 0x140078d18
dec r8
sub rdx, 1
jne 0x140078cfe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400794dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140078da8
mov ebx, eax
test eax, eax
jne 0x14007950c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14007956f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140079566
test al, 0x10
je 0x140079566
bt eax, 0xa
jae 0x14007955f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140079580
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14007955b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14007955b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140079566
and dword [rsp + 0x3c], 0
jmp 0x14007956b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400059d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x410
xor esi, esi
rep stosb byte [rdi], al
movzx ecx, word [0x14000d980]
lea rax, [rsp + 0x20]
test cx, cx
je 0x140005a40
lea rdx, [0x14000d980]
lea rdi, [rsp + 0x20]
sub rdx, rdi
nop dword [rax]
nop dword [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140005a30
mov word [rax], si
lea rdi, [rsp + 0x20]
movzx ecx, word [rsp + 0x20]
test cx, cx
je 0x140005a5b
add rdi, 2
cmp word [rdi], si
jne 0x140005a52
lea rax, [rsp + 0x20]
sub rdi, rax
lea rax, [rsp + 0x20]
sar rdi, 1
test cx, cx
je 0x140005a79
add rax, 2
cmp word [rax], si
jne 0x140005a70
lea rdx, str.dbghelp.dll
mov ecx, 0x64
sub rdx, rax
nop dword [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140005a90
lea rcx, [rsp + 0x20]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140005c18
add rdi, rdi
cmp rdi, 0x410
jae 0x140005c3f
mov word [rsp + rdi + 0x20], si
lea rax, [rsp + 0x20]
cmp word [rsp + 0x20], si
je 0x140005ae9
nop dword [rax + rax]
add rax, 2
cmp word [rax], si
jne 0x140005ae0
lea rdx, str.symsrv.dll
mov ecx, 0x73
sub rdx, rax
nop dword [rax + rax]
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140005b00
lea rcx, [rsp + 0x20]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140005c18
lea rdx, str.SymSetOptions
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d958], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymInitializeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d908], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymLoadModuleExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d8f0], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymEnumSymbolsW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d900], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymUnloadModule64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d918], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymFromAddrW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d920], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymCleanup
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d8f8], rax
test rax, rax
je 0x140005c18
lea rdx, str.SymGetSymbolFileW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000d910], rax
test rax, rax
je 0x140005c18
mov esi, 1
mov eax, esi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400081d0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140008304
int3
Function at 0x140001050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.2.11
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.1400089e0
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140001d00
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140010084
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140001cc0
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140010084
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140001cc0
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
mov eax, 0x2000
cmp r12, rax
mov rbx, r12
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000c1b8
cmp rax, rbx
jne 0x14000125e
mov rcx, qword [rdi]
call fcn.14000bf2c
test eax, eax
jne 0x14000125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140006e90
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.14000cbc0
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000bf2c
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000aa50
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140001d00
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.1400086c0
mov rcx, r13
call fcn.140010070
mov rcx, rbp
call fcn.140010070
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov rax, qword [rcx]
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400012f8
add rcx, 0x78
lea rdx, [0x140025530]
call fcn.140002d80
mov qword [r14], rax
test rax, rax
jne 0x1400012f8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001d00
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000c488
test eax, eax
jns 0x14000132f
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001cc0
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140010084
mov r15, rax
test rax, rax
jne 0x140001364
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140001cc0
jmp 0x140001414
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
jne 0x140001395
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
je 0x140001400
jmp 0x1400013f5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x140001400
mov r12d, 0x2000
nop word [rax + rax]
mov r9, qword [r14]
cmp rbx, r12
mov rdi, rbx
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.14000c1b8
cmp rax, 1
jb 0x1400013de
add rbp, rdi
sub rbx, rdi
jne 0x1400013b0
jmp 0x140001400
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140001cc0
mov rcx, r15
call fcn.140010070
xor r15d, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rcx, qword [r14]
test rcx, rcx
je 0x140001428
call fcn.14000be9c
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140001440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
call fcn.1400057e0
cmp eax, 0xffffffff
jne 0x140001462
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
lea rcx, [r14 + 0x3078]
lea rbp, [rdi + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140005b00
mov r12, rax
test rax, rax
jne 0x1400014a7
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140001cc0
lea eax, [r12 - 1]
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x140025530]
call fcn.140002d80
mov qword [r14], rax
test rax, rax
jne 0x1400014e0
mov rdx, rbp
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001d00
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000c488
test eax, eax
jns 0x140001516
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001cc0
mov ebx, 0xffffffff
jmp 0x140001617
cmp byte [rdi + 0x10], 1
jne 0x140001534
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140001050
mov ebx, eax
jmp 0x140001617
mov qword [rsp + 0x28], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x20], r15
mov ecx, r13d
call fcn.140010084
mov r15, rax
test rax, rax
jne 0x140001575
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140001cc0
lea ebx, [r15 - 1]
jmp 0x14000160d
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x140001605
mov qword [rsp + 0x58], rsi
nop word [rax + rax]
mov r9, qword [r14]
cmp rdi, r13
mov rsi, rdi
mov r8d, 1
cmova rsi, r13
mov rcx, r15
mov rdx, rsi
call fcn.14000c1b8
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000cbc0
cmp rax, 1
jb 0x1400015d5
sub rdi, rsi
jne 0x140001590
jmp 0x140001600
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400015f3
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r8, rbp
call fcn.140001cc0
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.140010070
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000be9c
mov qword [r14], 0
mov rcx, r12
call fcn.14000be9c
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x140005570
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140006b10
mov rdi, rax
test rax, rax
jne 0x1400055b9
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001d00
xor eax, eax
jmp 0x1400056a2
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x2020]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140010070
test ebx, ebx
jne 0x1400055f9
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001d00
xor eax, eax
jmp 0x14000569a
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
xor ecx, ecx
call fcn.140011178
mov rbx, rax
test rax, rax
jne 0x140005626
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001d00
xor eax, eax
jmp 0x14000569a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
call fcn.14000b320
mov edx, 0x5c
mov rcx, rbx
call fcn.14000b274
mov rdi, rax
test rax, rax
je 0x14000568c
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140011d1c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000b274
mov rdi, rax
test rax, rax
jne 0x140005650
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009d00
add rsp, 0x4030
pop rdi
ret

Function at 0x1400056c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140025530]
call fcn.140002d80
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140005b00
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400057b3
mov rcx, rsi
test rax, rax
je 0x1400057bb
call fcn.14000bf00
test eax, eax
jne 0x14000579f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000c1b8
test rax, rax
jne 0x14000575e
mov rcx, rsi
call fcn.14000bf2c
test eax, eax
je 0x140005784
mov rcx, rsi
jmp 0x140005795
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000cbc0
test rax, rax
je 0x140005792
mov rcx, rbx
call fcn.14000bf2c
test eax, eax
jne 0x140005792
mov rcx, rsi
call fcn.14000bf00
test eax, eax
je 0x140005730
jmp 0x14000579f
mov rcx, rbx
call fcn.140013668
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000be9c
mov rcx, rbx
call fcn.14000be9c
mov eax, edi
jmp 0x1400057c5
test rbx, rbx
je 0x1400057c0
mov rcx, rbx
call fcn.14000be9c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140009d00
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005840
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.140009c90
sub rsp, rax
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x1400058cb
lea rcx, [0x140027a04]
call fcn.140005a50
mov rcx, rbp
mov rsi, rax
call fcn.140005570
mov rdi, rax
test rax, rax
je 0x14000599f
mov rdx, rax
lea rcx, [0x140027a08]
call fcn.140012410
mov rcx, rdi
mov ebx, eax
call fcn.140010070
test ebx, ebx
je 0x1400058d0
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140001d00
xor eax, eax
jmp 0x140005a28
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.1400063e0
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14001364c
mov rcx, rax
mov rdi, rax
call fcn.1400067c0
test eax, eax
je 0x1400059a6
mov rcx, rdi
call fcn.140010070
inc ebx
cmp ebx, 5
jl 0x140005900
test rbp, rbp
je 0x14000599f
xor r8d, r8d
lea rdx, [0x140027a04]
xor ecx, ecx
call fcn.140006b10
test rsi, rsi
je 0x140005989
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140006b10
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012410
mov rcx, rdi
call fcn.140010070
mov rcx, rbx
call fcn.140010070
mov rcx, rsi
call fcn.140010070
xor eax, eax
jmp 0x140005a28
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140010070
xor eax, eax
jmp 0x140005a28
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.140006c20
mov rcx, rdi
call fcn.140010070
test rbp, rbp
je 0x140005a23
xor r8d, r8d
lea rdx, [0x140027a04]
xor ecx, ecx
call fcn.140006b10
test rsi, rsi
je 0x140005a0d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140006b10
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012410
mov rcx, rdi
call fcn.140010070
mov rcx, rbx
call fcn.140010070
mov rcx, rsi
jmp 0x140005a1e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140010070
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140009d00
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret