joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007e460
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007e490
xor eax, eax
jmp 0x18007e553
mov rbp, rbx
cmp word [rax], si
je 0x18007e4b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007e49c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007e498
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18007cb78
movsxd r14, eax
test eax, eax
jne 0x18007e4f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007e489
mov rcx, r14
call fcn.180078d5c
mov rdi, rax
test rax, rax
jne 0x18007e50c
xor ecx, ecx
call fcn.180077a50
jmp 0x18007e4e8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18007cb78
test eax, eax
jne 0x18007e53d
mov rcx, rdi
call fcn.180077a50
jmp 0x18007e547
xor ecx, ecx
call fcn.180077a50
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800812c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180074b50
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180081369
cmp ebx, dword [rsp + 0x30]
je 0x180081362
test esi, esi
je 0x180081362
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008133d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008134a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180081327
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008134e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008136b
mov eax, 1
jmp 0x18008136b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800855f4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007ac70
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007ac70
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180085744
cmp rax, 0xffffffffffffffff
je 0x180085744
xor edi, edi
test rbp, rbp
jle 0x1800856ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007803c
mov rbx, rax
test rax, rax
jne 0x18008567c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800856e5
mov edx, 0x8000
mov ecx, r14d
call fcn.180085478
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800774e8
cmp eax, 0xffffffff
je 0x1800856c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008568c
mov edx, r15d
mov ecx, r14d
call fcn.180085478
jmp 0x1800856e5
cmp byte [rsi + 0x38], dil
je 0x1800856dc
cmp dword [rsi + 0x34], 5
jne 0x1800856dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800856e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180077a50
jmp 0x180085758
jns 0x180085758
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007ac70
cmp rax, 0xffffffffffffffff
jne 0x180085710
cmp byte [rsi + 0x30], dil
je 0x180085758
mov edi, dword [rsi + 0x2c]
jmp 0x180085758
mov ecx, r14d
call fcn.18007ec1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180085758
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180085758
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180085751
mov eax, dword [rsi + 0x2c]
jmp 0x180085756
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007ac70
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180086230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180086258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180086258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139b0
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 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d20
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d33
xor al, al
jmp 0x140014da1
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 0x140014d5d
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d71
xor al, al
jmp 0x140014da1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d83
xor al, al
jmp 0x140014da1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d9f
xor al, al
jmp 0x140014da1
mov al, 1
add rsp, 0x38
ret
Function at 0x140007630
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movdqa xmm1, xmmword [0x14004b1c0]
movdqu xmmword [rbp + 0x17], xmm1
xor esi, esi
mov word [rbp + 7], si
mov dword [rbp - 0x29], esi
lea rdx, [rbp - 0x29]
xor ecx, ecx
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
mov edx, dword [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140014658
lea rdx, [rbp - 0x29]
mov rbx, qword [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140007786
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov r8d, dword [rbp - 0x29]
dec r8d
mov rdx, rbx
lea rcx, [rbp + 0x27]
call fcn.140012eb8
lea r8, [0x14004b100]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140007820
lea r8, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rdx, rax
mov rcx, rdi
call fcn.140007820
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14000772d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
call fcn.1400086f0
movdqa xmm0, xmmword [0x14004b1c0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140007759
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
call fcn.1400086f0
movdqa xmm0, xmmword [0x14004b1c0]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], si
test rbx, rbx
je 0x1400077ee
mov rdx, qword [rbp - 9]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rcx, rbx
call fcn.1400086f0
jmp 0x1400077ee
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.14001226c
cmp dword [rax], 2
jbe 0x1400077cd
lea rcx, str.GetAllUsersProfileDirectory_failed
mov qword [rbp - 0x21], rcx
mov dword [rbp - 0x25], ebx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x25]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005b9f9]
mov rcx, rax
call fcn.140001f30
lea rdx, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rcx, rdi
call fcn.140012e7c
lea rcx, [rbp - 0x19]
call fcn.140013794
lea rcx, [rbp + 7]
call fcn.140013750
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140015f80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140008530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x140008563
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r10
cmp rcx, r8
jb 0x140008550
mov rax, r9
ret
Function at 0x140009300
Capabilities:
Hash data using fnv

Disassembly:
movzx r8d, byte [rdx]
movabs r9, 0x100000001b3
movzx ecx, byte [rdx + 6]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 7]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
Function at 0x14000c788
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov r12d, r9d
mov rdx, rcx
mov r15, rcx
mov rcx, r8
mov r9d, 0x20019
mov r14, r8
call fcn.14000c9a0
mov edi, eax
test eax, eax
jne 0x14000c841
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14000c7d7
mov r8, qword [rbx]
mov rsi, qword [rbp + 0x50]
mov r9d, r12d
mov rcx, qword [r15]
xor edx, edx
mov qword [rsp + 0x30], rsi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000c8f8
mov eax, dword [rsi]
mov r15, qword [rbp + 0x58]
mov dword [r15], eax
dec eax
cmp eax, 0x3ffffff
ja 0x14000c907
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001226c
mov rbx, rax
cmp dword [rax], 5
jbe 0x14000c8f1
mov rcx, r14
mov dword [rbp + 0x40], edi
call fcn.14000a560
mov qword [rbp + 0x60], rax
lea rdx, [0x14005c5d7]
lea rax, str.Could_not_open_or_create_the_registry_path._Return_default_value
mov rcx, rbx
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.14000a3f8
jmp 0x14000c8f1
mov rcx, r14
mov dword [rbp + 0x40], edi
call fcn.14000a560
mov rcx, rbx
mov qword [rbp + 0x60], rax
call fcn.14000a560
mov qword [rbp - 0x10], rax
lea rdx, [0x14005c4f0]
lea rax, str.Failed_to_get_registry_value_size._Return_default_value
mov rcx, rsi
mov qword [rbp - 8], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
call fcn.140002400
mov eax, edi
jmp 0x14000c822
call fcn.14001226c
mov rsi, rax
cmp dword [rax], 5
jbe 0x14000c8f1
jmp 0x14000c898
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 4
jbe 0x14000c98e
mov ecx, dword [rsi]
mov dword [rbp + 0x48], ecx
mov ecx, dword [r15]
mov dword [rbp + 0x68], ecx
mov rcx, r14
mov dword [rbp + 0x40], 0x4000000
call fcn.14000a560
mov rcx, rbx
mov qword [rbp + 0x60], rax
call fcn.14000a560
mov qword [rbp - 8], rax
lea rdx, [0x14005c531]
lea rax, str.Registry_value_is_empty_or_bigger_than_max_length._Return_default_value
mov rcx, rdi
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.1400032d8
mov eax, 0xd
jmp 0x14000c822
Function at 0x14000e098
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
mov rbx, r8
mov r8, qword [rdx]
test r8, r8
je 0x14000e0b2
mov r8, qword [r8]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14000e0e9
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000a120
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000e0f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rdx]
movabs r9, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r9
cmp r8, 2
jb 0x14000e105
mov rax, rcx
ret

Function at 0x14000e628
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor al, al
mov ecx, dword [rdi + 0x7c]
cmp ecx, 0xffffffff
je 0x14000e7d8
cmp ecx, 0x7c
je 0x14000e7d8
cmp ecx, 0x29
jne 0x14000e677
cmp dword [rdi + 0x1c], 0
jne 0x14000e7d8
lea rbx, [rdi + 0x80]
test dword [rbx], 0x10000000
jne 0x14000e791
lea edx, [rcx - 0x24]
call fcn.140013238
int3
lea rbx, [rdi + 0x80]
cmp ecx, 0x2e
jne 0x14000e696
lea rcx, [rdi + 0x40]
mov edx, 5
call fcn.14000e57c
jmp 0x14000e7ab
cmp ecx, 0x5c
jne 0x14000e6f6
mov rcx, rdi
call fcn.14000e7ec
test byte [rbx], 0x80
je 0x14000e6e9
cmp word [rdi + 0x78], 0x62
jne 0x14000e6ca
mov edx, 4
lea rcx, [rdi + 0x40]
call fcn.14000e57c
mov rcx, rdi
call fcn.14000e7ec
jmp 0x14000e7bb
cmp word [rdi + 0x78], 0x42
jne 0x14000e6e9
lea rcx, [rdi + 0x40]
mov edx, 4
call fcn.14000e57c
mov rax, qword [rdi + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14000e6bd
mov rcx, rdi
call fcn.140012f70
jmp 0x14000e7b3
cmp ecx, 0x5b
jne 0x14000e721
mov rcx, rdi
call fcn.14000e7ec
mov rcx, rdi
call fcn.1400153ac
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.140015b8c
jmp 0x14000e7b3
cmp ecx, 0x28
jne 0x14000e74f
mov rcx, rdi
call fcn.14000e7ec
mov rcx, rdi
call fcn.140028954
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.140015b8c
test bl, bl
jne 0x14000e7b3
jmp 0x14000e7bb
cmp ecx, 0x5e
jne 0x14000e75c
lea edx, [rcx - 0x5c]
jmp 0x14000e6b4
cmp ecx, 0x24
jne 0x14000e769
lea edx, [rcx - 0x21]
jmp 0x14000e6b4
cmp ecx, 0x3f
je 0x14000e7cd
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14000e7cd
cmp ecx, 0x7b
je 0x14000e7cd
cmp ecx, 0x7d
jne 0x14000e791
test dword [rbx], 0x10000000
jne 0x14000e79e
lea edx, [rcx - 0x77]
call fcn.140013238
int3
cmp ecx, 0x5d
jne 0x14000e79e
test dword [rbx], 0x10000000
je 0x14000e7c2
movzx edx, word [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.140014ae0
mov rcx, rdi
call fcn.14000e7ec
mov rcx, rdi
call fcn.14002823c
mov al, 1
jmp 0x14000e637
mov edx, 4
call fcn.140013238
int3
mov edx, 0xa
call fcn.140013238
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f264
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jb 0x14000f27f
mov rcx, qword [rdx]
and dword [rsp + 0x38], 0
lea rax, [rdi + 0x64]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14000f320
call fcn.14001226c
mov rsi, rax
cmp dword [rax], 3
jbe 0x14000f320
mov rcx, rbx
call fcn.14000a560
mov qword [rsp + 0x68], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000f2e3
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x60], eax
lea rdx, [0x14005bd8d]
lea rax, str.GetVolumeInformation_failed
mov rcx, rsi
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14000c128
mov rdx, rbx
mov rcx, rdi
call fcn.14000f364
cmp qword [rbx + 0x18], 8
jb 0x14000f335
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp al, 2
mov byte [rdi + 0x60], al
sete al
or byte [rdi + 0x170], al
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ffa8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov r8d, 0x104
lea rdx, [0x14006c4a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14001007d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.14001226c
cmp dword [rax], 2
jbe 0x140010069
mov dword [rsp + 0x40], ebx
lea rcx, str.GetModuleFileName_failed
mov qword [rsp + 0x48], rcx
test ebx, ebx
jle 0x140010038
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x44], ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14005ba6c]
mov rcx, rax
call fcn.140001fd4
lea rdx, [0x14004bd6c]
mov rcx, rdi
call fcn.140012e7c
jmp 0x140010194
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x14004b1c0]
movdqu xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], si
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], si
movups xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x20], si
movups xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], si
mov r8d, eax
lea rdx, [0x14006c4a0]
lea rcx, [rbp - 0x60]
call fcn.140012e4c
nop
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x20]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.14002d0ec
test al, al
sete bl
lea rcx, [rbp - 0x60]
call fcn.140013750
test bl, bl
je 0x140010114
lea rdx, [0x14004bd6c]
mov rcx, rdi
call fcn.140012e7c
jmp 0x14001016c
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x14004b1c0]
movdqu xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x60], si
movups xmmword [rbp], xmm0
movdqu xmmword [rbp + 0x10], xmm1
mov word [rbp], si
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14002cf24
nop
lea rcx, [rbp]
call fcn.140013750
nop
lea rcx, [rbp - 0x60]
call fcn.140013750
nop
lea rcx, [rbp - 0x40]
call fcn.140013750
nop
lea rcx, [rbp - 0x20]
call fcn.140013750
nop
lea rcx, [rsp + 0x60]
call fcn.140013750
nop
lea rcx, [rbp - 0x80]
call fcn.140013750
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140015f80
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140016668
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400166b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400166b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400166b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400166b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400166b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400166b4
xor al, al
add rsp, 0x28
ret

Function at 0x14001cc18
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r9, rcx
mov r14d, 0x104
xor ebx, ebx
lea rcx, [rsp + 0x50]
mov edx, r14d
mov qword [r8], rbx
mov rsi, r8
call fcn.14001cb60
lea r8, [0x14004f600]
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14001cad4
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001cccd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001cdb3
mov rcx, qword [rbp + 0x188]
lea r8, [0x14004b23c]
lea edx, [r14 - 0x3b]
call fcn.14001244c
mov ebx, eax
jmp 0x14001cdb3
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
mov rcx, rax
mov dword [rsp + 0x30], ebx
call fcn.14001bd10
mov edi, eax
test eax, eax
jns 0x14001cd03
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xcf
call fcn.14001241c
mov ebx, edi
jmp 0x14001cdb3
lea r8, [0x14004f608]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14001cad4
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001cd5f
mov rcx, qword [rbp + 0x188]
lea r8, [0x14004b23c]
mov edx, 0xd5
call fcn.14001244c
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.140015238
jmp 0x14001cdb3
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14001bd10
mov edi, eax
test eax, eax
jns 0x14001cd95
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd7
call fcn.14001241c
lea rcx, [rsp + 0x38]
call fcn.140015238
jmp 0x14001ccfc
lea rcx, [rsp + 0x38]
call fcn.140015238
movsxd rdx, dword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x34]
shl rdx, 0x1f
or rdx, rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x40]
call fcn.140015238
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015f80
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret