joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c38058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c381df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c38089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c3806f
add dl, dl
jne 0x140c38096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c380f6
xor eax, eax
add dl, dl
jne 0x140c380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c381ad
add dl, dl
jne 0x140c380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c3807e
mov eax, 1
add dl, dl
jne 0x140c38106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c38113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c380fb
sub eax, ebx
mov ebx, 1
jne 0x140c3814c
mov ecx, 1
add dl, dl
jne 0x140c3812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c3813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c38123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c38168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c38175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c3815d
cmp eax, 0x7d00
jae 0x140c3819b
cmp eax, 0x500
jb 0x140c38196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3807e
cmp eax, 0x7f
ja 0x140c3819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c381d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c3807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001a221
Capabilities:
Write file on windows

Disassembly:
jmp 0x140032e40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400830f9]
call fcn.14001b496
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140032e97
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140032fa3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140032f3c
cmp qword [rbp + 0x28], 0
jle 0x140032f3c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140032edc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001b351
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140032f92
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140032f92
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001ab5e
Capabilities:
Terminate process

Disassembly:
jmp 0x14004a990
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001ae38
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004d1c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004d1e0
xor al, al
jmp 0x14004d261
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14004d1f3
xor al, al
jmp 0x14004d261
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14004d21d
xor al, al
jmp 0x14004d261
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14004d231
xor al, al
jmp 0x14004d261
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14004d243
xor al, al
jmp 0x14004d261
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004d25f
xor al, al
jmp 0x14004d261
mov al, 1
add rsp, 0x38
ret
Function at 0x14001b450
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002e140
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140076f80]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400830f9]
call fcn.14001b496
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14002e1a6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e1ad
mov al, 1
jmp 0x14002e2fd
call fcn.14001a5e6
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001a5e6
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001b02c
movzx eax, al
test eax, eax
je 0x14002e1fe
xor al, al
jmp 0x14002e2fd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14002e263
cmp dword [rbp + 0x154], 1
je 0x14002e26e
cmp dword [rbp + 0x154], 3
je 0x14002e2ec
jmp 0x14002e2fb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14002e2be
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14002e2be
xor al, al
jmp 0x14002e2fd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e2d9
mov dword [rbp + 0x154], 1
jmp 0x14002e2e3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002e2fd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002e2fd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400634a0]
call fcn.14001b112
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001a9ec
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x180001890
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
cmp qword [rsp + 0x90], 0
jne 0x1800018af
xor eax, eax
jmp 0x1800019a1
mov rcx, qword [rsp + 0x90]
call fcn.1800f9114
add rax, 2
mov qword [rsp + 0x68], rax
mov eax, 2
mul qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800f87f4
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1800f8660
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.1800f915c
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov eax, 0x414
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001995
cmp dword [rsp + 0x60], 0x402
je 0x180001995
mov dword [rsp + 0x78], 0
jmp 0x18000199d
mov dword [rsp + 0x78], 1
mov eax, dword [rsp + 0x78]
add rsp, 0x80
pop rdi
ret

Function at 0x180002590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x50], 0
jne 0x1800025bd
jmp 0x18000264e
mov rcx, qword [rsp + 0x50]
call fcn.1800f9114
cmp rax, 2
jae 0x1800025cf
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x1800025f4
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
cmp eax, 0x5c
jne 0x1800025f4
mov dword [rsp + 0x20], 1
jmp 0x18000264e
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 2]
mov word [rsp + 0x32], ax
xor eax, eax
mov word [rsp + 0x34], ax
xor eax, eax
mov word [rsp + 0x36], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
je 0x18000263a
cmp dword [rsp + 0x24], 1
jne 0x180002644
mov dword [rsp + 0x20], 1
jmp 0x18000264e
xor eax, eax
test eax, eax
jne 0x1800025b0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x48
ret

Function at 0x180002670
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x18022fda8], 0
jne 0x180002699
mov dword [0x18022fda8], 1
mov edx, 0x104
lea rcx, [0x18022fba0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x18022fba0]
add rsp, 0x28
ret

Function at 0x180002c20
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180231458], 0
jne 0x180002c49
mov dword [0x180231458], 1
mov edx, 0x104
lea rcx, [0x180231250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180231250]
add rsp, 0x28
ret
Function at 0x180003400
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x180233348], 0
jne 0x18000345f
mov dword [0x180233348], 1
call fcn.1801276c0
test eax, eax
je 0x18000344d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x180233140]
call fcn.18012fbe0
test eax, eax
je 0x18000344b
lea rdx, [0x1801a71f0]
lea rcx, [0x180233140]
call fcn.1800f9130
jmp 0x18000345f
mov edx, 0x104
lea rcx, [0x180233140]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x180233140]
add rsp, 0x28
ret

Function at 0x1800038c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
cmp dword [0x1802343c8], 0
jne 0x18000391f
mov dword [0x1802343c8], 1
call fcn.1801276c0
test eax, eax
je 0x18000390d
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1802341c0]
call fcn.180129220
test eax, eax
je 0x18000390b
lea rdx, [0x1801a71f0]
lea rcx, [0x1802341c0]
call fcn.1800f9130
jmp 0x18000391f
mov edx, 0x104
lea rcx, [0x1802341c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [0x1802341c0]
add rsp, 0x28
ret
Function at 0x180019970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
jne 0x180019995
mov eax, 0x80000002
jmp 0x180019b8a
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c07a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1800199f6
mov eax, dword [rsp + 0x70]
and eax, 1
test eax, eax
je 0x1800199ce
mov eax, 0x80000001
jmp 0x180019b8a
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c0810
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
jmp 0x180019a1f
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1802385e0]
call fcn.1800c01a0
test eax, eax
jne 0x180019a1f
mov eax, 0x80000003
jmp 0x180019b8a
mov eax, dword [rsp + 0x70]
and eax, 0x100
test eax, eax
je 0x180019b57
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x2c]
call fcn.1800ca560
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180019a54
cmp dword [rsp + 0x2c], 1
je 0x180019a6f
mov ecx, 1
call fcn.1800ca600
test eax, eax
jne 0x180019a6f
mov eax, dword [rsp + 0x20]
or eax, 0x80000008
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x70]
and eax, 0x1000
test eax, eax
je 0x180019b11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov ecx, 1
call sym.TSandbox64.dll_AddFileControlPolicyByProcessID
lea rdx, [0x1801a6e60]
lea rcx, [rsp + 0x38]
call fcn.1800e9110
mov r8, qword [rsp + 0x68]
lea rdx, [0x1801b61b0]
lea rcx, [rsp + 0x38]
call fcn.1800e67b0
mov rcx, qword [rsp + 0x38]
call fcn.1800cf8f0
lea rdx, [0x1801a6e60]
lea rcx, [rsp + 0x40]
call fcn.1800e9110
mov r8, qword [rsp + 0x60]
lea rdx, str.HKEY_USERSTSandbox__s
lea rcx, [rsp + 0x40]
call fcn.1800e67b0
mov rcx, qword [rsp + 0x40]
call fcn.1800cfab0
lea rcx, [rsp + 0x40]
call fcn.1800e56d0
lea rcx, [rsp + 0x38]
call fcn.1800e56d0
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x70]
and eax, 0x10000
test eax, eax
je 0x180019b31
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
and eax, 0x20000
test eax, eax
je 0x180019b49
mov eax, dword [rsp + 0x34]
or eax, 2
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x34]
call fcn.1800ca720
call fcn.1800d1960
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x180019b86
mov rcx, qword [rsp + 0x68]
call fcn.180001830
test eax, eax
jne 0x180019b86
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x180029d80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
jne 0x180029d9a
xor eax, eax
jmp 0x180029dad
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.1800ee260
add rsp, 0x28
ret

Function at 0x180055330
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x38], rax
mov r8d, 4
lea rdx, [0x1801a7600]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fad54
test eax, eax
je 0x1800553c1
mov r8d, 4
lea rdx, [0x1801a75f0]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fad54
test eax, eax
je 0x1800553c1
mov r8d, 4
lea rdx, [0x1801a75e0]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fad54
test eax, eax
jne 0x1800553d2
mov rax, qword [rsp + 0x4b0]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
call fcn.1800f9114
cmp rax, 4
jb 0x1800554e5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x1800554e5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x5c
jne 0x1800554e5
lea rax, [rsp + 0x48]
lea rcx, [0x1801bc70c]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4e]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov ecx, eax
call fcn.1800fb0f4
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1800554e5
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov dword [rsp + 0x470], 0x208
lea r8, [rsp + 0x470]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x1800554e5
mov rax, qword [rsp + 0x38]
add rax, 4
mov ecx, dword [rsp + 0x4c0]
dec ecx
mov ecx, ecx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x1801bc700]
mov edx, ecx
mov rcx, qword [rsp + 0x4b8]
call fcn.1800f9d8c
mov dword [rsp + 0x30], 1
cmp dword [rsp + 0x30], 0
jne 0x180055540
mov rcx, qword [rsp + 0x38]
call fcn.1800f9114
mov qword [rsp + 0x478], rax
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
cmp qword [rsp + 0x478], rax
jbe 0x180055526
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
mov qword [rsp + 0x478], rax
mov r8, qword [rsp + 0x478]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x4b8]
call fcn.1800f88a0
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x498
pop rdi
pop rsi
ret
Function at 0x180060b60
Capabilities:
Get common file path
Get disk information

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov eax, dword [0x180237998]
and eax, 1
test eax, eax
jne 0x180060bba
mov eax, dword [0x180237998]
or eax, 1
mov dword [0x180237998], eax
mov rax, qword [0x1801cced8]
mov qword [0x180237990], rax
lea rcx, [0x1801a5520]
call fcn.1800fa894
mov eax, dword [0x180237998]
and eax, 2
test eax, eax
jne 0x180060bf0
mov eax, dword [0x180237998]
or eax, 2
mov dword [0x180237998], eax
mov rax, qword [0x1801cced8]
mov qword [0x180237988], rax
lea rcx, [0x1801a5500]
call fcn.1800fa894
mov rax, qword [0x180237990]
cmp dword [rax - 8], 0
jne 0x180060c0a
mov dword [rsp + 0xc84], 1
jmp 0x180060c15
mov dword [rsp + 0xc84], 0
cmp dword [rsp + 0xc84], 0
je 0x180060d6a
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov edx, 0x208
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x180060d6a
lea rdx, str.System32
lea rcx, [rsp + 0x30]
call fcn.1800f9130
xor eax, eax
mov word [rsp + 0x860], ax
lea rax, [rsp + 0x862]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x860]
lea rcx, [rsp + 0x30]
call fcn.180055f10
mov dword [rsp + 0xc80], eax
cmp dword [rsp + 0xc80], 0
jne 0x180060cbf
lea rdx, [rsp + 0x860]
lea rcx, [0x180237990]
call fcn.1800e5890
lea rax, [rsp + 0xc70]
lea rcx, [0x1801bc70c]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc76]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x30]
mov word [rsp + 0xc70], ax
xor eax, eax
mov word [rsp + 0x450], ax
lea rax, [rsp + 0x452]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0xc70]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x440], eax
cmp dword [rsp + 0x440], 0
jbe 0x180060d6a
lea rax, [rsp + 0x34]
mov r9, rax
lea r8, [rsp + 0x450]
lea rdx, [0x1801bc700]
lea rcx, [0x180237988]
call fcn.1800e67b0
cmp qword [rsp + 0xcc0], 0
je 0x180060dc9
cmp dword [rsp + 0xcc8], 0
jle 0x180060dc9
movsxd rax, dword [rsp + 0xcc8]
mov qword [rsp + 0xc88], rax
xor edx, edx
lea rcx, [0x180237988]
call fcn.1800e5a80
mov rcx, qword [rsp + 0xc88]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xcc0]
call fcn.1800f88a0
mov edx, 0xffffffff
lea rcx, [0x180237988]
call fcn.1800e5af0
mov rax, qword [0x180237990]
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x180061d10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
je 0x180061d2f
mov eax, dword [rsp + 0x28]
cmp rax, 0x40
jae 0x180061d36
xor eax, eax
jmp 0x180061dbe
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180061dbc
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp]
movsxd rcx, dword [rcx + 0x3c]
add rcx, 4
cmp rax, rcx
jbe 0x180061dbc
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180061db5
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454e
je 0x180061db5
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454c
jne 0x180061dbc
mov eax, 1
jmp 0x180061dbe
xor eax, eax
add rsp, 0x18
ret