joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006d5c0
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 0x18006d810
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 0x18006d717
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, [0x180137a58]
call fcn.180005ea0
mov rdi, rax
nop word [rax + rax]
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006d6ed
mov rax, qword [rdi]
movzx ecx, byte [rsp + rbx + 0x88]
movzx edx, byte [rcx + rax]
mov rcx, rbp
call fcn.18002ab70
inc rbx
cmp rbx, 4
jl 0x18006d6e0
mov ebx, esi
mov rcx, rsi
movzx edx, byte [rsp + 0x82]
test r14d, r14d
jne 0x18006d640
test ebx, ebx
je 0x18006d810
movsxd rax, ebx
cmp rax, 3
jge 0x18006d762
jae 0x18006d828
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x18006d731
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 0x18006d7ef
lea rcx, [0x180137a58]
call fcn.180005ea0
mov rdi, rax
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18006d7d3
mov rax, qword [rdi]
movzx ecx, byte [rsp + rsi + 0x88]
movzx edx, byte [rcx + rax]
mov rcx, rbp
call fcn.18002ab70
inc rsi
cmp rsi, r14
jl 0x18006d7c6
cmp ebx, 3
jge 0x18006d810
mov eax, 3
sub eax, ebx
mov ebx, eax
nop dword [rax]
mov dl, 0x3d
mov rcx, rbp
call fcn.18002ab70
sub rbx, 1
jne 0x18006d800
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.1800a71dc
int3
Function at 0x18006e3f0
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 [0x180134010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006e429
xor al, al
jmp 0x18006e589
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007554
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.1800750c0
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006e57a
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18008af40
test al, al
je 0x18006e497
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 0x18006e57a
lea rcx, [rsp + 0x28]
call fcn.180005f10
cmp rax, 2
jbe 0x18006e576
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 0x18006e4e5
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006e50b
lea rcx, [rsp + 0x28]
call fcn.180005f10
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006e504
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006e576
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.1800750c0
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006e57a
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18008af40
test al, al
je 0x18006e567
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 0x18006e57a
xor bl, bl
jmp 0x18006e57c
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006e5b0
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 [0x180134010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006e5e9
xor al, al
jmp 0x18006e74f
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007554
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.1800750c0
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006e662
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18008af40
test al, al
je 0x18006e653
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 0x18006e66b
test bl, 0x10
je 0x18006e740
lea rcx, [rsp + 0x28]
call fcn.180005f10
cmp rax, 2
jbe 0x18006e73c
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 0x18006e6a6
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x18006e6cc
lea rcx, [rsp + 0x28]
call fcn.180005f10
dec rax
cmp qword [rbx + 0x18], 8
jb 0x18006e6c5
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x18006e73c
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.1800750c0
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006e737
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18008af40
test al, al
je 0x18006e728
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 0x18006e73c
test bl, 0x10
je 0x18006e740
xor bl, bl
jmp 0x18006e742
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x18006e770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.180005da8
test al, al
je 0x18006e7af
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.180007554
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.1800750c0
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18006e828
lea rcx, [rsp + 0x48]
call fcn.180005e80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.18008af40
test al, al
je 0x18006e819
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 0x18006e831
test bl, 0x10
je 0x18006e831
mov bl, 1
jmp 0x18006e833
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.180005de4
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x70
pop rbx
ret
Function at 0x18006e860
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 [0x180134010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.180005da8
test al, al
je 0x18006e8a3
xor al, al
jmp 0x18006ea65
mov rcx, rsi
call fcn.18006e770
test al, al
je 0x18006e8b6
mov al, 1
jmp 0x18006ea65
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006e905
lea rcx, [rbp - 0x48]
call fcn.180005e80
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.18008af40
test al, al
je 0x18006e8fc
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.18006e770
test al, al
jne 0x18006e8af
mov rcx, rsi
call fcn.180005f10
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x18006ea02
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 0x18006e950
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x18006e96e
mov rax, rdi
cmp rdx, 8
jb 0x18006e963
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x18006e9f6
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.180008670
nop
lea rcx, [rbp - 0x48]
call fcn.180005da8
test al, al
jne 0x18006e9ed
lea rcx, [rbp - 0x48]
call fcn.18006e3f0
test al, al
jne 0x18006e9ed
lea rcx, [rbp - 0x48]
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006e9ed
lea rcx, [rbp - 0x28]
call fcn.180005e80
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.18008af40
test al, al
je 0x18006e9e3
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 0x18006e940
mov rcx, rsi
call fcn.18006e3f0
test al, al
jne 0x18006ea5d
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18006ea5d
lea rcx, [rbp - 0x28]
call fcn.180005e80
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.18008af40
test al, al
je 0x18006ea54
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.18006e770
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800a70a0
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 0x18006eed0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180134010]
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.18000b610
mov rdx, rcx
mov ecx, esi
call fcn.18006efc0
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x18006ef2c
test bl, bl
jne 0x18006ef96
cmp esi, 0x1a
jne 0x18006ef96
mov rcx, rdi
call fcn.18000b610
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800aaeb0
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.1800a70a0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18006f160
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x180134010]
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.1800a7878
mov qword [rsp + 0x38], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.1800aaeb0
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18006f1df
cmp dword [rsp + 0x44], 6
setae cl
mov rax, qword [rsp + 0x38]
mov byte [rax], cl
lea rcx, [rsp + 0x160]
call fcn.18006f340
cmp dword [rsp + 0x164], 6
jb 0x18006f200
lea rcx, [rsp + 0x38]
call fcn.180088f00
mov rcx, rbx
call fcn.180005e80
mov dword [rsp + 0x20], 1
mov rdx, rbx
xor ecx, ecx
call fcn.18006eed0
test al, al
je 0x18006f238
mov rcx, rbx
call fcn.180005da8
test al, al
jne 0x18006f238
mov edx, 0x10
mov rcx, rbx
call fcn.1800750c0
nop
lea rcx, [rsp + 0x38]
call fcn.180088820
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x290
pop rbx
ret

Function at 0x18006f2e0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x180134010]
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.1800a70a0
add rsp, 0x68
ret
Function at 0x18006f340
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1800aaeb0
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18006f4a2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x18006f3a4
jne 0x18006f445
cmp dword [rbx + 8], 2
jb 0x18006f445
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18006f445
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18006f445
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18006f445
movups xmm0, xmmword [0x1800fd6d8]
mov rcx, rax
movups xmm1, xmmword [0x1800fd6e8]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18006f445
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18006f445
cmp word [rdi + 2], ax
jbe 0x18006f445
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 0x18006f496
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1800aaeb0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x18006f496
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x18006f4a4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x170
pop rbx
ret

Function at 0x180070010
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
call fcn.18000b610
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x412
call fcn.1800aaeb0
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18007005d
xor al, al
jmp 0x18007008a
cmp eax, 0x208
jae 0x180070059
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.1800a70a0
add rsp, 0x450
pop rbx
ret
Function at 0x180077770
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebp, r9d
mov rsi, r8
mov r14, rdx
mov dword [rsp + 0x28], 0x80
mov r15d, dword [rsp + 0xc8]
mov dword [rsp + 0x20], r15d
mov r12d, dword [rsp + 0xc0]
mov r9d, r12d
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.18007c640
movzx ebx, al
test al, al
jne 0x1800778cd
test ebp, 0x50000000
je 0x18007786e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18007786e
mov rcx, rsi
call fcn.18000618c
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x180077849
lea rcx, [rsp + 0x38]
call fcn.180005e80
nop
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.18008af40
test al, al
je 0x18007783f
lea rcx, [rsp + 0x38]
call fcn.18000618c
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x38]
call fcn.180005de4
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.18007c640
movzx ebx, al
test al, al
jne 0x1800778cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffffe0
cmp eax, 1
ja 0x1800778cd
xor ebx, ebx
nop
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.18007c640
movzx edi, al
test al, al
jne 0x1800778c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xffffffe0
cmp eax, 1
ja 0x1800778c7
inc rbx
cmp rbx, 0x28
jb 0x180077880
movzx eax, dil
jmp 0x1800778d0
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007ca60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x18007cabe
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18007caa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18007cabe
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x18007cac0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18007db10
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x18007db54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov word [rsi + 8], r14w
mov qword [rsp + 0x48], r14
mov ecx, 0x58
call fcn.1800a7878
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], 0x18
lea rdi, [rax + 0x28]
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r14d
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.18007ebe0
mov qword [rbx + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.180005de4
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.18008b1a0
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x18007dbe4
mov rdi, r14
mov rcx, rbp
call fcn.180005da8
test al, al
jne 0x18007dbfa
mov rcx, rbp
call fcn.18000618c
jmp 0x18007dbfd
mov rax, r14
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
test rax, rax
je 0x18007dc24
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18007dc24
mov byte [rsi + 9], 1
cmp qword [rsi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18007dc4b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18007dc5e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.1800a70c4
mov qword [rsp + 0x48], r14
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a70a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18007dca0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rdx
mov r14, rcx
mov rcx, qword [rcx]
xor r15d, r15d
test rcx, rcx
je 0x18007dce6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], r15
mov word [r14 + 8], r15w
mov qword [rsp + 0x48], r15
mov ecx, 0x58
call fcn.1800a7878
mov rbx, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r15
lea rsi, [rax + 8]
mov qword [rsi], r15
mov dword [rax + 0x10], 0x18
lea rdi, [rax + 0x28]
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r15d
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.18007ebe0
mov qword [rbx + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.180005de4
mov r9, rsi
mov r8b, 1
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.18008b1a0
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x18007dd79
mov rdi, r15
mov rcx, rbp
call fcn.180005da8
test al, al
jne 0x18007dd8f
mov rcx, rbp
call fcn.18000618c
jmp 0x18007dd92
mov rax, r15
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r14], rax
test rax, rax
jne 0x18007dde6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18007dde6
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbp
call fcn.180005da8
test al, al
jne 0x18007ddd2
mov rcx, rbp
call fcn.18000618c
jmp 0x18007ddd5
mov rax, r15
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r14], rax
mov rax, qword [r14]
test rax, rax
je 0x18007de0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18007de00
mov byte [r14 + 9], 1
mov rcx, qword [r14]
call fcn.1800899d0
mov rax, qword [r14]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18007de31
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18007de44
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r15
mov edx, 0x58
mov rcx, rbx
call fcn.1800a70c4
mov qword [rsp + 0x48], r15
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret