joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400115a0
sub rsp, rax
mov rax, qword [0x1400610a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002117c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023cbf
mov rax, rbp
jmp 0x140023dc7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x63530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140024bbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x63530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023dc3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023dc3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140024bbc
test rax, rax
js 0x140023dc3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023dc3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023db5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023db5
cmp byte [rcx], 0xd
jne 0x140023d9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023daa
cmp byte [rcx + 1], 0xa
jne 0x140023daa
inc rcx
jmp 0x140023daa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023d7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023dc7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010d10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023f5c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140063530]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140023fb3
cmp word [rdx], r13w
jne 0x140023fb3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023fb8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400240dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400240fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023ff1
mov rdx, r9
mov word [rbx], cx
jmp 0x140024018
cmp r9, r8
jae 0x140024028
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140023fd2
jmp 0x1400240dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400240d2
cmp dword [rsp + 0x80], esi
je 0x1400240d2
lea r8, [0x140063530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400240aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002407a
mov word [rbx], r13w
jmp 0x1400240da
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140024087
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400240da
cmp word [rsp + 0x70], r13w
jne 0x1400240b7
cmp rbx, r14
je 0x140024074
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024bc4
cmp word [rsp + 0x70], r13w
je 0x1400240dd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140063530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400240d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400240dd
Function at 0x140027ef0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140027f77
mov rsi, rbx
cmp word [rax], bp
je 0x140027f36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140027f20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140027f1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002111c
mov rdi, rax
test rax, rax
je 0x140027f64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140012d60
mov rbp, rdi
xor ecx, ecx
call fcn.140020fec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002ac68
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.140020c10
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 0x14002ad09
cmp ebx, dword [rsp + 0x30]
je 0x14002ad02
test esi, esi
je 0x14002ad02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002acdd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002acea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002acc7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002acee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002ad0b
mov eax, 1
jmp 0x14002ad0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d1f4
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.140024bc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140024bc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002d344
cmp rax, 0xffffffffffffffff
je 0x14002d344
xor edi, edi
test rbp, rbp
jle 0x14002d2ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022dbc
mov rbx, rax
test rax, rax
jne 0x14002d27c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002d2e5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ea6c
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.140022138
cmp eax, 0xffffffff
je 0x14002d2c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d28c
mov edx, r15d
mov ecx, r14d
call fcn.14001ea6c
jmp 0x14002d2e5
cmp byte [rsi + 0x38], dil
je 0x14002d2dc
cmp dword [rsi + 0x34], 5
jne 0x14002d2dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002d2e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140020fec
jmp 0x14002d358
jns 0x14002d358
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140024bc4
cmp rax, 0xffffffffffffffff
jne 0x14002d310
cmp byte [rsi + 0x30], dil
je 0x14002d358
mov edi, dword [rsi + 0x2c]
jmp 0x14002d358
mov ecx, r14d
call fcn.140028748
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002d358
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 0x14002d358
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002d351
mov eax, dword [rsi + 0x2c]
jmp 0x14002d356
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140024bc4
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 0x18004f9d0
Capabilities:
Encode data using xor

Disassembly:
ja 0x18004fa2c
invalid
mov bh, ah
jns 0x18004fa8c
invalid
imul ecx, edi, 0x12
xchg dword [rsi - 0x535efc0], ebx
out 0x2b, al
cmp eax, 0x329e3743
pop rcx
insb byte [rdi], dx
pop rax
mov dh, 0xe
enter 0xfffffffffffffc57, 0xffffffffffffffab
adc r12b, byte [r9 - 2]
invalid
cmp ebx, dword [rbx]
leave
jo 0x18004fa2a
fdivr st(6)
stosb byte [rdi], al
xor eax, 0x24f7c7
pop rsi
xchg ecx, eax
xor dword [rsi], edx
or esp, esp
mov ds, word [rdx]
loopne 0x18004fa93
adc esi, esi
xor eax, edx
cmp dword [rdx + riz*4 - 0x58ad44d6], esp
sbb ecx, ebx
jo 0x18004fa5d
mov byte [rdi - 0xf2f272b], bh
invalid

Function at 0x180772058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1807721df
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 0x180772089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18077206f
add dl, dl
jne 0x180772096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807720f6
xor eax, eax
add dl, dl
jne 0x1807720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807721ad
add dl, dl
jne 0x1807720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18077207e
mov eax, 1
add dl, dl
jne 0x180772106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180772113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807720fb
sub eax, ebx
mov ebx, 1
jne 0x18077214c
mov ecx, 1
add dl, dl
jne 0x18077212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18077213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180772123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180772168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180772175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18077215d
cmp eax, 0x7d00
jae 0x18077219b
cmp eax, 0x500
jb 0x180772196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077207e
cmp eax, 0x7f
ja 0x18077219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807721d2
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 0x18077207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14005fc18
Capabilities:
Parse pe header

Disassembly:
mov rbx, qword [0x101914837]
mov eax, 0x5a4d
cmp word [0x140000004], ax
jne 0x14005fca5
movsxd rcx, dword [0x140000040]
lea rdx, [0x140000004]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14005fca5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005fca5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14005fc8c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14005fc86
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14005fcaa
sbb byte [rbx - 0x2014d73e], al
xor edx, edx
test rdx, rdx
jne 0x14005fc97
xor al, al
jmp 0x14005fcab
cmp dword [rdx + 0x24], 0
jge 0x14005fca1
xor al, al
jmp 0x14005fcab
mov al, 1
jmp 0x14005fcab
xor al, al
jmp 0x14005fcab
sal byte [rbx], 0x83
invalid
xor eax, dword [rbx + 0x40c318c4]
push rbx
mov rbx, qword [0x128df86d9]
invalid
Function at 0x140001600
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
sub rsp, 0x20
mov r10, r8
xor r9d, r9d
mov r8d, dword [rcx]
mov r14, rcx
lea eax, [r8*4]
test eax, eax
je 0x14000163c
nop
movzx eax, byte [r9 + rdx]
mov byte [r10 + r9], al
inc r9d
mov r8d, dword [rcx]
lea eax, [r8*4]
cmp r9d, eax
jb 0x140001620
mov eax, dword [rcx + 4]
lea r9d, [r8*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x1400017bd
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
lea r12, [0x1400034c0]
mov qword [rsp], r15
lea r15d, [r9 + 2]
nop dword [rax]
mov ebp, dword [r14]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r10]
xor edx, edx
lea eax, [r9 - 3]
movzx r11d, r8b
movzx ebx, byte [rax + r10]
lea eax, [r9 - 2]
movzx edi, byte [rax + r10]
lea eax, [r9 - 1]
movzx esi, byte [rax + r10]
mov eax, r9d
shr eax, 2
div ebp
test edx, edx
jne 0x14000170b
movzx r11d, byte [rbx + r12]
xor edx, edx
movzx ebx, byte [rdi + r12]
mov eax, r9d
movzx edi, byte [rsi + r12]
mov cl, 1
movzx esi, byte [r8 + r12]
lea r8d, [rbp*4]
div r8d
sub eax, 1
je 0x140001706
mov r8d, eax
nop word [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x1400016f0
xor r11b, cl
jmp 0x140001729
cmp ebp, 6
jbe 0x140001729
cmp edx, 4
jne 0x140001729
movzx r11d, byte [r8 + r12]
movzx ebx, byte [rbx + r12]
movzx edi, byte [rdi + r12]
movzx esi, byte [rsi + r12]
mov ecx, r9d
lea eax, [rbp*4]
sub ecx, eax
xor r11b, byte [rcx + r10]
mov ecx, r9d
mov byte [r9 + r10], r11b
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 - 1]
inc ecx
xor bl, byte [rcx + r10]
mov ecx, r9d
mov byte [rax + r10], bl
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
add ecx, 2
xor dil, byte [rcx + r10]
mov ecx, r9d
mov byte [r15 + r10], dil
add r9d, 4
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 + 1]
add ecx, 3
add r15d, 4
xor sil, byte [rcx + r10]
mov byte [rax + r10], sil
mov eax, dword [r14 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x140001680
mov r15, qword [rsp]
mov r12, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140002700
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14000f0e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x14000f222
cmp eax, 7
je 0x14000f222
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14000f222
mov ecx, ebx
lea rdx, [rsp + 0x40]
lea r8, str.NTFS
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000f191
cmp rcx, 5
jne 0x14000f170
mov ebx, 1
movzx eax, bl
jmp 0x14000f224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, [0x140022358]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000f1be
cmp rcx, 4
jne 0x14000f1a0
mov ebx, 1
movzx eax, bl
jmp 0x14000f224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, str.FAT32
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000f1ee
cmp rcx, 6
jne 0x14000f1d0
mov ebx, 1
movzx eax, bl
jmp 0x14000f224
lea rdx, str.exFAT
lea rcx, [rsp + 0x40]
call fcn.140013c84
test eax, eax
je 0x14000f218
lea rdx, str.reFS
lea rcx, [rsp + 0x40]
call fcn.140013c84
test eax, eax
jne 0x14000f21d
mov ebx, 1
movzx eax, bl
jmp 0x14000f224
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140010550
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14000f250
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x840], rax
xor r12d, r12d
mov rbx, rcx
mov r8, rcx
mov dword [rsp + 0x28], r12d
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
mov r15b, 1
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
lea edx, [r12 + 2]
lea rcx, [r14 + 1]
call fcn.140013ab4
or r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, 0x5c
mov rcx, rdi
mov edx, r13d
call fcn.140011000
mov rsi, rax
test rax, rax
je 0x14000f3f9
mov qword [rsp + 0x888], rbp
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f3c8
bt eax, 0xa
jae 0x14000f3c8
cmp qword [0x14002cda0], r12
je 0x14000f39c
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000f39c
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call qword [0x14002cda0]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx - 1]
cmp eax, 0x3fe
ja 0x14000f39c
mov r8d, 8
lea rdx, str._UNC_
lea rcx, [rsp + 0x40]
call fcn.140013acc
test eax, eax
je 0x14000f3ee
lea eax, [r14 - 1]
mov r8d, 0x400
movsxd rcx, eax
lea rdx, [rsp + 0x40]
movsxd rax, r14d
mov word [rdi + rcx*2], r13w
mov rcx, rdi
mov word [rdi + rax*2], r12w
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14000f3ee
mov word [rsi], r12w
mov edx, r13d
sub rsi, rdi
mov rcx, rdi
mov r14, rsi
sar r14, 1
call fcn.140011000
mov rsi, rax
test rax, rax
jne 0x14000f300
jmp 0x14000f3f1
xor r15b, r15b
mov rbp, qword [rsp + 0x888]
mov rcx, rdi
call fcn.140013abc
movzx eax, r15b
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140010550
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000f560
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x670], rax
lea rbx, [0x14002ca30]
mov rbp, rcx
mov rdi, rbx
mov esi, 0x1a
xor r14d, r14d
cmp byte [rbx + 0x19], r14b
je 0x14000f672
movsx ecx, byte [rbx]
call fcn.140013fa8
mov r8d, 0x104
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x42], 0x3a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 4
jbe 0x14000f672
cmp word [rsp + 0x50], 0x5c
jne 0x14000f672
cmp word [rsp + 0x52], 0x3f
jne 0x14000f672
cmp word [rsp + 0x54], 0x3f
jne 0x14000f672
cmp word [rsp + 0x56], 0x5c
jne 0x14000f672
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x260]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x58]
mov dword [rsp + 0x28], 0x410
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rdi
mov rcx, rbp
call fcn.14000f000
lea rdx, [0x14002238c]
mov rcx, rbp
call fcn.14000f000
lea rdx, [rsp + 0x260]
mov rcx, rbp
call fcn.14000f000
lea rdx, [0x14002238c]
mov rcx, rbp
call fcn.14000f000
add rdi, 0x20
add rbx, 0x20
sub rsi, 1
jne 0x14000f5a2
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140010550
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140014cb8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140014a8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014a8c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014a8c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014a8c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014a8c
cmp dword [rcx + 0x84], 0xe
jbe 0x140014a8c
cmp dword [rcx + 0xf8], esi
je 0x140014a8c
mov ecx, r14d
call fcn.140014bd4
mov ecx, 2
call fcn.140017218
nop
cmp byte [0x14002d678], 0
jne 0x140014b56
mov r15d, 1
mov eax, r15d
xchg dword [0x14002d668], eax
test ebx, ebx
jne 0x140014aff
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14002d670]
cmp rcx, rax
je 0x140014af6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140011524]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002d6b8]
jmp 0x140014b0b
cmp ebx, r15d
jne 0x140014b11
lea rcx, [0x14002d6d0]
call fcn.140015204
nop
test ebx, ebx
jne 0x140014b28
lea rdx, [0x140022330]
lea rcx, [0x140022310]
call fcn.14001494c
lea rdx, [0x140022340]
lea rcx, [0x140022338]
call fcn.14001494c
movzx eax, byte [0x14002d678]
test esi, esi
cmove eax, r15d
mov byte [0x14002d678], al
jmp 0x140014b56
mov ecx, 2
call fcn.14001726c
test esi, esi
jne 0x140014b6d
mov ecx, r14d
call fcn.140014b88
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140014a1c