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

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180090762
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
je 0x1800907f6
mov rdi, rbp
mov qword [rsp + 0x50], r15
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800907c3
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1800907c3
cmp rdi, rcx
mov r15, rdi
cmovge r15, rcx
mov rcx, r14
mov r8, r15
call fcn.1800e5580
mov rax, qword [rsi]
sub rdi, r15
sub dword [rax], r15d
mov rcx, qword [rbx + 0x38]
movsxd rax, r15d
add qword [rcx], rax
jmp 0x1800907e1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800907e9
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov r15d, 1
add r14, r15
test rdi, rdi
jg 0x180090783
mov r15, qword [rsp + 0x50]
sub rbp, rdi
jmp 0x1800908df
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18009080d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18009080f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180090841
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800e5580
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800908dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18009087c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1800908bd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1800c10c4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1800908dc
cmp rsi, rax
ja 0x180090890
test rsi, rsi
je 0x1800908dc
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800c10c4
sub rsi, rax
sub rbp, rsi
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x180092000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r9
mov r14, r8
call fcn.180021560
mov qword [rsp + 0x28], rbp
mov r9, r14
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov r15, rax
mov rcx, qword [rax]
or rcx, 2
call fcn.1800beed8
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
xor ebx, ebx
xor edi, edi
add eax, 1
movsxd rsi, eax
je 0x1800920bf
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x180092143
cmp rsi, 0x1000
jb 0x1800920a3
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x180092137
call fcn.1800b59a4
test rax, rax
je 0x18009213d
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1800920ae
mov rcx, rsi
call fcn.1800b59a4
mov rbx, rax
mov r8, rsi
lea rdi, [rbx + rsi]
xor edx, edx
mov rcx, rbx
call fcn.1800e5c20
mov rcx, qword [r15]
sub rdi, rbx
or rcx, 2
mov qword [rsp + 0x28], rbp
mov r8, rdi
mov qword [rsp + 0x20], 0
mov r9, r14
mov rdx, rbx
call fcn.1800beed8
mov rcx, rbx
call sub.KERNEL32.dll_OutputDebugStringA
test rbx, rbx
je 0x18009211e
cmp rdi, 0x1000
jb 0x180092113
mov rcx, qword [rbx - 8]
add rdi, 0x27
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x18009213d
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.1800b59e0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call fcn.18001c110
int3
call fcn.1800bbe74
int3
call fcn.18001c790
int3

Function at 0x180092ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 8
mov rax, qword [rdx]
mov r11, rcx
mov qword [rcx], rax
xor ecx, ecx
test rax, rax
lea r9, [rax - 0x18]
cmove r9, rcx
test r9, r9
je 0x180092b96
mov qword [rsp + 0x18], rbx
mov ebx, 0x7fff
mov qword [rsp], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
movzx edx, word [r9 + 8]
nop
movzx eax, dx
and ax, bx
cmp ax, bx
jae 0x180092b85
lea r10d, [rdx + 1]
mov word [rsp + 0x10], di
movzx eax, dx
lock cmpxchg word [r9 + 8], r10w
je 0x180092b85
nop word [rax + rax]
movzx ecx, word [rsp + 0x10]
movzx r8d, ax
xor r8w, dx
test cx, r8w
jne 0x180092b20
movzx r8d, cx
and cx, dx
not r8w
and r8w, ax
movzx edx, r8w
or dx, cx
movzx eax, dx
lock cmpxchg word [r9 + 8], r10w
jne 0x180092b50
mov rbx, qword [rsp + 0x18]
mov rax, r11
mov rdi, qword [rsp]
add rsp, 8
ret
mov rax, r11
add rsp, 8
ret
Function at 0x180092e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x418
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rsp + 0x400], rax
lea rax, [rsp]
mov r8d, 8
lea rdx, [0x1800f5500]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub r8, 1
jne 0x180092ec0
mov r8, qword [rcx]
xor eax, eax
mov r9, qword [rcx + 8]
add r9, r8
cmp r8, r9
je 0x180092f4a
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r8]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
inc r8
xor eax, dword [rsp + rcx*4]
cmp r8, r9
jne 0x180092f30
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1800b5f90
add rsp, 0x418
ret
Function at 0x1800958f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x68], 0
je 0x180095934
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x180095a7d
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xor esi, esi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], sil
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x19]
mov rdx, rdi
call qword [rax + 8]
mov rcx, qword [rbp - 9]
mov rdx, qword [rbp - 1]
cmp rcx, rdx
jae 0x180095986
lea rax, [rcx + 1]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x19]
mov word [rax + rcx], si
jmp 0x18009599c
xor r9d, r9d
movzx r8d, byte [rbp - 0x39]
mov edx, 1
lea rcx, [rbp - 0x19]
call fcn.1800279f0
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movdqa xmm6, xmmword [0x1800f5900]
movdqu xmmword [rbp + 0x17], xmm6
mov word [rbp + 7], si
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rax, qword [rbp - 0x19]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 9]
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x29]
call fcn.1800b0bf0
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x180095a3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180095a30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180095aaa
call fcn.1800b59e0
movdqa xmm6, xmmword [0x1800f5900]
movdqu xmmword [rbp + 0x17], xmm6
mov word [rbp + 7], si
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x180095a7d
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180095a78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180095aa4
call fcn.1800b59e0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800b5f90
mov rbx, qword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call fcn.1800bbe74
nop
call fcn.1800bbe74
nop
Function at 0x1800977b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, rdx
je 0x180097855
call fcn.180045bd0
mov rax, qword [rdi]
xor ecx, ecx
test rax, rax
mov qword [rbx], rax
lea r9, [rax - 0x18]
cmove r9, rcx
test r9, r9
je 0x180097855
mov rdi, 0xffffffffffffffff
mov r11d, 0x7fff
movzx edx, word [r9 + 8]
nop
movzx eax, dx
and ax, r11w
cmp ax, r11w
jae 0x180097855
lea r10d, [rdx + 1]
mov word [rsp + 0x30], di
movzx eax, dx
lock cmpxchg word [r9 + 8], r10w
je 0x180097855
nop dword [rax + rax]
movzx ecx, word [rsp + 0x30]
movzx r8d, ax
xor r8w, dx
test cx, r8w
jne 0x1800977f3
movzx r8d, cx
and cx, dx
not r8w
and r8w, ax
movzx edx, r8w
or dx, cx
movzx eax, dx
lock cmpxchg word [r9 + 8], r10w
jne 0x180097820
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180099a90
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
lea rcx, [rbp + 7]
mov rsi, r8
mov r14, rdx
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [rbp + 0x2f]
mov ecx, 0x80000000
cmp rsi, rcx
jb 0x180099b10
lea rbx, [rsi - 0x80000000]
test rdi, rdi
jne 0x180099ae0
xor ebx, ebx
jmp 0x180099af8
mov rax, rbx
xor edx, edx
div rdi
mov rax, rbx
sub rbx, rdx
add rbx, rdi
test rdx, rdx
cmove rbx, rax
movabs rax, 0xffffffff7fffffff
cmp rsi, rax
jb 0x180099b12
mov rsi, 0xffffffffffffffff
jmp 0x180099b33
xor ebx, ebx
add rsi, rcx
test rdi, rdi
jne 0x180099b1e
xor esi, esi
jmp 0x180099b33
mov rax, rsi
xor edx, edx
div rdi
mov rax, rsi
sub rsi, rdx
test rdx, rdx
cmove rsi, rax
lea r15, str.libcommonlibsse_ng_srcSKSETrampoline.cpp
lea r12, str.void___cdecl_SKSE::Trampoline::do_create_unsigned___int64_unsigned___int64_
lea r13, str.VirtualAlloc_failed_with_code:_0x:08X
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rbp - 0x29]
mov rcx, rbx
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180099c49
mov r8, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x11]
add rbx, r8
cmp dword [rbp - 9], 0x10000
jne 0x180099c3e
test rdi, rdi
jne 0x180099b8c
xor ecx, ecx
jmp 0x180099ba4
xor edx, edx
mov rax, r8
div rdi
mov rcx, rdi
sub rcx, rdx
add rcx, r8
test rdx, rdx
cmove rcx, r8
cmp rcx, rbx
jae 0x180099c3e
mov rax, rbx
sub rax, rcx
cmp rax, r14
jb 0x180099c3e
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180099cb7
call sub.KERNEL32.dll_GetLastError
mov dword [rbp + 0x77], eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], 0x6a
mov qword [rbp - 0x79], r12
call fcn.1800aa900
movups xmm1, xmmword [rsp + 0x30]
lea rcx, [rbp + 0x77]
mov qword [rbp - 0x69], r13
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x59]
mov qword [rbp - 0x61], 0x27
lea rdx, [rbp - 0x49]
movaps xmm0, xmmword [rbp - 0x69]
mov r8d, 3
movdqa xmmword [rbp - 0x59], xmm0
mov rcx, rax
movsd xmm0, qword [rbp - 0x79]
movsd qword [rbp - 0x39], xmm0
movaps xmmword [rbp - 0x49], xmm1
call fcn.180098970
cmp rbx, rsi
jb 0x180099b50
jmp 0x180099cb5
call sub.KERNEL32.dll_GetLastError
mov dword [rbp + 0x77], eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x38], 0x59
mov qword [rbp - 0x79], r12
call fcn.1800aa900
movups xmm1, xmmword [rsp + 0x30]
lea rcx, str.VirtualQuery_failed_with_code:_0x:08X
mov qword [rbp - 0x61], 0x27
mov qword [rbp - 0x69], rcx
lea r9, [rbp - 0x59]
movaps xmm0, xmmword [rbp - 0x69]
lea rcx, [rbp + 0x77]
movdqa xmmword [rbp - 0x59], xmm0
lea rdx, [rbp - 0x49]
movsd xmm0, qword [rbp - 0x79]
mov r8d, 4
mov qword [rsp + 0x20], rcx
mov rcx, rax
movsd qword [rbp - 0x39], xmm0
movaps xmmword [rbp - 0x49], xmm1
call fcn.180098970
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18009a7a0
Capabilities:
Get file version info

Disassembly:
sub rsp, 0x28
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x18009ac10
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
movups xmm0, xmmword [rcx]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
add rsp, 0x38
ret
Function at 0x1800a98d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1800a9a5f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800a96d0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1800a9a24
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rbp
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x1800a999f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800a9a13
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x1800a99d8
mov r10, qword [rdx]
cmp r10, rax
je 0x1800a99d2
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1800a9a13
cmp r8, rdx
je 0x1800a99ef
nop dword [rax]
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x1800a9a39
cmp r8, rdx
jne 0x1800a99e0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1800a9970
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1800a9a13
lea rcx, str.invalid_hash_bucket_count
call fcn.1800b23a0
int3
Function at 0x1800b2710
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800b274a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800b274f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800b2798
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180103f20]
cmp byte [rcx + rax], 0
je 0x1800b2798
dec r8
sub rdx, 1
jne 0x1800b277e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800bf7dc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800bf813
call fcn.1800c0414
mov dword [rax], 0x16
call fcn.1800bbe54
xor eax, eax
jmp 0x1800bf8a1
mov rdx, r9
mov rcx, r8
call fcn.1800bf778
mov rbx, rax
test rax, rax
je 0x1800bf89e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800bf6a4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800bf88b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800c0388
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800bf872
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800bf881
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800d1cbc
jmp 0x1800bf89e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bf89b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800cb748
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180125a90]
mov rbp, rcx
call fcn.1800db030
xor edi, edi
test rax, rax
je 0x1800cb82e
mov ebx, edi
call fcn.1800c0414
mov r14d, dword [rax]
call fcn.1800c0414
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1800daf7c
mov rsi, rax
test rax, rax
je 0x1800cb7bf
call fcn.1800c0414
mov dword [rax], r14d
jmp 0x1800cb7e9
call fcn.1800c0414
cmp dword [rax], 0x22
jne 0x1800cb826
call fcn.1800c0414
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1800daf7c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1800cb826
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1800cb7ed
cmp rax, 3
je 0x1800cb808
mov rcx, rsi
call fcn.1800cb6a4
test al, al
je 0x1800cb819
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1800cb819
mov dil, 1
mov rcx, rbx
call fcn.1800bbf74
mov al, dil
jmp 0x1800cb830
mov rcx, rbx
call fcn.1800bbf74
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800b5f90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1800cbee0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1800cbeff
call fcn.1800db464
jmp 0x1800cbfb4
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1800bff70
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1800cbf4a
cmp byte [rbp - 0x38], 0
je 0x1800cbf7f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800cbf7f
call fcn.1800d3b84
test eax, eax
jne 0x1800cbf6b
cmp byte [rbp - 0x38], al
je 0x1800cbf63
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800cbf7f
cmp byte [rbp - 0x38], 0
je 0x1800cbf7c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1800cad24
test eax, eax
je 0x1800cbf98
or ebx, 0xffffffff
jmp 0x1800cbfa3
mov rcx, qword [rbp - 0x20]
call fcn.1800db464
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1800cbfb2
mov rcx, qword [rbp - 0x20]
call fcn.1800d1cbc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1800cea34
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800ceaa3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800ceaa3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800ceaa3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800ceaa3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800ceaa3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800ceaa3
cmp dword [rcx + 0xf8], 0
je 0x1800ceaa3
mov ecx, ebx
call fcn.1800ceb54
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800ce930
nop
cmp dword [rbp + 0x20], 0
je 0x1800ceaf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800ceafc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800cea34
Function at 0x1800d7008
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, [0x18016aa10]
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 0x1800d705f
cmp word [rdx], r13w
jne 0x1800d705f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800d7064
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800d7189
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800d71aa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800d709d
mov rdx, r9
mov word [rbx], cx
jmp 0x1800d70c4
cmp r9, r8
jae 0x1800d70d4
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 0x1800d707e
jmp 0x1800d7189
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 0x1800d717e
cmp dword [rsp + 0x80], esi
je 0x1800d717e
lea r8, [0x18016aa10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800d7156
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800d7126
mov word [rbx], r13w
jmp 0x1800d7186
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 0x1800d7133
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800d7186
cmp word [rsp + 0x70], r13w
jne 0x1800d7163
cmp rbx, r14
je 0x1800d7120
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800d930c
cmp word [rsp + 0x70], r13w
je 0x1800d7189
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, [0x18016aa10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800d7183
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800d7189