joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400156c0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
lea rcx, [rbp - 0x6f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x70], 0
call fcn.1400033f0
xor eax, eax
movdqa xmm0, xmmword [0x14001f340]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x14001f350]
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x898e93b4
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x34], 0xb991919c
mov dword [rsp + 0x38], 0x98899c
mov dword [rsp + 0x60], 0xa1899b92
mov dword [rsp + 0x64], 0x9394aaa1
mov dword [rsp + 0x68], 0x8e8a9299
mov byte [rsp + 0x6c], 0
mov word [rbp - 0x80], 0x9392
mov byte [rbp - 0x7e], 0
mov word [rsp + 0x40], bx
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x51]
mov ecx, recv
nop
xor byte [rax - 1], 0xfd
xor byte [rax], 0xfd
lea rax, [rax + 2]
dec rcx
jne 0x140015770
lea rax, [rsp + 0x70]
mov ecx, sendto
nop word [rax + rax]
xor byte [rax], 0xfd
lea rax, [rax + 1]
dec rcx
jne 0x140015790
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x50]
lea rdx, [0x14001d62c]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_inet_addr
xor byte [rax], 0xfd
lea rax, [rax + 1]
dec rcx
jne 0x1400157c1
lea rax, [rbp + 0x3c8]
lea r9d, [rcx + 1]
lea rdx, [rbp - 0x70]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x3b8], ebx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x3b0], 4
mov qword [rbp + 0x3c8], 0xffffffff80000002
or edi, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140015870
mov rcx, qword [rbp + 0x3c8]
lea rax, [rbp + 0x3b0]
lea r9, [rbp + 0x3c0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp + 0x3c8]
test eax, eax
cmove edi, dword [rbp + 0x3b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 4
jne 0x140015870
cmp dword [rbp + 0x3c0], edi
jne 0x140015870
mov ebx, dword [rbp + 0x3b8]
movzx eax, word [rsp + 0x4e]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x74], eax
movzx eax, word [rsp + 0x4c]
mov dword [rsp + 0x78], eax
movzx eax, word [rsp + 0x4a]
mov dword [rsp + 0x7c], eax
movzx eax, word [rsp + 0x48]
mov dword [rbp - 0x80], eax
movzx eax, word [rsp + 0x46]
mov dword [rbp - 0x7c], eax
call fcn.1400165d0
add rsp, 0x490
pop rdi
pop rbx
pop rbp
ret
Function at 0x140015930
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xc0
xor ebx, ebx
mov eax, 0x94
dec rax
mov byte [rsp + rax + 0x20], bl
jne 0x140015940
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140015aa5
cmp dword [rsp + 0x30], 2
jne 0x140015aa5
movzx eax, byte [rsp + 0xba]
cmp al, 1
jne 0x140015a2d
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x1400159aa
mov eax, dword [rsp + 0x28]
cmp eax, 1
je 0x14001599a
cmp eax, 2
jne 0x140015aa5
mov ebx, 2
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 6
jne 0x140015a0a
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400159c7
mov ebx, 4
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 1
jne 0x1400159dc
mov ebx, 6
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 2
jne 0x1400159f1
mov ebx, 7
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 3
jne 0x140015aa5
mov ebx, 8
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 0xa
jne 0x140015aa5
cmp dword [rsp + 0x28], ebx
jne 0x140015aa5
mov ebx, 9
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
sub al, 2
cmp al, 1
ja 0x140015aa5
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x140015a53
cmp dword [rsp + 0x28], 2
jne 0x140015aa5
mov ebx, 3
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 6
jne 0x140015aa5
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140015a70
mov ebx, 5
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 1
jne 0x140015a85
mov ebx, 0xa
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
cmp eax, 2
jne 0x140015a9a
mov ebx, reloc.WS2_32.dll_inet_addr
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmp eax, 3
cmove ebx, ecx
mov eax, ebx
add rsp, 0xc0
pop rbx
ret
Function at 0x140015f90
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
xor r13d, r13d
mov rax, rdx
mov r15, r8
mov qword [r11 - 0x48], r13
mov r12, rcx
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov esi, r13d
mov dword [r11 - 0x38], r13d
or rbx, 0xffffffffffffffff
mov dword [r11 + 0x20], r13d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, rbx
je 0x140016114
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r14, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 9]
mov rcx, rax
mov r8, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400160f8
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400160e6
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x98]
mov rdx, rsi
mov rcx, r12
call fcn.140016160
test eax, eax
je 0x1400160d4
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 3]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400160c2
mov r8d, dword [rsp + 0x98]
lea r9, [rsp + 0x98]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x80]
jmp 0x14001611c
mov rbp, qword [rsp + 0x98]
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140016160
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rdi, r9
mov rsi, rcx
mov rbp, rdx
lea rcx, [rax - 0x20]
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x28], rbx
mov dword [rax - 0x38], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14001627a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14001626d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140016262
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 1]
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140016262
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x70]
lea r8d, [rbx + 1]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140016255
mov eax, dword [rsp + 0x70]
mov ebx, 1
mov dword [rdi], eax
jmp 0x140016257
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400165d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r8d, 0xffffffff
cmp byte [0x140048a72], 0
mov r10, rcx
lea r11, [0x140048a80]
jne 0x140016623
xor edx, edx
mov r9, r11
nop dword [rax]
mov eax, edx
mov ecx, 8
test al, 1
je 0x140016604
shr eax, 1
xor eax, 0xedb88320
jmp 0x140016606
shr eax, 1
add ecx, r8d
jne 0x1400165f7
inc edx
mov dword [r9], eax
add r9, 4
cmp edx, 0x100
jb 0x1400165f0
mov byte [0x140048a72], 1
lea r9, [r10 + 1]
mov r10d, 4
nop dword [rax]
movzx ecx, byte [r9 - 1]
mov eax, r8d
shr r8d, 8
xor rcx, rax
lea r9, [r9 + 6]
movzx eax, cl
movzx ecx, byte [r9 - 6]
mov edx, dword [r11 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 5]
mov r8d, dword [r11 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov edx, dword [r11 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov r8d, dword [r11 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov edx, dword [r11 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r8d, dword [r11 + rax*4]
xor r8d, edx
dec r10
jne 0x140016630
not r8d
mov eax, r8d
ret

Function at 0x1400167c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x4100
call fcn.140007d80
sub rsp, rax
xor edi, edi
lea r8d, [rax - 0x6b]
lea rcx, [rsp + 0x61]
xor edx, edx
mov dword [rsp + 0x4110], edi
mov byte [rsp + 0x60], dil
call fcn.1400033f0
xor eax, eax
lea rcx, [rsp + 0x50]
mov word [rsp + 0x50], di
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5c]
movzx edx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5e]
movzx r10d, word [rsp + 0x58]
movzx r11d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
lea rbx, str.run_1
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
lea rcx, [rsp + 0x60]
lea rdx, str._n___04d__02d__02d____02d__02d__02d__03d__________s____r_n
mov dword [rsp + 0x20], r11d
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
lea rcx, str.c:debug_b_debug.log
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400168fc
lea r9d, [rdi + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x60]
cmp byte [rsp + 0x60], dil
je 0x1400168ce
inc rcx
cmp byte [rcx], dil
jne 0x1400168c6
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x4110]
lea rdx, [rsp + 0x60]
sub ecx, eax
mov qword [rsp + 0x20], rdi
mov r8d, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x4118]
add rsp, 0x4100
pop rdi
ret
Function at 0x140001040
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.1400092f0
mov r15d, eax
test eax, eax
je 0x1400010c3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002790
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.14000d548
mov r13, rax
test rax, rax
jne 0x1400010f9
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.1400024f0
jmp 0x14000125c
mov ecx, 0x2000
call fcn.14000d548
mov rbp, rax
test rax, rax
jne 0x140001127
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.1400024f0
jmp 0x14000125c
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.14000caa0
cmp rax, rbx
jne 0x14000124e
mov rcx, qword [rdi]
call fcn.14000c814
test eax, eax
jne 0x14000124e
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.1400077b0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001231
cmp eax, 2
je 0x14000122c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400011f3
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.14000d4a8
cmp rax, rbx
jne 0x1400011ee
mov rcx, r14
call fcn.14000c814
test eax, eax
je 0x140001209
mov edi, r15d
jmp 0x140001231
test rsi, rsi
je 0x140001209
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000b330
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001190
cmp edi, 1
je 0x140001227
test r12, r12
je 0x140001231
mov rdi, qword [rsp + 0xc0]
jmp 0x140001140
xor r15d, r15d
jmp 0x140001254
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.140002790
jmp 0x140001254
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140008fe0
mov rcx, r13
call fcn.14000d534
mov rcx, rbp
call fcn.14000d534
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 0x1400012a0
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 0x1400012e8
add rcx, 0x78
lea rdx, [0x1400254f0]
call fcn.140003b50
mov qword [r14], rax
test rax, rax
jne 0x1400012e8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002790
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.14000cd70
test eax, eax
jns 0x14000131f
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.1400024f0
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.14000d548
mov r15, rax
test rax, rax
jne 0x140001354
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.1400024f0
jmp 0x140001404
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 0x140001385
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001040
test eax, eax
je 0x1400013f0
jmp 0x1400013e5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x1400013f0
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.14000caa0
cmp rax, 1
jb 0x1400013ce
add rbp, rdi
sub rbx, rdi
jne 0x1400013a0
jmp 0x1400013f0
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400024f0
mov rcx, r15
call fcn.14000d534
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 0x140001418
call fcn.14000c784
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140001430
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.140006220
cmp eax, 0xffffffff
jne 0x140001452
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
lea rcx, [r14 + 0x2078]
lea rbp, [rdi + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140006540
mov r12, rax
test rax, rax
jne 0x140001497
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.1400024f0
lea eax, [r12 - 1]
jmp 0x140001625
mov rax, qword [r14]
test rax, rax
jne 0x1400014d0
lea rcx, [r14 + 0x78]
lea rdx, [0x1400254f0]
call fcn.140003b50
mov qword [r14], rax
test rax, rax
jne 0x1400014d0
mov rdx, rbp
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002790
mov ebx, 0xffffffff
jmp 0x140001607
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000cd70
test eax, eax
jns 0x140001506
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.1400024f0
mov ebx, 0xffffffff
jmp 0x140001607
cmp byte [rdi + 0x10], 1
jne 0x140001524
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140001040
mov ebx, eax
jmp 0x140001607
mov qword [rsp + 0x28], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x20], r15
mov ecx, r13d
call fcn.14000d548
mov r15, rax
test rax, rax
jne 0x140001565
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.1400024f0
lea ebx, [r15 - 1]
jmp 0x1400015fd
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x1400015f5
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.14000caa0
cmp rax, 1
jb 0x1400015d5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000d4a8
cmp rax, 1
jb 0x1400015c5
sub rdi, rsi
jne 0x140001580
jmp 0x1400015f0
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400015e3
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r8, rbp
call fcn.1400024f0
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.14000d534
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000161b
call fcn.14000c784
mov qword [r14], 0
mov rcx, r12
call fcn.14000c784
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 0x140005fb0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000a590
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007430
mov rdi, rax
test rax, rax
jne 0x140005ff9
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002790
xor eax, eax
jmp 0x1400060e2
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.14000d534
test ebx, ebx
jne 0x140006039
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002790
xor eax, eax
jmp 0x1400060da
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
xor ecx, ecx
call fcn.140010ea8
mov rbx, rax
test rax, rax
jne 0x140006066
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002790
xor eax, eax
jmp 0x1400060da
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
call fcn.14000b9e0
mov edx, 0x5c
mov rcx, rbx
call fcn.14000bd1c
mov rdi, rax
test rax, rax
je 0x1400060cc
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140011974
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000bd1c
mov rdi, rax
test rax, rax
jne 0x140006090
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.14000a5f0
add rsp, 0x4030
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000a590
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x1400254f0]
call fcn.140003b50
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140006540
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400061f3
mov rcx, rsi
test rax, rax
je 0x1400061fb
call fcn.14000c7e8
test eax, eax
jne 0x1400061df
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000caa0
test rax, rax
jne 0x14000619e
mov rcx, rsi
call fcn.14000c814
test eax, eax
je 0x1400061c4
mov rcx, rsi
jmp 0x1400061d5
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000d4a8
test rax, rax
je 0x1400061d2
mov rcx, rbx
call fcn.14000c814
test eax, eax
jne 0x1400061d2
mov rcx, rsi
call fcn.14000c7e8
test eax, eax
je 0x140006170
jmp 0x1400061df
mov rcx, rbx
call fcn.1400132b4
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000c784
mov rcx, rbx
call fcn.14000c784
mov eax, edi
jmp 0x140006205
test rbx, rbx
je 0x140006200
mov rcx, rbx
call fcn.14000c784
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a5f0
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret