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

Disassembly:
push r12
sub rsp, 0x260
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, rcx
test rcx, rcx
jne 0x180030eda
xor eax, eax
jmp 0x180031093
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.180038130
lea rcx, [rsp + 0x20]
mov r8d, 0x103
mov rdx, r12
call fcn.1800380a0
mov r13d, 0x5c
lea rcx, [rsp + 0x20]
mov edx, r13d
call fcn.18003915c
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 0x180030fa2
cmp word [rsp + 0x20], r13w
jne 0x180030fa2
cmp word [rsp + 0x22], r13w
jne 0x180030fa2
lea rcx, [rsp + 0x24]
mov edx, r13d
call fcn.18003915c
test rax, rax
je 0x180031021
lea rcx, [rax + 2]
mov edx, r13d
call fcn.18003915c
mov rsi, rax
test rsi, rsi
je 0x180031021
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 0x180030fed
test al, 1
je 0x180030fdc
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 0x180031061
cmp edi, 0xffffffff
je 0x180030ff6
test ebp, ebp
jne 0x180031005
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x180031061
lea rcx, [rsi + 2]
mov edx, r13d
mov word [rsi], r13w
call fcn.18003915c
mov rsi, rax
test rax, rax
jne 0x180030fb0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031054
test al, 0x10
jne 0x180031061
test al, 1
je 0x180031045
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 0x180031061
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.180038100
add rsp, 0x260
pop r12
ret
Function at 0x1800310b0
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 0x1800310e4
lea ecx, [rbx + 0x57]
mov dword [0x180100b34], 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 0x18003110a
test al, 0x10
jne 0x18003114a
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 0x18003114a
mov rcx, rbx
call fcn.180030ce0
test eax, eax
jne 0x18003114a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x18003113d
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 0x180031159
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 0x180031170
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 0x1800311a4
lea ecx, [rbx + 0x57]
mov dword [0x180100b34], 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 0x1800311ca
test al, 0x10
jne 0x18003120a
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 0x18003120a
mov rcx, rbx
call fcn.180030eb0
test eax, eax
jne 0x18003120a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x1800311fd
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 0x180031219
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 0x180032930
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x180032959
lea ecx, [rbx + 0x57]
mov dword [0x180100b34], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x1800327b0]
lea edx, [r9 + 0x20]
call fcn.180031730
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 0x1800329aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x1800329aa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1800329e9
lea ecx, [rbx + 0x57]
mov dword [0x180100b34], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x180032870]
lea edx, [r9 + 0x20]
call fcn.1800318a0
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 0x180032a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x180032a3a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180034150
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rsi, r8
mov edi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x18002e244
lea r8, [rsp + 0x20]
mov r9, rsi
mov edx, edi
mov rcx, rbx
call fcn.18002df10
jmp 0x18002e24a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x180100b34], eax
test eax, eax
je 0x18002e25e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180038100
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
jmp 0x18002e1e0
Function at 0x1800344a0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
call fcn.18002caf0
test eax, eax
je 0x18002e70d
mov r8, rsi
mov edx, edi
mov rcx, rbx
call fcn.18002e580
jmp 0x18002e784
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18002e763
lea rdx, [0x1800b1b90]
lea rcx, [rsp + 0x20]
mov r8d, 0x103
call fcn.18003d900
lea r8, [rsp + 0x20]
mov r9, rsi
mov edx, edi
mov rcx, rbx
call fcn.18002df10
jmp 0x18002e769
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x180100b34], eax
test eax, eax
je 0x18002e77d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180038100
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
jmp 0x18002e6d0

Function at 0x180034720
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
test eax, eax
je 0x180034836
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x1800347a6
lea eax, [rcx - 1]
mov ecx, eax
movzx eax, byte [rsp + rax + 0x20]
cmp byte [rsp + rcx + 0x20], 0x5c
cmove eax, ebx
mov byte [rsp + rcx + 0x20], al
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180034822
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], bl
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180034822
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], bl
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.18002df10
jmp 0x18003483c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x180100b34], eax
test eax, eax
je 0x180034852
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180034720
Function at 0x180035610
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
lea rcx, [0x1800ba0f8]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x18003571c
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180035703
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x288], rdi
mov byte [rsp + 0x130], 0
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x1800356fb
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], 0
mov rdi, qword [rsp + 0x288]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18002df10
mov eax, 1
jmp 0x18003571e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop rsi
pop rbp
pop rbx
ret
jmp 0x180035610

Function at 0x180035880
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
lea rcx, [0x1800ba128]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x18003598c
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180035973
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x288], rdi
mov byte [rsp + 0x130], 0
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x18003596b
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], 0
mov rdi, qword [rsp + 0x288]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18002df10
mov eax, 1
jmp 0x18003598e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop rsi
pop rbp
pop rbx
ret
jmp 0x180035880
Function at 0x180036630
Capabilities:
Check if file exists
Move file

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x150
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x180036801
test rdx, rdx
je 0x180036801
xor edx, edx
call fcn.18002fa30
test eax, eax
jne 0x18003668f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x18003668b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800366fb
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x148], r12
mov rcx, rbx
mov qword [rsp + 0x140], r13
xor r12d, r12d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea r13d, [r12 + 1]
cmp eax, 0xffffffff
je 0x1800366cd
test al, 0x10
jne 0x1800366cd
mov r12d, r13d
test r12b, al
cmovne edi, r13d
test r13b, bpl
je 0x180036716
test r12d, r12d
je 0x180036716
mov dword [0x180100b34], 0x50
xor eax, eax
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180038100
add rsp, 0x150
pop rsi
pop rbp
pop rbx
ret
test bpl, 2
je 0x18003672c
test edi, edi
je 0x18003672c
mov dword [0x180100b34], 5
jmp 0x1800366e1
cmp eax, 0xffffffff
je 0x180036744
mov rcx, rbx
test al, 0x10
je 0x18003673f
call fcn.180032930
jmp 0x180036744
call fcn.18002ff50
mov rdx, rbx
mov rcx, rsi
mov dword [0x180100b34], 0
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
test eax, eax
jne 0x1800367dd
test bpl, 4
jne 0x1800367e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1800367e4
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], dil
call fcn.180038130
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call fcn.18002da10
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.180030620
test eax, eax
jne 0x1800367c5
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1800310b0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x1800367dd
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x1800366e3
test bpl, 8
je 0x1800367c5
mov rdx, rbx
mov rcx, rsi
call fcn.1800304c0
test eax, eax
je 0x1800367c5
mov eax, r13d
jmp 0x1800366e3
mov ecx, 0x57
mov dword [0x180100b34], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800366fb
jmp 0x180036630
Function at 0x180037490
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
test eax, eax
je 0x180034836
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x1800347a6
lea eax, [rcx - 1]
mov ecx, eax
movzx eax, byte [rsp + rax + 0x20]
cmp byte [rsp + rcx + 0x20], 0x5c
cmove eax, ebx
mov byte [rsp + rcx + 0x20], al
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180034822
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], bl
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180034822
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], bl
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.18002df10
jmp 0x18003483c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x180100b34], eax
test eax, eax
je 0x180034852
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180034720

Function at 0x180037910
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
lea rcx, [0x1800ba0f8]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x18003571c
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180035703
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x288], rdi
mov byte [rsp + 0x130], 0
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x1800356fb
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], 0
mov rdi, qword [rsp + 0x288]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18002df10
mov eax, 1
jmp 0x18003571e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop rsi
pop rbp
pop rbx
ret
jmp 0x180035610
Function at 0x1800379d0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x250
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180038130
lea rdx, [rsp + 0x20]
lea rcx, [0x1800ba128]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x18003598c
lea rcx, [rsp + 0x20]
call fcn.18002dcd0
test eax, eax
je 0x180035973
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x288], rdi
mov byte [rsp + 0x130], 0
call fcn.180038130
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180033ca0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x130]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x18003596b
movsxd rdi, ecx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.180039810
mov byte [rsp + rdi + 0x20], 0
mov rdi, qword [rsp + 0x288]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.18002df10
mov eax, 1
jmp 0x18003598e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180038100
add rsp, 0x250
pop rsi
pop rbp
pop rbx
ret
jmp 0x180035880
Function at 0x180037d10
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x150
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x180036801
test rdx, rdx
je 0x180036801
xor edx, edx
call fcn.18002fa30
test eax, eax
jne 0x18003668f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x18003668b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800366fb
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x148], r12
mov rcx, rbx
mov qword [rsp + 0x140], r13
xor r12d, r12d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea r13d, [r12 + 1]
cmp eax, 0xffffffff
je 0x1800366cd
test al, 0x10
jne 0x1800366cd
mov r12d, r13d
test r12b, al
cmovne edi, r13d
test r13b, bpl
je 0x180036716
test r12d, r12d
je 0x180036716
mov dword [0x180100b34], 0x50
xor eax, eax
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180038100
add rsp, 0x150
pop rsi
pop rbp
pop rbx
ret
test bpl, 2
je 0x18003672c
test edi, edi
je 0x18003672c
mov dword [0x180100b34], 5
jmp 0x1800366e1
cmp eax, 0xffffffff
je 0x180036744
mov rcx, rbx
test al, 0x10
je 0x18003673f
call fcn.180032930
jmp 0x180036744
call fcn.18002ff50
mov rdx, rbx
mov rcx, rsi
mov dword [0x180100b34], 0
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
test eax, eax
jne 0x1800367dd
test bpl, 4
jne 0x1800367e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1800367e4
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], dil
call fcn.180038130
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call fcn.18002da10
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.180030620
test eax, eax
jne 0x1800367c5
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1800310b0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180100b34], eax
test eax, eax
je 0x1800367dd
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x1800366e3
test bpl, 8
je 0x1800367c5
mov rdx, rbx
mov rcx, rsi
call fcn.1800304c0
test eax, eax
je 0x1800367c5
mov eax, r13d
jmp 0x1800366e3
mov ecx, 0x57
mov dword [0x180100b34], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800366fb
jmp 0x180036630
Function at 0x18003f107
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800e7b20]
jne 0x18003811a
rol rcx, 0x10
test cx, 0xffff
jne 0x180038116
repz ret
ror rcx, 0x10
jmp 0x18003f060
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180100d10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180100e08]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18003f0e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180100d10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18003f107
mov rax, qword [rsp + 0x88]
mov qword [0x180100e08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180100da8], rax
mov rax, qword [0x180100e08]
mov qword [0x180100c80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180100d90], rax
mov dword [0x180100c70], 0xc0000409
mov dword [0x180100c74], 1
mov rax, qword [0x1800e7b20]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800e7b28]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180100d08], eax
mov ecx, 1
call fcn.180050fc4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800ba620]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180100d08], 0
jne 0x18003f18e
mov ecx, 1
call fcn.180050fc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret