joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012d8e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18012d909
lea ecx, [rbx + 0x57]
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18012d946
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012d946
test al, 0x10
jne 0x18012d946
test al, 1
je 0x18012d901
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x18012d960
Capabilities:
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x18012da88
test rdx, rdx
jne 0x18012d99d
test r8, r8
je 0x18012da88
lea rcx, [rsp + 0x141]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x140], 0
call fcn.1800fb1e0
lea r8, str._s_s
lea rcx, [rsp + 0x140]
mov r9, rsi
mov edx, 0x103
mov qword [rsp + 0x20], rbx
call fcn.18018c15c
lea rcx, [rsp + 0x140]
xor edx, edx
call fcn.18012d340
test eax, eax
jne 0x18012da00
mov dword [0x1802412bc], 2
lea ecx, [rax + 2]
jmp 0x18012da97
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.1800fb1e0
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x103
mov qword [rsp + 0x20], rdi
call fcn.18018c15c
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18012d340
test eax, eax
je 0x18012da56
mov dword [0x1802412bc], 0xb7
mov ecx, 0xb7
jmp 0x18012da97
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x18012da81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012da9d
mov ecx, eax
jmp 0x18012da97
mov eax, 1
jmp 0x18012da9f
mov dword [0x1802412bc], 0x57
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x18012dac0
Capabilities:
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x18012dc25
test rdx, rdx
jne 0x18012dafd
test r8, r8
je 0x18012dc25
mov qword [rsp + 0x498], rbp
lea rcx, [rsp + 0x242]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], bp
call fcn.1800fb1e0
lea r8, [0x1801aa048]
lea rcx, [rsp + 0x240]
mov r9, rsi
mov edx, 0x103
mov qword [rsp + 0x20], rbx
call fcn.1800fc90c
lea rcx, [rsp + 0x240]
xor edx, edx
call fcn.18012d3b0
test eax, eax
jne 0x18012db90
mov dword [0x1802412bc], 2
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbp, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bp
call fcn.1800fb1e0
lea r8, [0x1801aa048]
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x103
mov qword [rsp + 0x20], rdi
call fcn.1800fc90c
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18012d3b0
test eax, eax
je 0x18012dbe9
mov dword [0x1802412bc], 0xb7
mov ecx, 0xb7
jmp 0x18012db65
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x18012dc1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012db6b
mov ecx, eax
jmp 0x18012db65
mov eax, 1
jmp 0x18012db6d
mov ecx, 0x57
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18012db75
Function at 0x18012e5f0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r12
sub rsp, 0x150
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r12, rcx
test rcx, rcx
jne 0x18012e61a
xor eax, eax
jmp 0x18012e7a3
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rbp
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x148], rsi
mov ebx, 1
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x140], rdi
call fcn.1800fb1e0
lea rcx, [rsp + 0x20]
mov r8d, 0x103
mov rdx, r12
call fcn.1800fca20
lea edx, [rbx + 0x5b]
lea rcx, [rsp + 0x20]
call fcn.1800fc8f0
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov rsi, rax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x18012e6c5
cmp byte [rsp + 0x20], 0x5c
jne 0x18012e6c5
cmp byte [rsp + 0x21], 0x5c
jne 0x18012e6c5
lea edx, [rbx + 0x5b]
lea rcx, [rsp + 0x22]
call fcn.1800fc8f0
test rax, rax
je 0x18012e741
lea rcx, [rax + 1]
lea edx, [rbx + 0x5b]
call fcn.1800fc8f0
mov rsi, rax
test rsi, rsi
je 0x18012e741
nop word [rax + rax]
lea rcx, [rsp + 0x20]
mov byte [rsi], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
mov edi, eax
and ebp, 0x10
jne 0x18012e70c
test al, 1
je 0x18012e6fb
mov edx, eax
lea rcx, [rsp + 0x20]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test eax, eax
je 0x18012e781
cmp edi, 0xffffffff
je 0x18012e715
test ebp, ebp
jne 0x18012e724
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x18012e781
lea rcx, [rsi + 1]
mov edx, 0x5c
mov byte [rsi], 0x5c
call fcn.1800fc8f0
mov rsi, rax
test rax, rax
jne 0x18012e6d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18012e774
test al, 0x10
jne 0x18012e781
test al, 1
je 0x18012e765
and eax, 0xfffffffe
mov rcx, r12
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test eax, eax
je 0x18012e781
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x170]
mov eax, ebx
mov rbx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x150
pop r12
ret
Function at 0x18012e7c0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r12
sub rsp, 0x260
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, rcx
test rcx, rcx
jne 0x18012e7ea
xor eax, eax
jmp 0x18012e9a3
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x258], rsi
mov qword [rsp + 0x250], rdi
mov qword [rsp + 0x248], r13
lea rcx, [rsp + 0x22]
mov qword [rsp + 0x240], r14
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov ebx, 1
mov word [rsp + 0x20], r14w
call fcn.1800fb1e0
lea rcx, [rsp + 0x20]
mov r8d, 0x103
mov rdx, r12
call fcn.1800fb420
mov r13d, 0x5c
lea rcx, [rsp + 0x20]
mov edx, r13d
call fcn.1800fbc74
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov rsi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x18012e8b2
cmp word [rsp + 0x20], r13w
jne 0x18012e8b2
cmp word [rsp + 0x22], r13w
jne 0x18012e8b2
lea rcx, [rsp + 0x24]
mov edx, r13d
call fcn.1800fbc74
test rax, rax
je 0x18012e931
lea rcx, [rax + 2]
mov edx, r13d
call fcn.1800fbc74
mov rsi, rax
test rsi, rsi
je 0x18012e931
nop word [rax + rax]
lea rcx, [rsp + 0x20]
mov word [rsi], r14w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov edi, eax
and ebp, 0x10
jne 0x18012e8fd
test al, 1
je 0x18012e8ec
mov edx, eax
lea rcx, [rsp + 0x20]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
je 0x18012e971
cmp edi, 0xffffffff
je 0x18012e906
test ebp, ebp
jne 0x18012e915
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x18012e971
lea rcx, [rsi + 2]
mov edx, r13d
mov word [rsi], r13w
call fcn.1800fbc74
mov rsi, rax
test rax, rax
jne 0x18012e8c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012e964
test al, 0x10
jne 0x18012e971
test al, 1
je 0x18012e955
and eax, 0xfffffffe
mov rcx, r12
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
je 0x18012e971
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
mov r14, qword [rsp + 0x240]
mov r13, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rsi, qword [rsp + 0x258]
mov rbp, qword [rsp + 0x280]
mov eax, ebx
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x260
pop r12
ret
Function at 0x18012e9c0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x18012e9f4
lea ecx, [rbx + 0x57]
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18012ea1a
test al, 0x10
jne 0x18012ea5a
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x18012ea5a
mov rcx, rbx
call fcn.18012e5f0
test eax, eax
jne 0x18012ea5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012ea4d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x18012ea69
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18012ea80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x18012eab4
lea ecx, [rbx + 0x57]
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012eada
test al, 0x10
jne 0x18012eb1a
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18012eb1a
mov rcx, rbx
call fcn.18012e7c0
test eax, eax
jne 0x18012eb1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012eb0d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x18012eb29
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180130e70
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x180130e99
lea ecx, [rbx + 0x57]
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x180130cf0]
lea edx, [r9 + 0x20]
call fcn.18012f040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
test eax, eax
jne 0x180130eea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x180130eea
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180130f00
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x180130f29
lea ecx, [rbx + 0x57]
mov dword [0x1802412bc], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x180130db0]
lea edx, [r9 + 0x20]
call fcn.18012f1b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
test eax, eax
jne 0x180130f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1802412bc], eax
test eax, eax
je 0x180130f7a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180132690
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x18012bbda
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012b8a0
jmp 0x18012bbe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012bbf6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
jmp 0x18012bb70
Function at 0x1801329e0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x240
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, r8
mov esi, edx
mov rbx, rcx
call fcn.18012a260
test eax, eax
je 0x18012c0d0
mov r8, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012bf10
jmp 0x18012c15a
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1800fb1e0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18012c130
lea rdx, [0x1801a9f18]
lea rcx, [rsp + 0x20]
mov r8d, 0x103
call fcn.1800fd894
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012b8a0
jmp 0x18012c136
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1802412bc], eax
test eax, eax
je 0x18012c14c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x240
pop rsi
pop rbp
pop rbx
ret
jmp 0x18012c090

Function at 0x180132dc0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180132ed4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x180132e41
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x20], 0x5c
jne 0x180132e41
mov word [rsp + rax*2 + 0x20], bx
lea rcx, [rsp + 0x20]
call fcn.18012b6d0
test eax, eax
je 0x180132ec0
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.1800fb1e0
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180132380
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180132ec0
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x20], bx
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.18012b8a0
jmp 0x180132eda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x1802412bc], eax
test eax, eax
je 0x180132ef0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x450
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180132dc0
Function at 0x180133c80
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
lea rcx, str.ALLUSERSPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180133d95
lea rcx, [rsp + 0x20]
call fcn.18012b6d0
test eax, eax
je 0x180133d7c
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180132380
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180133d74
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012b8a0
mov eax, 1
jmp 0x180133d97
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
jmp 0x180133c80

Function at 0x180133ef0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
lea rcx, str.USERPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180134005
lea rcx, [rsp + 0x20]
call fcn.18012b6d0
test eax, eax
je 0x180133fec
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180132380
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180133fe4
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012b8a0
mov eax, 1
jmp 0x180134007
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801359c0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180132ed4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x180132e41
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x20], 0x5c
jne 0x180132e41
mov word [rsp + rax*2 + 0x20], bx
lea rcx, [rsp + 0x20]
call fcn.18012b6d0
test eax, eax
je 0x180132ec0
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.1800fb1e0
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180132380
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180132ec0
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x20], bx
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.18012b8a0
jmp 0x180132eda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x1802412bc], eax
test eax, eax
je 0x180132ef0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x450
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180132dc0

Function at 0x180135e40
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
lea rcx, str.ALLUSERSPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180133d95
lea rcx, [rsp + 0x20]
call fcn.18012b6d0
test eax, eax
je 0x180133d7c
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800fb1e0
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180132380
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180133d74
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800fb420
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18012b8a0
mov eax, 1
jmp 0x180133d97
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
jmp 0x180133c80