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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140015160
xor r11d, r11d
lea r10, [0x14006cba0]
test rbx, rbx
je 0x140015924
mov r9d, 0x28
mov eax, r11d
cmp rdi, r9
cmovb r9, rdi
test r9, r9
je 0x140015924
cmp r9, 0x20
jb 0x140015900
lea rdx, [r10 - 1]
lea rcx, [rbx - 1]
add rdx, r9
add rcx, r9
cmp r10, rcx
ja 0x1400158af
cmp rdx, rbx
jae 0x140015900
mov r8, r9
mov rdx, rbx
and r8, 0xffffffffffffffe0
sub rdx, r10
nop dword [rax]
movdqu xmm0, xmmword [rax + r10]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rcx + r10]
lea rcx, [rdx + rax]
pxor xmm1, xmm0
movdqu xmmword [rax + r10], xmm1
movdqu xmm0, xmmword [rax + r10 + 0x10]
movdqu xmm1, xmmword [rcx + r10 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + r10 + 0x10], xmm1
add rax, 0x20
cmp rax, r8
jb 0x1400158c0
cmp rax, r9
jae 0x140015924
sub rbx, r10
nop dword [rax + rax]
lea r8, [rax + r10]
inc rax
movzx ecx, byte [rbx + r8]
xor byte [r8], cl
cmp rax, r9
jb 0x140015910
mov rdx, r10
call fcn.140015010
movzx eax, byte [0x14006cbc2]
movzx ecx, byte [0x14006cbc3]
mov rbx, qword [rsp + 0x30]
shl ecx, 8
or ecx, eax
mov qword [0x14006cfe0], r11
movzx eax, byte [0x14006cbc1]
shl ecx, 8
or ecx, eax
mov qword [0x14006cfa8], 0x3d8
movzx eax, byte [0x14006cbc0]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006cbc6]
mov dword [0x14006cfe8], ecx
movzx ecx, byte [0x14006cbc7]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006cbc5]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x14006cbc4]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [0x14006cfec], ecx
mov qword [0x14006cba0], rax
mov qword [0x14006cba8], rax
mov qword [0x14006cbb0], rax
mov qword [0x14006cbb8], rax
mov qword [0x14006cbc0], rax
add rsp, 0x20
pop rdi
ret
Function at 0x140015b60
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, [0x140053ec0]
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x140015c38
lea edx, [r11 + 4]
nop dword [rax + rax]
movzx r9d, byte [r10]
sub rbx, 3
movzx edi, byte [r10 + 1]
movzx ebp, r9b
movzx esi, byte [r10 + 2]
movzx ecx, dil
shr cl, 4
and r9b, 3
and dil, 0xf
shl r9b, 4
add r9b, cl
shl dil, 2
movzx ecx, sil
shr bpl, 2
shr cl, 6
add r10, 3
add dil, cl
and sil, 0x3f
cmp rdx, r14
ja 0x140015cde
movzx ecx, bpl
add rdx, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, sil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x140015ba0
test rbx, rbx
je 0x140015cfc
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x140015c86
mov rdx, r11
nop dword [rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x140015c60
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x140015cde
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x140015ce3
mov byte [rax + r8 + 2], 0x3d
jmp 0x140015cf0
or eax, 0xffffffff
jmp 0x140015d06
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x140015cde
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret

Function at 0x14001fdd4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001fc67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001fc67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001fc67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001fc67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fc67
cmp dword [rcx + 0x84], 0xe
jbe 0x14001fc67
cmp dword [rcx + 0xf8], 0
je 0x14001fc67
mov ecx, ebx
call fcn.14001fd08
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001faf8
cmp dword [rbp + 0x20], 0
je 0x14001fcb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001fcbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001fc00
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
mov r8d, 0x58
mov qword [rsp + 0x60], rax
lea rdx, str.1.2.11
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov ebp, eax
mov rsi, r9
call fcn.140009420
mov r15d, eax
test eax, eax
je 0x1400010d7
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002770
mov eax, 0xffffffff
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.140012f90
mov r13, rax
test rax, rax
jne 0x14000110d
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
jmp 0x140001269
mov ecx, 0x2000
call fcn.140012f90
mov rbp, rax
test rax, rax
jne 0x14000113b
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
jmp 0x140001269
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [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.14000e4dc
cmp rax, rbx
jne 0x140001261
mov rcx, qword [rdi]
call fcn.14000e250
test eax, eax
jne 0x140001261
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.1400078a0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001246
cmp eax, 2
je 0x140001241
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001204
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000ec1c
cmp rax, rbx
jne 0x1400011ff
mov rcx, r14
call fcn.14000e250
test eax, eax
je 0x14000121a
mov edi, r15d
jmp 0x140001246
test rsi, rsi
je 0x14000121a
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140028360
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x14000123c
test r12, r12
je 0x140001246
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001261
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.140002770
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140009120
mov rcx, r13
call fcn.140012f7c
mov rcx, rbp
call fcn.140012f7c
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, [0x14002a510]
call fcn.140003bd0
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.140002770
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.14000e814
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.1400024d0
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140012f90
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.1400024d0
jmp 0x1400013f1
cmp byte [rsi + 0x10], 1
jne 0x14000136d
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
jmp 0x1400013e2
mov qword [rsp + 0x40], rbx
mov ebx, dword [rsi + 0xc]
mov qword [rsp + 0x48], rbp
mov rbp, r15
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
test rbx, rbx
je 0x1400013cc
mov r12d, 0x2000
nop dword [rax]
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.14000e4dc
cmp rax, 1
jb 0x140001415
add rbp, rdi
sub rbx, rdi
jne 0x1400013a0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
test eax, eax
je 0x1400013f1
mov rcx, r15
call fcn.140012f7c
xor r15d, r15d
mov rcx, qword [r14]
test rcx, rcx
je 0x140001405
call fcn.14000e18c
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400013ce
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.1400062e0
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.140006600
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.1400024d0
mov eax, 0xffffffff
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x14002a510]
call fcn.140003bd0
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.140002770
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000e814
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.1400024d0
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.140012f90
mov r15, rax
test rax, rax
jne 0x140001576
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.1400024d0
mov ebx, 0xffffffff
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.14000e4dc
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000ec1c
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.1400024d0
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.140012f7c
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000e18c
mov qword [r14], 0
mov rcx, r12
call fcn.14000e18c
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 0x1400017b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400017ef
lea rcx, [rbx + 0x78]
lea rdx, [0x14002a510]
call fcn.140003bd0
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140001842
mov rax, qword [0x14002c9d8]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov r8d, 8
shr rax, 0x18
add al, 0xc
mov byte [rsp + 0x23], al
call fcn.140006d70
mov rdi, rax
test rax, rax
je 0x140001842
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.14000e814
test eax, eax
jns 0x14000184c
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov edx, 0x58
mov r8d, 1
call fcn.14000e4dc
cmp rax, 1
jae 0x140001886
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
mov ecx, dword [rbx + 0x28]
xor r8d, r8d
mov eax, dword [rbx + 0x2c]
bswap eax
mov dword [rbx + 0x2c], eax
mov eax, dword [rbx + 0x30]
bswap eax
mov dword [rbx + 0x30], eax
mov eax, dword [rbx + 0x34]
bswap ecx
mov ecx, ecx
sub rdi, rcx
mov dword [rbx + 0x28], ecx
bswap eax
add rdi, 0x58
mov dword [rbx + 0x34], eax
mov qword [rbx + 8], rdi
xor edi, edi
mov dword [rbx + 0x507c], edi
mov dword [0x14003ccc4], eax
mov edx, dword [rbx + 0x2c]
add rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.14000e814
movsxd rcx, dword [rbx + 0x30]
call fcn.140012f90
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001902
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.1400024d0
mov eax, 0xffffffff
jmp 0x1400019b3
movsxd rdx, dword [rbx + 0x30]
mov r8d, 1
mov r9, qword [rbx]
mov rcx, rax
call fcn.14000e4dc
cmp rax, 1
jae 0x140001929
lea rdx, str.Could_not_read_full_TOC__n
jmp 0x140001870
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov rcx, qword [rbx]
mov qword [rbx + 0x18], rax
call fcn.14000e250
test eax, eax
je 0x140001954
lea rcx, str.Error_on_file._n
call fcn.140002770
mov eax, 0xffffffff
jmp 0x1400019b3
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
jae 0x1400019a1
nop
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rcx, rax
mov rax, rcx
cmp rcx, qword [rbx + 0x10]
jb 0x140001995
cmp rcx, qword [rbx + 0x18]
jb 0x140001960
jmp 0x1400019a1
lea rcx, str.Cannot_read_Table_of_Contents._n
call fcn.140002770
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400019b1
call fcn.14000e18c
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a700
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140006040
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.14000a730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007520
mov rdi, rax
test rax, rax
jne 0x140006089
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002770
xor eax, eax
jmp 0x140006198
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.140012f7c
test ebx, ebx
jne 0x1400060c6
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002770
xor eax, eax
jmp 0x140006190
lea rcx, [rsp + 0x20]
call fcn.140007310
test eax, eax
je 0x1400060e0
lea rcx, [rsp + 0x20]
call fcn.140014e14
jmp 0x1400060f2
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140014218
mov rbx, rax
test rax, rax
jne 0x14000610d
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002770
xor eax, eax
jmp 0x140006190
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.140028a00
mov edx, 0x5c
mov rcx, rbx
call fcn.14000b734
mov rdi, rax
test rax, rax
je 0x140006182
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140014e98
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000b734
mov rdi, rax
test rax, rax
jne 0x140006140
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.14000a700
add rsp, 0x4030
pop rdi
ret

Function at 0x1400061c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000a730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x14002a510]
call fcn.140003bd0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140006600
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x1400062b3
mov rcx, rsi
test rax, rax
je 0x1400062bb
call fcn.14000e224
test eax, eax
jne 0x14000629f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e4dc
test rax, rax
jne 0x14000625e
mov rcx, rsi
call fcn.14000e250
test eax, eax
je 0x140006284
mov rcx, rsi
jmp 0x140006295
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000ec1c
test rax, rax
je 0x140006292
mov rcx, rbx
call fcn.14000e250
test eax, eax
jne 0x140006292
mov rcx, rsi
call fcn.14000e224
test eax, eax
je 0x140006230
jmp 0x14000629f
mov rcx, rbx
call fcn.14001683c
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000e18c
mov rcx, rbx
call fcn.14000e18c
mov eax, edi
jmp 0x1400062c5
test rbx, rbx
je 0x1400062c0
mov rcx, rbx
call fcn.14000e18c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a700
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006340
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.14000a730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x1400063cb
lea rcx, [0x14002cab4]
call fcn.140006550
mov rcx, rbp
mov rsi, rax
call fcn.140006040
mov rdi, rax
test rax, rax
je 0x14000649f
mov rdx, rax
lea rcx, [0x14002cab8]
call fcn.140015584
mov rcx, rdi
mov ebx, eax
call fcn.140012f7c
test ebx, ebx
je 0x1400063d0
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002770
xor eax, eax
jmp 0x140006528
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.140002470
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140016820
mov rcx, rax
mov rdi, rax
call fcn.140007390
test eax, eax
je 0x1400064a6
mov rcx, rdi
call fcn.140012f7c
inc ebx
cmp ebx, 5
jl 0x140006400
test rbp, rbp
je 0x14000649f
xor r8d, r8d
lea rdx, [0x14002cab4]
xor ecx, ecx
call fcn.140007520
test rsi, rsi
je 0x140006489
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007520
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140015584
mov rcx, rdi
call fcn.140012f7c
mov rcx, rbx
call fcn.140012f7c
mov rcx, rsi
call fcn.140012f7c
xor eax, eax
jmp 0x140006528
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140012f7c
xor eax, eax
jmp 0x140006528
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.140007630
mov rcx, rdi
call fcn.140012f7c
test rbp, rbp
je 0x140006523
xor r8d, r8d
lea rdx, [0x14002cab4]
xor ecx, ecx
call fcn.140007520
test rsi, rsi
je 0x14000650d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007520
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140015584
mov rcx, rdi
call fcn.140012f7c
mov rcx, rbx
call fcn.140012f7c
mov rcx, rsi
jmp 0x14000651e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140012f7c
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14000a700
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006550
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000a730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007520
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400065e6
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140007630
test rax, rax
je 0x1400065e6
cmp byte [rax], 0
je 0x1400065e6
mov rcx, rax
call fcn.140018590
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a700
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a700
add rsp, 0x4038
ret

Function at 0x140006af0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007520
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140012f7c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006b30
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000a730
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140007520
mov ebx, 1
mov ecx, 0x16
mov edx, ebx
call fcn.140016260
mov edx, ebx
mov ecx, 2
call fcn.140016260
mov edx, ebx
mov ecx, 0xf
call fcn.140016260
mov edx, ebx
mov ecx, 0x15
call fcn.140016260
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140013150
mov rcx, rax
call fcn.140018608
mov ecx, eax
call fcn.140015dc8
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.140013150
mov rcx, rax
call fcn.140018608
mov ecx, eax
call fcn.140015dc8
mov ecx, 2
mov qword [rsp + 0xe8], rax
call fcn.140013150
mov rcx, rax
call fcn.140018608
mov ecx, eax
call fcn.140015dc8
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140006cbb
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140006cd3
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x14002cbb8]
call fcn.140002620
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000a700
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret