joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800608d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rcx, qword [rcx]
mov rsi, r9
mov r14, r8
mov rdi, rdx
test rcx, rcx
je 0x180060a42
lea rdx, str.RegQueryValueExW
mov qword [rsp + 0x280], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180060a3a
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.1800a4070
mov rcx, r14
mov dword [rsp + 0x30], 0x208
call fcn.18000618c
mov rdx, rax
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call rbx
lea rcx, [rsp + 0x60]
call fcn.18000608c
lea rcx, [rsi + 0x50]
mov r8, rax
lea rdx, [rsp + 0x60]
call fcn.180005f18
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
lea rdx, str.Profile
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call rbx
lea rcx, [rsp + 0x60]
call fcn.18000608c
lea rcx, [rsi + 0x70]
mov r8, rax
lea rdx, [rsp + 0x60]
call fcn.180005f18
xor eax, eax
mov dword [rsp + 0x38], 0x65004b
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 0x620079
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov dword [rsp + 0x40], 0x61006f
mov dword [rsp + 0x44], 0x640072
mov dword [rsp + 0x48], 0x61004c
mov dword [rsp + 0x4c], 0x6f0079
mov dword [rsp + 0x50], 0x740075
mov dword [rsp + 0x30], 4
call rbx
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x288
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180061db0
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x178], rbx
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x28], 0
mov ecx, 1
call fcn.1800a0a38
mov qword [rsp + 0x28], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call fcn.1800a4070
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180061e32
cmp dword [rsp + 0x34], 6
setae cl
mov rax, qword [rsp + 0x28]
mov byte [rax], cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.180082af0
test al, al
je 0x180061e5a
lea rcx, [rsp + 0x28]
call fcn.1800823b0
test al, al
jne 0x180061e5a
xor bl, bl
jmp 0x180061ec8
lea rdx, [rbx + 8]
xor ecx, ecx
call fcn.18006c950
test al, al
jne 0x180061e72
lea rcx, [rbx + 8]
call fcn.18000a100
lea rdx, [rbx + 0x28]
mov ecx, 0x1a
call fcn.18006c950
test al, al
jne 0x180061e8d
lea rcx, [rbx + 0x28]
call fcn.18000a100
lea rdx, [rbx + 0x48]
mov ecx, 2
call fcn.18006c950
test al, al
jne 0x180061ea8
lea rcx, [rbx + 0x48]
call fcn.18000a100
lea rdx, [rbx + 0x68]
mov ecx, 0xb
call fcn.18006c950
test al, al
jne 0x180061ec3
lea rcx, [rbx + 0x68]
call fcn.18000a100
mov byte [rbx], 1
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180081cd0
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800a0260
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x180061fc0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rdi, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
lea edx, [r15 + 0x25]
xor r8d, r8d
mov rcx, rsi
call fcn.18000ad50
mov rdx, rsi
cmp rax, 0xffffffffffffffff
jne 0x180062028
mov rcx, rdi
call fcn.180007404
nop
mov dword [rsp + 0x20], 1
jmp 0x1800620e3
lea rcx, [rsp + 0x38]
call fcn.180007404
nop
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x18006205c
mov rdx, rsi
mov rcx, rdi
call fcn.180007404
jmp 0x1800620d1
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800a0de4
mov r14, rax
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
lea r8d, [rbp + 1]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800620bc
cmp eax, ebp
ja 0x1800620bc
mov eax, eax
mov word [r14 + rax*2], r15w
mov rcx, r14
call fcn.18000608c
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.180005f18
mov rcx, r14
call fcn.1800a0284
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180005dec
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.180005de4
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800a0260
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180062d20
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, rdx
mov dword [rbp - 0x40], 0x61004d
mov dword [rbp - 0x3c], 0x720063
mov dword [rbp - 0x38], 0x6d006f
mov dword [rbp - 0x34], 0x640065
mov dword [rbp - 0x30], 0x46005c
mov dword [rbp - 0x2c], 0x61006c
mov dword [rbp - 0x28], 0x680073
mov dword [rbp - 0x24], 0x46005c
mov dword [rbp - 0x20], 0x61006c
mov dword [rbp - 0x1c], 0x680073
mov dword [rbp - 0x18], 0x650048
mov dword [rbp - 0x14], 0x70006c
mov dword [rbp - 0x10], 0x720065
mov dword [rbp - 0xc], 0x650053
mov dword [rbp - 8], 0x760072
mov dword [rbp - 4], 0x630069
mov dword [rbp], 0x2e0065
mov dword [rbp + 4], 0x780065
mov dword [rbp + 8], 0x65
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.1800a4070
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x29]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.180005e38
nop
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x38]
call fcn.180005e38
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x68]
call fcn.180072e70
nop
lea rcx, [rsp + 0x38]
call fcn.180005de4
nop
lea rcx, [rsp + 0x58]
call fcn.180005de4
lea rcx, [rbp - 0x68]
call fcn.18006c030
test al, al
jne 0x180062e64
xor bl, bl
jmp 0x180062ec4
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.180081660
nop
lea rcx, [rsp + 0x78]
call fcn.180005da8
test al, al
je 0x180062e85
xor bl, bl
jmp 0x180062eb9
lea rcx, [rsp + 0x78]
call fcn.180005ea0
cmp rbx, rax
je 0x180062eb7
lea rcx, [rsp + 0x78]
call fcn.180005ea0
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x180062eab
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rbx
call fcn.180005f18
mov bl, 1
lea rcx, [rsp + 0x78]
call fcn.180005de4
nop
lea rcx, [rbp - 0x68]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18006b040
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r14d, r8d
mov r15, rdx
mov rbp, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
call fcn.180005ea0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rsp + 0x80], sil
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1800061ec
mov dword [rsp + 0x20], 1
mov ebx, esi
test r14d, r14d
je 0x18006b290
mov ecx, esi
nop word [rax + rax]
dec r14d
movzx eax, byte [r15]
mov byte [rsp + rcx + 0x80], al
inc ebx
inc rcx
lea r15, [r15 + 1]
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x18006b197
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r13b
and cl, 3
shl cl, 4
movzx eax, r12b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r12b
and cl, 0xf
shl cl, 2
movzx eax, dl
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, dl
and al, 0x3f
mov byte [rsp + 0x8b], al
mov rbx, rsi
lea rcx, [0x18012ea58]
call fcn.180005ea0
mov rdi, rax
nop word [rax + rax]
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006b16d
mov rax, qword [rdi]
movzx ecx, byte [rsp + rbx + 0x88]
movzx edx, byte [rcx + rax]
mov rcx, rbp
call fcn.18002a360
inc rbx
cmp rbx, 4
jl 0x18006b160
mov ebx, esi
mov rcx, rsi
movzx edx, byte [rsp + 0x82]
test r14d, r14d
jne 0x18006b0c0
test ebx, ebx
je 0x18006b290
movsxd rax, ebx
cmp rax, 3
jge 0x18006b1e2
jae 0x18006b2a8
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x18006b1b1
movzx edx, byte [rsp + 0x82]
movzx r12d, byte [rsp + 0x81]
movzx r13d, byte [rsp + 0x80]
movzx eax, r13b
shr al, 2
mov byte [rsp + 0x88], al
and r13b, 3
shl r13b, 4
movzx eax, r12b
shr al, 4
add r13b, al
mov byte [rsp + 0x89], r13b
and r12b, 0xf
shl r12b, 2
movzx eax, dl
shr al, 6
add r12b, al
mov byte [rsp + 0x8a], r12b
and dl, 0x3f
mov byte [rsp + 0x8b], dl
lea eax, [rbx + 1]
movsxd r14, eax
test eax, eax
jle 0x18006b26f
lea rcx, [0x18012ea58]
call fcn.180005ea0
mov rdi, rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006b253
mov rax, qword [rdi]
movzx ecx, byte [rsp + rsi + 0x88]
movzx edx, byte [rcx + rax]
mov rcx, rbp
call fcn.18002a360
inc rsi
cmp rsi, r14
jl 0x18006b246
cmp ebx, 3
jge 0x18006b290
mov eax, 3
sub eax, ebx
mov ebx, eax
nop dword [rax]
mov dl, 0x3d
mov rcx, rbp
call fcn.18002a360
sub rbx, 1
jne 0x18006b280
mov rax, rbp
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800a039c
int3
Function at 0x18006be70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006bea9
xor al, al
jmp 0x18006c009
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007404
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180072b40
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006bffa
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180084200
test al, al
je 0x18006bf17
lea rcx, [rsp + 0x48]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005de4
cmp ebx, 0xffffffff
jne 0x18006bffa
lea rcx, [rsp + 0x28]
call fcn.180005f10
cmp rax, 2
jbe 0x18006bff6
lea rcx, [rsp + 0x28]
call fcn.180005f10
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005ea0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x18006bf65
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006bf8b
lea rcx, [rsp + 0x28]
call fcn.180005f10
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006bf84
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006bff6
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.180072b40
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006bffa
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180084200
test al, al
je 0x18006bfe7
lea rcx, [rsp + 0x48]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005de4
cmp ebx, 0xffffffff
jne 0x18006bffa
xor bl, bl
jmp 0x18006bffc
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a0260
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006c030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006c069
xor al, al
jmp 0x18006c1cf
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007404
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180072b40
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006c0e2
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180084200
test al, al
je 0x18006c0d3
lea rcx, [rsp + 0x48]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005de4
cmp ebx, 0xffffffff
je 0x18006c0eb
test bl, 0x10
je 0x18006c1c0
lea rcx, [rsp + 0x28]
call fcn.180005f10
cmp rax, 2
jbe 0x18006c1bc
lea rcx, [rsp + 0x28]
call fcn.180005f10
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.180005ea0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x18006c126
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006c14c
lea rcx, [rsp + 0x28]
call fcn.180005f10
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006c145
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006c1bc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.180072b40
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006c1b7
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180084200
test al, al
je 0x18006c1a8
lea rcx, [rsp + 0x48]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005de4
cmp ebx, 0xffffffff
je 0x18006c1bc
test bl, 0x10
je 0x18006c1c0
xor bl, bl
jmp 0x18006c1c2
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a0260
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006c1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006c22f
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007404
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.180072b40
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006c2a8
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180084200
test al, al
je 0x18006c299
lea rcx, [rsp + 0x48]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.180005de4
cmp ebx, 0xffffffff
je 0x18006c2b1
test bl, 0x10
je 0x18006c2b1
mov bl, 1
jmp 0x18006c2b3
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x70
pop rbx
ret
Function at 0x18006c2e0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.180005da8
test al, al
je 0x18006c323
xor al, al
jmp 0x18006c4e5
mov rcx, rsi
call fcn.18006c1f0
test al, al
je 0x18006c336
mov al, 1
jmp 0x18006c4e5
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006c385
lea rcx, [rbp - 0x48]
call fcn.180005e80
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.180084200
test al, al
je 0x18006c37c
lea rcx, [rbp - 0x48]
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.180005de4
mov rcx, rsi
call fcn.18006c1f0
test al, al
jne 0x18006c32f
mov rcx, rsi
call fcn.180005f10
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x18006c482
mov rcx, rsi
call fcn.180005ea0
mov rdi, rax
lea r12d, [rbx + 0x2f]
lea r15d, [rbx + 0x5c]
nop word [rax + rax]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x18006c3d0
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x18006c3ee
mov rax, rdi
cmp rdx, 8
jb 0x18006c3e3
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x18006c476
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.18000acf0
nop
lea rcx, [rbp - 0x48]
call fcn.180005da8
test al, al
jne 0x18006c46d
lea rcx, [rbp - 0x48]
call fcn.18006be70
test al, al
jne 0x18006c46d
lea rcx, [rbp - 0x48]
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006c46d
lea rcx, [rbp - 0x28]
call fcn.180005e80
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.180084200
test al, al
je 0x18006c463
lea rcx, [rbp - 0x28]
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005de4
nop
lea rcx, [rbp - 0x48]
call fcn.180005de4
inc rbx
cmp rbx, r14
jb 0x18006c3c0
mov rcx, rsi
call fcn.18006be70
test al, al
jne 0x18006c4dd
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006c4dd
lea rcx, [rbp - 0x28]
call fcn.180005e80
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.180084200
test al, al
je 0x18006c4d4
lea rcx, [rbp - 0x28]
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.180005de4
mov rcx, rsi
call fcn.18006c1f0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18006c950
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov esi, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
mov rcx, rdx
call fcn.18000a100
mov rdx, rcx
mov ecx, esi
call fcn.18006ca40
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x18006c9ac
test bl, bl
jne 0x18006ca16
cmp esi, 0x1a
jne 0x18006ca16
mov rcx, rdi
call fcn.18000a100
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800a4070
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.18000608c
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180005f18
mov rcx, rdi
call fcn.180005da8
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18006cbe0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], rax
lea ecx, [rax + 1]
call fcn.1800a0a38
mov qword [rsp + 0x38], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.1800a4070
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18006cc5f
cmp dword [rsp + 0x44], 6
setae cl
mov rax, qword [rsp + 0x38]
mov byte [rax], cl
lea rcx, [rsp + 0x160]
call fcn.18006cdc0
cmp dword [rsp + 0x164], 6
jb 0x18006cc80
lea rcx, [rsp + 0x38]
call fcn.1800823b0
mov rcx, rbx
call fcn.180005e80
mov dword [rsp + 0x20], 1
mov rdx, rbx
xor ecx, ecx
call fcn.18006c950
test al, al
je 0x18006ccb8
mov rcx, rbx
call fcn.180005da8
test al, al
jne 0x18006ccb8
mov edx, 0x10
mov rcx, rbx
call fcn.180072b40
nop
lea rcx, [rsp + 0x38]
call fcn.180081cd0
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x290
pop rbx
ret

Function at 0x18006cd60
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x68
ret
Function at 0x18006cdc0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1800a4070
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18006cf22
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x18006ce24
jne 0x18006cec5
cmp dword [rbx + 8], 2
jb 0x18006cec5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18006cec5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18006cec5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18006cec5
movups xmm0, xmmword [0x1800f6368]
mov rcx, rax
movups xmm1, xmmword [0x1800f6378]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18006cec5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18006cec5
cmp word [rdi + 2], ax
jbe 0x18006cec5
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18006cf16
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1800a4070
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x18006cf16
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x18006cf24
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x170
pop rbx
ret

Function at 0x18006da90
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
call fcn.18000a100
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x412
call fcn.1800a4070
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18006dadd
xor al, al
jmp 0x18006db0a
cmp eax, 0x208
jae 0x18006dad9
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x430], ax
call fcn.18000608c
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180005f18
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0x450
pop rbx
ret