joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b110
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x14003806c], eax
jle 0x14001b1ab
lea rcx, [0x14003806c]
call fcn.14001f400
cmp dword [0x14003806c], 0xffffffff
jne 0x14001b1ab
mov rax, qword [str.NtShutdownSystem]
mov qword [rsp + 0x28], rax
mov rcx, qword [str.ntdll.dll]
call qword [0x1400220c8]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [0x1400220c0]
mov qword [0x140038130], rax
lea rcx, [0x14003806c]
call fcn.14001f3a0
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140038058], eax
jle 0x14001b202
lea rcx, [0x140038058]
call fcn.14001f400
cmp dword [0x140038058], 0xffffffff
jne 0x14001b202
lea rcx, [0x140038140]
call fcn.14000ae30
lea rcx, [0x1400212d0]
call fcn.14001f258
lea rcx, [0x140038058]
call fcn.14001f3a0
lea rcx, [0x140038140]
call fcn.14000add0
mov byte [rsp + 0x40], 0xff
mov byte [rsp + 0x41], 0x25
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x45], 0
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x47], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x49], 0
mov byte [rsp + 0x4a], 0
mov byte [rsp + 0x4b], 0
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x4d], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x46], rax
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000bde0
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000bf60
mov rax, qword [0x140038130]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x98]
mov edx, eax
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0x38]
mov dword [rsp + 0x20], eax
lea rcx, [0x140037c58]
call fcn.14000ce00
mov r8d, 0xe
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14000bf60
lea rcx, [0x140038140]
call fcn.14000ae00
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001ef90
add rsp, 0x78
ret

Function at 0x14001f804
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140044540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14004456d
xor al, al
jmp 0x1400446cf
mov rax, qword [0x1400646c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400646c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400646d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400646d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400646e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400646e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400646f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400646f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140064700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400446c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140044619
mov r11d, 2
jmp 0x14004463d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140044633
mov r11d, 1
jmp 0x14004463d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400446e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140044682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14004469a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400446aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400446b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140044600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400446ca
Function at 0x140302853
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r10
ret
push r8
mov r8b, r10b
push r13
movzx r8d, ax
setnp r8b
push r12
movzx r8, ax
movsx r8w, r9b
push rsi
movsx rsi, ax
movzx esi, r11w
bswap rsi
push rax
cdqe
cwde
cbw
push r15
push r14
movzx si, r10b
movsxd rax, esi
cdqe
push rbx
movzx rbx, di
movzx eax, ax
movsx rax, r13w
push rbp
movsx ebx, r10w
movsx rsi, si
cbw
push r11
cwde
movsx ax, spl
movsx rsi, r11w
push rdx
push r9
movzx r9w, r14b
setl r8b
movzx rbx, bx
push rcx
push r10
rdtsc
xchg dl, r10b
push rdi
cbw
rdtsc
pushfq
movsx rax, bx
movabs rax, 0
stc
bt rbx, rbx
ror dh, cl
push rax
add bl, 0xd2
mov rdi, qword [rsp + 0x90]
xor edi, 0x12751dff
add edi, 0x6cc424ca
bswap edi
shrd bx, cx, 0x7e
shl dh, cl
sub edi, 0xbe743a7
xor dl, r13b
neg edi
bts r10d, r15d
ror r9d, 0x6e
sar dl, 0xc6
add rdi, rax
rcl r10b, cl
shld r9, r11, 0x8e
movsx bx, al
movabs rbx, 0x100000000
cmc
sal r9b, cl
cmovge edx, r9d
lea rdi, [rdi + rbx]
mov r9, rsp
shld r10, r13, 0x88
sub rsp, 0x180
shr sil, 0x5b
and rsp, 0xfffffffffffffff0
mov rsi, rdi
cqo
movabs rdx, 0
sub rsi, rdx
bts r8d, ecx
rol r8d, 0x4a
cmc
lea r10, [0x140302974]
dec r8b
xor r8b, r8b
mov r8d, dword [rdi]
cmp bl, 0x12
add rdi, 4
stc
jmp 0x1403930bf
xor r8d, esi
cmp bp, 0x12ed
clc
sub r8d, 0x13702d5e
cmc
clc
test r8b, dil
neg r8d
test bpl, 0x60
test ch, dl
not r8d
cmc
bswap r8d
cmp r9b, bl
push rsi
rcr sil, cl
ror rsi, cl
xor dword [rsp], r8d
pop rsi
stc
movsxd r8, r8d
test bp, si
clc
add r10, r8
jmp 0x1402cb576
Function at 0x1407e62f1
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r8
mov r8b, r10b
push r13
movzx r8d, ax
setnp r8b
push r12
movzx r8, ax
movsx r8w, r9b
push rsi
movsx rsi, ax
movzx esi, r11w
bswap rsi
push rax
cdqe
cwde
cbw
push r15
push r14
movzx si, r10b
movsxd rax, esi
cdqe
push rbx
movzx rbx, di
movzx eax, ax
movsx rax, r13w
push rbp
movsx ebx, r10w
movsx rsi, si
cbw
push r11
cwde
movsx ax, spl
movsx rsi, r11w
push rdx
push r9
movzx r9w, r14b
setl r8b
movzx rbx, bx
push rcx
push r10
rdtsc
xchg dl, r10b
push rdi
cbw
rdtsc
pushfq
movsx rax, bx
movabs rax, 0
stc
bt rbx, rbx
ror dh, cl
push rax
add bl, 0xd2
mov rdi, qword [rsp + 0x90]
xor edi, 0x12751dff
add edi, 0x6cc424ca
bswap edi
shrd bx, cx, 0x7e
shl dh, cl
sub edi, 0xbe743a7
xor dl, r13b
neg edi
bts r10d, r15d
ror r9d, 0x6e
sar dl, 0xc6
add rdi, rax
rcl r10b, cl
shld r9, r11, 0x8e
movsx bx, al
movabs rbx, 0x100000000
cmc
sal r9b, cl
cmovge edx, r9d
lea rdi, [rdi + rbx]
mov r9, rsp
shld r10, r13, 0x88
sub rsp, 0x180
shr sil, 0x5b
and rsp, 0xfffffffffffffff0
mov rsi, rdi
cqo
movabs rdx, 0
sub rsi, rdx
bts r8d, ecx
rol r8d, 0x4a
cmc
lea r10, [0x1407e6412]
dec r8b
xor r8b, r8b
mov r8d, dword [rdi]
cmp bl, 0x12
add rdi, 4
stc
jmp 0x1408c003e
push r10
ret
xor r8d, esi
cmp bp, 0x12ed
clc
sub r8d, 0x13702d5e
cmc
clc
test r8b, dil
neg r8d
test bpl, 0x60
test ch, dl
not r8d
cmc
bswap r8d
cmp r9b, bl
push rsi
rcr sil, cl
ror rsi, cl
xor dword [rsp], r8d
pop rsi
stc
movsxd r8, r8d
test bp, si
clc
add r10, r8
jmp 0x14088b455
Function at 0x1800012b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800014d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800013b7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180001314
mov rax, qword [0x180009008]
cmp qword [rsp + 0x20], rax
ja 0x180001314
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800012d6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180001343
jmp 0x1800013b7
cmp dword [rsp + 0x50], 0x10000
jne 0x18000139a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000139a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180001388
mov rax, qword [rsp + 0x28]
jmp 0x1800013b9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800013b2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800014d0
mov qword [rsp + 0x20], rax
jmp 0x1800012d6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800013c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180001510
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800014c3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000141b
mov rax, qword [0x180009008]
cmp qword [rsp + 0x20], rax
ja 0x18000141b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800013dd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000144a
jmp 0x1800014c3
cmp dword [rsp + 0x50], 0x10000
jne 0x1800014a1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800014a1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000148f
mov rax, qword [rsp + 0x28]
jmp 0x1800014c5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800014be
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180001510
mov qword [rsp + 0x20], rax
jmp 0x1800013dd
xor eax, eax
add rsp, 0x68
ret
Function at 0x140001050
Capabilities:
Read 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.13
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.14000ad80
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.1400027d0
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.140014820
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.140002530
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140014820
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.140002530
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.14000fd6c
cmp rax, rbx
jne 0x14000125e
mov rcx, qword [rdi]
call fcn.14000fae0
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.1400091d0
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.1400104ac
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000fae0
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.14000c2d0
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.1400027d0
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000aa60
mov rcx, r13
call fcn.14001480c
mov rcx, rbp
call fcn.14001480c
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, [0x14002a650]
call fcn.140003fe0
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.1400027d0
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.1400100a4
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.140002530
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140014820
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.140002530
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.14000fd6c
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.140002530
mov rcx, r15
call fcn.14001480c
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.14000fa1c
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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
call fcn.140006dc0
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.140007110
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.140002530
lea eax, [r12 - 1]
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x14002a650]
call fcn.140003fe0
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.1400027d0
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.1400100a4
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.140002530
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.140014820
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.140002530
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.14000fd6c
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.1400104ac
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.140002530
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.14001480c
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000fa1c
mov qword [r14], 0
mov rcx, r12
call fcn.14000fa1c
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 0x140002a10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x430], rax
call sub.KERNEL32.dll_GetCurrentProcessId
mov r8d, eax
lea rdx, str.__d_
lea rcx, [rsp + 0x30]
call fcn.140002ad0
mov ecx, 0x400
lea rbx, [rsp + 0x30]
sub ecx, eax
lea rsi, [rsp + 0x468]
cdqe
add rbx, rax
movsxd rdi, ecx
call fcn.140001040
mov r9, qword [rsp + 0x460]
mov r8, rdi
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 2
call fcn.140014354
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14000b4f0
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006b10
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000b520
sub rsp, rax
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400081a0
mov rdi, rax
test rax, rax
jne 0x140006b59
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.1400027d0
xor eax, eax
jmp 0x140006c78
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.14001480c
test ebx, ebx
jne 0x140006b96
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.1400027d0
xor eax, eax
jmp 0x140006c70
lea rcx, [rsp + 0x20]
call fcn.140007f00
test eax, eax
je 0x140006bb0
lea rcx, [rsp + 0x20]
call fcn.1400166b4
jmp 0x140006bc2
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140015ab8
mov rbx, rax
test rax, rax
jne 0x140006bdd
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.1400027d0
xor eax, eax
jmp 0x140006c70
mov rdx, rbx
lea rcx, str.LOADER:_absolute_runtime_tmpdir_is__ls_n
call fcn.140002a10
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000c980
mov edx, 0x5c
mov rcx, rbx
call fcn.14000cec4
mov rdi, rax
test rax, rax
je 0x140006c62
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140016738
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000cec4
mov rdi, rax
test rax, rax
jne 0x140006c20
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.14000b4f0
add rsp, 0x4030
pop rdi
ret
Function at 0x140006ca0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000b520
sub rsp, rax
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x14002a650]
call fcn.140003fe0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140007110
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140006d93
mov rcx, rsi
test rax, rax
je 0x140006d9b
call fcn.14000fab4
test eax, eax
jne 0x140006d7f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000fd6c
test rax, rax
jne 0x140006d3e
mov rcx, rsi
call fcn.14000fae0
test eax, eax
je 0x140006d64
mov rcx, rsi
jmp 0x140006d75
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.1400104ac
test rax, rax
je 0x140006d72
mov rcx, rbx
call fcn.14000fae0
test eax, eax
jne 0x140006d72
mov rcx, rsi
call fcn.14000fab4
test eax, eax
je 0x140006d10
jmp 0x140006d7f
mov rcx, rbx
call fcn.140017af8
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000fa1c
mov rcx, rbx
call fcn.14000fa1c
mov eax, edi
jmp 0x140006da5
test rbx, rbx
je 0x140006da0
mov rcx, rbx
call fcn.14000fa1c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000b4f0
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret