joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053970
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.140040ad0
mov rsi, rdx
test rax, rax
je 0x140053a26
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140053a1a
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x1400539f2
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140053a07
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140001c60
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140001c60
mov qword [rdi], 0
jmp 0x140053b85
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.140040d60
cmp dword [rbp - 0x48], 2
jne 0x140053aa7
mov rax, qword [rbp - 0x40]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140053a87
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x140053a5f
mov rcx, r14
call rax
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x140053a74
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.140001c60
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140001c60
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 0x10]
test rsi, rsi
je 0x140053af5
mov qword [rbp - 0x48], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140053b71
mov rbx, qword [rbp - 0x48]
jmp 0x140053af7
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140053b60
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140053b60
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140053b7d
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140053b7d
call fcn.140099ac4
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140058af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x14009c070]
test esi, esi
je 0x140058bb9
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140058bae
je 0x140058b4b
xor ebx, ebx
test rdi, rdi
je 0x140058b4f
test byte [rdi], 1
mov qword [rdi], 0
mov eax, dword [rdi + 0x10]
cmove eax, ebx
mov r14d, 0
cmovne r14, qword [rdi + 8]
mov ebx, eax
jmp 0x140058b52
xor eax, eax
jmp 0x140058bae
xor r14d, r14d
mov rax, qword [0x1400c1a48]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001c50
test rax, rax
je 0x140058bda
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140058bab
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140001c60
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x14009c058]
call fcn.140052910
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140058b23
jmp 0x140058bae
mov ecx, 8
mov edx, 0x18
call fcn.1400766e0
int3

Function at 0x140058bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x14009c090]
test esi, esi
je 0x140058c26
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140058c41
add rax, 4
jmp 0x140058cba
lea rcx, [0x14009c078]
call fcn.140052910
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140058c1d
je 0x140058cb8
xor r14d, r14d
test rdi, rdi
je 0x140058c59
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmovne r14d, eax
mov rax, qword [0x1400c1a48]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call fcn.140001c50
test rax, rax
je 0x140058cc7
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140058cb3
mov edx, 8
mov r8d, 4
mov rcx, rdi
call fcn.140001c60
mov rax, r15
jmp 0x140058cba
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.1400766e0
int3
Function at 0x140058ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x14009c0d0]
test esi, esi
je 0x140058db2
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140058da9
je 0x140058d2d
test rdi, rdi
je 0x140058d31
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140058d33
mov rbx, qword [rdi + 8]
jmp 0x140058d33
xor eax, eax
jmp 0x140058da9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1400c1a48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001c50
test rax, rax
je 0x140058dd3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140058da6
mov rax, qword [rdi]
test rax, rax
je 0x140058d93
lock dec qword [rax]
jne 0x140058d93
mov rcx, rdi
call fcn.140013b20
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140001c60
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14009c0b8]
call fcn.140052910
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140058d11
jmp 0x140058da9
mov ecx, 8
mov edx, 0x10
call fcn.1400766e0
ud2

Function at 0x140058e10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x14009c110]
test esi, esi
je 0x140058ec1
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140058eb8
je 0x140058e59
test rdi, rdi
je 0x140058e5d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140058e5f
mov rbx, qword [rdi + 8]
jmp 0x140058e5f
xor eax, eax
jmp 0x140058eb8
xor ebx, ebx
mov rax, qword [0x1400c1a48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001c50
test rax, rax
je 0x140058ee2
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140058eb5
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140001c60
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14009c0f8]
call fcn.140052910
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140058e3d
jmp 0x140058eb8
mov ecx, 8
mov edx, 0x10
call fcn.1400766e0
int3
Function at 0x140058f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x14009c130]
test esi, esi
je 0x140058fd2
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140058fc9
je 0x140058f4d
test rdi, rdi
je 0x140058f51
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140058f53
mov rbx, qword [rdi + 8]
jmp 0x140058f53
xor eax, eax
jmp 0x140058fc9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1400c1a48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001c50
test rax, rax
je 0x140058ff3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140058fc6
mov rax, qword [rdi]
test rax, rax
je 0x140058fb3
lock dec qword [rax]
jne 0x140058fb3
mov rcx, rdi
call fcn.140013b80
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140001c60
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14009c118]
call fcn.140052910
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140058f31
jmp 0x140058fc9
mov ecx, 8
mov edx, 0x10
call fcn.1400766e0
ud2
Function at 0x14009a6f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14009b490
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14009b490
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14009a760
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d5254]
mov rbx, rcx
test esi, esi
jle 0x14009a890
mov rax, qword [0x1400d5258]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009a7ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009a835
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009a790
mov rcx, rbx
call fcn.14009b1b0
mov rdi, rax
test rax, rax
je 0x14009a8b2
mov rax, qword [0x1400d5258]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009b2f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d5258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009a897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009a82e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009a840
add dword [0x1400d5254], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d5258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009a82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009a6f0
nop dword [rax]
xor esi, esi
jmp 0x14009a7b8
mov rax, qword [0x1400d5258]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009a6f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009a6f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009ae20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d52c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d52a0]
test rbx, rbx
je 0x14009ae7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14009ae73
test rsi, rsi
je 0x14009ae73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009ae58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009b1b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009b1d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009b1d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009b1d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009b22d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009b224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009b1d0
add rax, 0x28
cmp rax, r9
jne 0x14009b210
xor eax, eax
ret

Function at 0x14009b230
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1990]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009b24f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009b258
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009b24f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14009b2f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009b30f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009b318
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1405f6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405f61df
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 0x1405f6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f606f
add dl, dl
jne 0x1405f6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f60f6
xor eax, eax
add dl, dl
jne 0x1405f60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f61ad
add dl, dl
jne 0x1405f60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f607e
mov eax, 1
add dl, dl
jne 0x1405f6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f60fb
sub eax, ebx
mov ebx, 1
jne 0x1405f614c
mov ecx, 1
add dl, dl
jne 0x1405f612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f615d
cmp eax, 0x7d00
jae 0x1405f619b
cmp eax, 0x500
jb 0x1405f6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
cmp eax, 0x7f
ja 0x1405f619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f61d2
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 0x1405f607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400081c0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000c8c0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.140009400
mov rdi, rax
test rax, rax
jne 0x140008206
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002810
xor eax, eax
jmp 0x14000838f
mov r8d, 0x1000
mov qword [rsp + 0x4058], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140014fa0
test ebx, ebx
jne 0x140008243
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002810
xor eax, eax
jmp 0x140008387
lea rcx, [rsp + 0x30]
call fcn.140009270
test eax, eax
je 0x1400082af
cmp word [rsp + 0x34], 0x5c
je 0x140008275
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140008262
mov eax, dword [0x14002d670]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x1400082a0
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140002810
xor eax, eax
jmp 0x140008387
lea rcx, [rsp + 0x30]
call fcn.1400179dc
jmp 0x140008387
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140017e78
mov rbx, rax
test rax, rax
jne 0x1400082dc
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002810
xor eax, eax
jmp 0x140008387
mov edx, 0x5c
mov rcx, rbx
call fcn.14000d640
mov rdi, rax
test rax, rax
je 0x14000833e
mov r9, rdi
mov qword [rsp + 0x20], rbx
sub r9, rbx
lea r8, [0x14002d798]
sar r9, 1
lea rcx, [rsp + 0x2030]
mov edx, 0x1000
call fcn.1400026b0
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000d640
mov rdi, rax
test rax, rax
jne 0x1400082f1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008384
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140008384
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
mov edx, eax
lea rcx, str.CreateDirectory
call fcn.140002c50
mov rcx, rbx
call fcn.140014fa0
xor eax, eax
jmp 0x140008387
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000c5c0
add rsp, 0x4040
pop rdi
ret
Function at 0x14006ebe0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, [0x140a7b608]
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x14006ec20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14006ecc0
jmp 0x14006ecaf
jae 0x14006ed8e
cmp r8, 0x201
jae 0x14006ecc0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14006ed26
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14006ecfe
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140092e40
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14006ed4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006edfa
mov r8d, r13d
cmp r12, r8
jne 0x14006eca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006ee2e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14006ecaf
jmp 0x14006ecc0
cmp r14, r8
jb 0x14006ee48
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140071e80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14006ede3
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001a0f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14006edce
jmp 0x14006ede3
lea rcx, [0x140a78e98]
lea r8, [0x140a7b750]
mov edx, 0x28
call fcn.140093b20
jmp 0x14006ee5d
lea rax, [0x140a7b738]
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140093ff0
ud2
Function at 0x140075a20
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.1400921a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea rbx, [0x14007ae00]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.14007ad20
mov r14, rdx
test rax, rax
jne 0x140075bbc
test r14, r14
je 0x140075b8c
cmp r14, 0x1000
ja 0x140075c60
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x140075c37
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x140075b86
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x140075b50
cmp dword [rbp + 0xff8], 0
jne 0x140075b8c
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x140075af0
jmp 0x140075a9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x140075b8c
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x140075bfb
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140075c1b
mov r8, qword [rax + 0x10]
call fcn.14001a0f0
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.14001a0f0
jmp 0x140075b8c
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, [0x140a7b0a8]
mov rcx, r13
mov rdx, r14
call fcn.140094060
jmp 0x140075c89
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, [0x140a7b0a8]
mov edx, 0x1000
mov rcx, r14
call fcn.140093ff0
ud2