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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xc0
add al, 0x5d
xor al, 0xf6
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
invalid
movabs eax, dword [0xcda85210c2912231]
in eax, dx
movabs byte [0x6b8f862c21a4d62d], al
pop rbx
movabs eax, dword [0x640e472ea21496e2]
stosd dword [rdi], eax
loope 0x14000106c
or qword [rbp - 0x5efb091e], r11
xor eax, ebp
cmp al, 0xdb
invalid

Function at 0x141b6d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b6d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b6d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b6d06f
add dl, dl
jne 0x141b6d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b6d0f6
xor eax, eax
add dl, dl
jne 0x141b6d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b6d1ad
add dl, dl
jne 0x141b6d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b6d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b6d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b6d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b6d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b6d07e
mov eax, 1
add dl, dl
jne 0x141b6d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b6d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b6d0fb
sub eax, ebx
mov ebx, 1
jne 0x141b6d14c
mov ecx, 1
add dl, dl
jne 0x141b6d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b6d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b6d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b6d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b6d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b6d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b6d15d
cmp eax, 0x7d00
jae 0x141b6d19b
cmp eax, 0x500
jb 0x141b6d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b6d07e
cmp eax, 0x7f
ja 0x141b6d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b6d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b6d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b6d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14107e108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14107e28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14107e139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14107e11f
add dl, dl
jne 0x14107e146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14107e1a6
xor eax, eax
add dl, dl
jne 0x14107e155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14107e25d
add dl, dl
jne 0x14107e166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14107e173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14107e180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14107e18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14107e19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14107e12e
mov eax, 1
add dl, dl
jne 0x14107e1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14107e1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14107e1ab
sub eax, ebx
mov ebx, 1
jne 0x14107e1fc
mov ecx, 1
add dl, dl
jne 0x14107e1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14107e1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14107e1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107e12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14107e218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14107e225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14107e20d
cmp eax, 0x7d00
jae 0x14107e24b
cmp eax, 0x500
jb 0x14107e246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107e12e
cmp eax, 0x7f
ja 0x14107e24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14107e12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14107e282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14107e12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x80
xor eax, eax
mov r14, r8
mov rsi, rdx
mov qword [rsp + 0x50], rax
mov r13, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.3.1
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rdi, r9
mov ebp, eax
call fcn.140009e50
mov ebx, eax
test eax, eax
je 0x1400010ae
lea eax, [rbp - 1]
jmp 0x1400011ba
mov ecx, 0x2000
mov qword [rsp + 0xb0], r12
call fcn.1400138d0
mov r12, rax
test rax, rax
je 0x140001196
mov ecx, 0x2000
call fcn.1400138d0
mov rbp, rax
test rax, rax
je 0x140001196
mov qword [rsp + 0xb8], r15
mov r15d, dword [rsi + 8]
nop
mov eax, 0x2000
mov rbx, r15
cmp r15, rax
mov r9, r13
mov edx, 1
mov rcx, r12
cmova rbx, rax
mov r8, rbx
call fcn.14000ee1c
cmp rax, rbx
jne 0x140001189
mov rcx, r13
call fcn.14000eb90
test eax, eax
jne 0x140001189
sub r15, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
nop
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.1400082a0
mov esi, eax
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001189
cmp eax, 2
je 0x140001189
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x1400011d1
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000f55c
cmp rax, rbx
jne 0x140001189
mov rcx, r14
call fcn.14000eb90
test eax, eax
je 0x1400011e7
mov ebx, 0xffffffff
mov r15, qword [rsp + 0xb8]
lea rcx, [rsp + 0x20]
call fcn.140009b30
mov rcx, r12
call fcn.1400138bc
mov rcx, rbp
call fcn.1400138bc
mov r12, qword [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x1400011e7
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14000b380
add rdi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001130
cmp esi, 1
je 0x140001202
test r15, r15
jne 0x1400010f0
jmp 0x140001189
xor ebx, ebx
jmp 0x14000118e
Function at 0x1400012b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x80
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
lea rdx, [0x14002a588]
add rcx, 0x70
mov esi, r15d
call fcn.140002bb0
mov r12, rax
test rax, rax
jne 0x1400012f2
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx]
mov rcx, r12
call fcn.14000f154
test eax, eax
js 0x1400014f4
mov ecx, dword [rdi + 0xc]
call fcn.1400138d0
mov qword [rsp + 0xb0], rax
mov rsi, rax
test rax, rax
je 0x1400014f4
cmp byte [rdi + 0x10], 1
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xc8], r14
jne 0x1400014a1
mov r8d, 0x58
mov qword [rsp + 0x50], r15
lea rdx, str.1.3.1
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x60], r15
mov r14, r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140009e50
mov ebx, eax
test eax, eax
jne 0x140001487
mov ebp, 0x2000
mov qword [rsp + 0xc0], r13
mov ecx, ebp
call fcn.1400138d0
mov r13, rax
test rax, rax
je 0x140001461
mov ecx, ebp
call fcn.1400138d0
mov r14, rax
test rax, rax
je 0x140001461
mov r15d, dword [rdi + 8]
nop word [rax + rax]
cmp r15, rbp
mov rbx, r15
mov r9, r12
mov edx, 1
cmova rbx, rbp
mov rcx, r13
mov r8, rbx
call fcn.14000ee1c
cmp rax, rbx
jne 0x14000145a
mov rcx, r12
call fcn.14000eb90
test eax, eax
jne 0x14000145a
sub r15, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
xor edx, edx
mov dword [rsp + 0x38], ebp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], r14
call fcn.1400082a0
mov edi, eax
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x14000145a
cmp eax, 2
je 0x14000145a
mov edx, dword [rsp + 0x38]
mov rbx, rbp
sub rbx, rdx
test rsi, rsi
je 0x140001448
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14000b380
mov edx, dword [rsp + 0x38]
add rsi, rbx
test edx, edx
je 0x140001400
cmp edi, 1
je 0x140001499
test r15, r15
jne 0x1400013c0
xor r15d, r15d
lea ebx, [r15 - 1]
lea rcx, [rsp + 0x20]
call fcn.140009b30
mov rcx, r13
call fcn.1400138bc
mov rcx, r14
call fcn.1400138bc
mov r13, qword [rsp + 0xc0]
test ebx, ebx
je 0x1400014dc
mov rcx, qword [rsp + 0xb0]
call fcn.1400138bc
mov rsi, r15
jmp 0x1400014e4
xor r15d, r15d
mov ebx, r15d
jmp 0x140001461
mov ebx, dword [rdi + 0xc]
test rbx, rbx
je 0x14000150e
mov ebp, 0x2000
nop
cmp rbx, rbp
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, rbp
mov rcx, rsi
mov rdx, rdi
call fcn.14000ee1c
cmp rax, 1
jb 0x140001487
add rsi, rdi
sub rbx, rdi
jne 0x1400014b0
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc8]
mov rcx, r12
call fcn.14000eacc
mov rax, rsi
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rsi, rax
jmp 0x1400014e4
Function at 0x140001520
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
mov eax, 0x1040
call fcn.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
cmp dword [rcx + 0x5074], 1
mov rdi, rdx
mov rsi, rcx
jne 0x140001706
cmp byte [rdx + 0x11], 0x6e
jne 0x1400015d7
mov ebx, 0xffffffff
call fcn.1400012b0
mov rbp, rax
test rax, rax
je 0x1400015c8
add rdi, 0x12
lea rcx, [rsi + 0x3070]
mov rdx, rdi
call fcn.1400060f0
test eax, eax
js 0x1400015c8
mov qword [rsp + 0x28], rdi
lea r9, [rsi + 0x3070]
lea r8, str._s_c_s
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call fcn.140001c40
cmp eax, 0x1000
jge 0x1400015c8
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140002db0
mov ebx, eax
mov rcx, rbp
call fcn.1400138bc
mov eax, ebx
jmp 0x14000170b
add rdx, 0x12
add rcx, 0x3070
call fcn.140006550
mov r15, rax
test rax, rax
je 0x140001706
lea rcx, [rsi + 0x70]
mov qword [rsp + 0x1088], r14
lea rdx, [0x14002a588]
call fcn.140002bb0
mov r14, rax
test rax, rax
jne 0x14000161b
lea ebx, [rax - 1]
jmp 0x1400016f2
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rsi]
mov rcx, r14
call fcn.14000f154
test eax, eax
jns 0x14000163a
mov ebx, 0xffffffff
jmp 0x1400016ea
cmp byte [rdi + 0x10], 1
jne 0x140001658
xor r9d, r9d
mov r8, r15
mov rdx, rdi
mov rcx, r14
call fcn.140001050
mov ebx, eax
jmp 0x1400016ea
mov qword [rsp + 0x1080], r12
xor ebx, ebx
mov r12d, 0x2000
mov ecx, r12d
call fcn.1400138d0
mov rbp, rax
test rax, rax
jne 0x14000167d
lea ebx, [rax - 1]
jmp 0x1400016e2
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x1400016da
nop word [rax + rax]
cmp rdi, r12
mov rsi, rdi
mov r9, r14
mov r8d, 1
cmova rsi, r12
mov rcx, rbp
mov rdx, rsi
call fcn.14000ee1c
cmp rax, 1
jb 0x1400016d5
mov r9, r15
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14000f55c
cmp rax, 1
jb 0x1400016d5
sub rdi, rsi
jne 0x140001690
jmp 0x1400016da
mov ebx, 0xffffffff
mov rcx, rbp
call fcn.1400138bc
mov r12, qword [rsp + 0x1080]
mov rcx, r14
call fcn.14000eacc
mov rcx, r15
call fcn.14000eacc
mov r14, qword [rsp + 0x1088]
mov eax, ebx
jmp 0x14000170b
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000a620
add rsp, 0x1040
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001880
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [0x14002a588]
add rcx, 0x70
mov esi, 0xffffffff
call fcn.140002bb0
mov rdi, rax
test rax, rax
je 0x140001a09
mov rax, qword [0x14002af80]
lea r8d, [rsi + 9]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
shr rax, 0x18
mov rcx, rdi
add al, 0xc
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x23], al
call fcn.140006bb0
mov rbp, rax
test rax, rax
je 0x1400019fc
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.14000f154
test eax, eax
js 0x1400019fc
lea rcx, [rbx + 0x18]
mov r9, rdi
lea edx, [rsi + 0x59]
lea r8d, [rsi + 2]
call fcn.14000ee1c
cmp rax, 1
jb 0x1400019fc
mov ecx, dword [rbx + 0x20]
xor r8d, r8d
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rbx + 0x24], eax
mov eax, dword [rbx + 0x28]
bswap eax
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x2c]
bswap ecx
mov ecx, ecx
sub rbp, rcx
mov dword [rbx + 0x20], ecx
bswap eax
mov dword [rbx + 0x2c], eax
add rbp, 0x58
mov qword [rbx], rbp
mov rcx, rdi
mov dword [rbx + 0x5078], 0
mov dword [0x14003bc94], eax
mov edx, dword [rbx + 0x24]
add rdx, qword [rbx]
call fcn.14000f154
movsxd rcx, dword [rbx + 0x28]
call fcn.1400138d0
mov qword [rbx + 8], rax
test rax, rax
je 0x1400019fc
movsxd rdx, dword [rbx + 0x28]
lea r8d, [rsi + 2]
mov r9, rdi
mov rcx, rax
call fcn.14000ee1c
cmp rax, 1
jb 0x1400019fc
movsxd rax, dword [rbx + 0x28]
mov rcx, rdi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call fcn.14000eb90
test eax, eax
jne 0x1400019fc
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jae 0x1400019fa
nop word [rax + rax]
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 rax, rcx
cmp rax, qword [rbx + 0x10]
jb 0x1400019d0
xor esi, esi
mov rcx, rdi
call fcn.14000eacc
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a620
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140005da0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x4030
call fcn.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400074a0
mov rdi, rax
test rax, rax
je 0x140005ec2
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.1400138bc
test ebx, ebx
je 0x140005ec2
lea rcx, [rsp + 0x20]
call fcn.1400072f0
test eax, eax
je 0x140005e1e
lea rcx, [rsp + 0x20]
call fcn.140015e34
jmp 0x140005e30
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140016130
mov rbx, rax
test rax, rax
je 0x140005ec2
xor edx, edx
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
call fcn.14000bd40
mov edx, 0x5c
mov rcx, rbx
call fcn.14000bbb4
mov rdi, rax
test rax, rax
je 0x140005eb2
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x2020]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140015eb8
xor edx, edx
lea rcx, [rsp + 0x2020]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000bbb4
mov rdi, rax
test rax, rax
jne 0x140005e70
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
jmp 0x140005ec4
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a620
mov rbx, qword [rsp + 0x4048]
add rsp, 0x4030
pop rdi
ret
Function at 0x140005ef0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov qword [rsp + 0x2078], rbp
lea rdx, [0x14002a588]
mov rbp, r8
call fcn.140002bb0
mov r9, rbx
mov qword [rsp + 0x28], rbp
lea r8, str._s_c_s
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
mov rdi, rax
call fcn.140001c40
cmp eax, 0x1000
jl 0x140005f66
xor esi, esi
mov ebx, esi
jmp 0x140005ffa
lea rcx, [rsp + 0x30]
call fcn.140002b40
xor esi, esi
cmp eax, 1
jne 0x140005fd2
mov eax, dword [0x14003b004]
cmp eax, 0xffffffff
jne 0x140005fc3
lea rcx, str.PYINSTALLER_STRICT_UNPACK_MODE
call fcn.1400064a0
mov r8, rax
test rax, rax
je 0x140005fcc
movzx edx, byte [rax]
sub edx, 0x30
jne 0x140005fa8
movzx edx, byte [rax + 1]
movzx ecx, sil
sub edx, ecx
mov eax, esi
test edx, edx
mov rcx, r8
setne al
mov dword [0x14003b004], eax
call fcn.1400138bc
mov eax, dword [0x14003b004]
test eax, eax
je 0x140005fd2
mov rbx, rsi
jmp 0x140005ffa
mov dword [0x14003b004], esi
mov rdx, rbp
mov rcx, rbx
call fcn.1400060f0
test eax, eax
jns 0x140005fe6
mov rbx, rsi
jmp 0x140005ffa
lea rdx, [0x14002afd4]
lea rcx, [rsp + 0x30]
call fcn.140002bb0
mov rbx, rax
mov rbp, qword [rsp + 0x2078]
test rdi, rdi
je 0x1400060b9
mov rcx, rdi
test rbx, rbx
je 0x1400060c1
call fcn.14000eb64
test eax, eax
jne 0x1400060a5
nop dword [rax]
nop dword [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.14000ee1c
test rax, rax
jne 0x140006061
mov rcx, rdi
call fcn.14000eb90
test eax, eax
je 0x14000608a
mov rcx, rdi
jmp 0x14000609b
mov r9, rbx
lea rcx, [rsp + 0x1030]
mov r8, rax
mov edx, 1
call fcn.14000f55c
test rax, rax
je 0x140006098
mov rcx, rbx
call fcn.14000eb90
test eax, eax
jne 0x140006098
mov rcx, rdi
call fcn.14000eb64
test eax, eax
je 0x140006030
jmp 0x1400060a5
mov rcx, rbx
call fcn.140017234
mov esi, 0xffffffff
mov rcx, rdi
call fcn.14000eacc
mov rcx, rbx
call fcn.14000eacc
mov eax, esi
jmp 0x1400060cb
test rbx, rbx
je 0x1400060c6
mov rcx, rbx
call fcn.14000eacc
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000a620
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006280
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x1400062fe
lea rcx, [0x14002af8c]
call fcn.1400064a0
mov rcx, rbp
mov rsi, rax
call fcn.140005da0
mov r14, rax
test rax, rax
je 0x1400063db
mov rdx, rax
lea rcx, [0x14002af90]
call fcn.140016560
mov rcx, r14
mov ebx, eax
call fcn.1400138bc
test ebx, ebx
jne 0x1400063db
lea rdx, [rsp + 0x40]
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 + 0x20]
call fcn.140006e60
nop dword [rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140017218
mov rcx, rax
mov rbx, rax
call fcn.140007450
test eax, eax
je 0x1400063e2
mov rcx, rbx
call fcn.1400138bc
inc edi
cmp edi, 5
jl 0x140006330
test rbp, rbp
je 0x1400063db
xor r8d, r8d
xor ecx, ecx
test rsi, rsi
je 0x1400063b9
mov rdx, rsi
call fcn.1400074a0
xor r8d, r8d
lea rdx, [0x14002af8c]
xor ecx, ecx
mov rdi, rax
call fcn.1400074a0
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140016560
mov rcx, rbx
call fcn.1400138bc
mov rcx, rdi
call fcn.1400138bc
mov rcx, rsi
call fcn.1400138bc
xor eax, eax
jmp 0x140006470
lea rdx, [0x14002af8c]
call fcn.1400074a0
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400138bc
xor eax, eax
jmp 0x140006470
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.140007540
mov rcx, rbx
call fcn.1400138bc
test rbp, rbp
je 0x14000646b
xor r8d, r8d
xor ecx, ecx
test rsi, rsi
je 0x140006449
mov rdx, rsi
call fcn.1400074a0
xor r8d, r8d
lea rdx, [0x14002af8c]
xor ecx, ecx
mov rdi, rax
call fcn.1400074a0
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140016560
mov rcx, rbx
call fcn.1400138bc
mov rcx, rdi
call fcn.1400138bc
mov rcx, rsi
jmp 0x140006466
lea rdx, [0x14002af8c]
call fcn.1400074a0
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.1400138bc
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000a620
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400064a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400074a0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140006536
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.140007540
test rax, rax
je 0x140006536
cmp byte [rax], 0
je 0x140006536
mov rcx, rax
call fcn.14001910c
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a620
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000a620
add rsp, 0x4038
ret

Function at 0x140006950
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.1400074a0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.1400138bc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006990
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.14000a5c0
sub rsp, rax
mov rax, qword [0x14003b018]
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.1400074a0
mov ebx, 1
lea rcx, [0x140005d80]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
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.140013c30
mov rcx, rax
call fcn.140019184
mov ecx, eax
call fcn.140016da4
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.140013c30
mov rcx, rax
call fcn.140019184
mov ecx, eax
call fcn.140016da4
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.140013c30
mov rcx, rax
call fcn.140019184
mov ecx, eax
call fcn.140016da4
cmp rax, 0xffffffffffffffff
cmove rax, rdi
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 0x140006b10
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 0x140006b15
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000a620
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret