joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ecc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000eced
xor eax, eax
jmp 0x14000ee42
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14000ed18
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14000ed18
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000ee42
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000ee35
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000ed5b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000ed86
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ee3a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x14000ee35
cmp eax, 1
jle 0x14000edf5
cmp eax, 3
jne 0x14000ee35
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ee3a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000ee23
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000ee35
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000ee3a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010890
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000f350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f3fc
cmp byte [rcx + 0x71], 0
je 0x14000f3fc
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000f3bd
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f3c1
sub eax, 1
je 0x14000f3c5
sub eax, 2
je 0x14000f3fc
xor al, al
jmp 0x14000f3fe
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f3f3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000f3bd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000f3fe
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010890
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140010450
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400105b0
test al, 0x10
je 0x1400105b0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov edx, 1
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov r8d, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1400105b0
lea rax, [rsp + 0x60]
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x20]
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x40], esi
mov r9d, 0x220
mov dword [rsp + 0x38], esi
mov dl, 2
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x84], 0x500
mov qword [rsp + 0x60], rsi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140010546
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x48], esi
xor r9d, r9d
mov dword [rsp + 0x40], esi
mov dl, 1
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
lea r8d, [r9 + 0x12]
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400105a5
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x70]
or ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140010890
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400105e0
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001078f
test al, 0x10
je 0x14001078f
lea rax, [rbp + 0xf]
mov qword [rsp + 0xd0], rsi
xor esi, esi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
lea rcx, [rbp + 0x27]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dl, 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov qword [rbp + 0xf], rsi
mov dword [rbp + 0x27], esi
mov word [rbp + 0x2b], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140010765
mov rdx, qword [rbp + 0xf]
lea rcx, [rbp + 0x2f]
xor eax, eax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
call qword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea rax, [rbp + 0x1f]
mov qword [rbp + 7], rsi
mov qword [rsp + 0x38], rax
lea edx, [rsi + 1]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8d, [rsi + 4]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp + 0x1f], rsi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x14001075b
mov rcx, qword [rbp + 7]
mov qword [rsp + 0xc8], rbx
mov ebx, esi
cmp si, word [rcx + 4]
jae 0x140010724
nop
lea r8, [rbp + 0x17]
mov qword [rbp + 0x17], rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140010716
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp + 0xf]
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140010716
mov rcx, qword [rbp + 7]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_DeleteAce]
mov rcx, qword [rbp + 7]
inc ebx
movzx eax, word [rcx + 4]
cmp ebx, eax
jl 0x1400106e0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov r8d, 0x80000004
mov rcx, rdi
mov qword [rsp + 0x20], rsi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rsi, qword [rsp + 0xd0]
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140010890
mov rdi, qword [rsp + 0xd8]
add rsp, 0xb0
pop rbp
ret
mov eax, 1
jmp 0x140010772
Function at 0x140008ae0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140008b02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140008b7c
mov rdi, r14
mov rcx, rbx
call fcn.140003f20
test rax, rax
jle 0x140008b54
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400a7a30
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140008b6c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140008b74
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140008b16
sub r14, rdi
jmp 0x140008c5f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140008b93
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008b95
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008bc7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400a7a30
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140008c5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008c02
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 rbp, 0xfff
jbe 0x140008c3d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14008062c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140008c5c
cmp rbp, rax
ja 0x140008c10
test rbp, rbp
je 0x140008c5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14008062c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400158d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov eax, 0x12345678
mov ebx, 0x23456789
mov r9d, 0x34567890
mov dword [rdx], eax
mov dword [rdx + 4], ebx
mov r11, rcx
mov dword [rdx + 8], r9d
mov r10, rdx
movzx ecx, byte [rcx]
test cl, cl
je 0x14001594a
nop dword [rax + rax]
mov edx, eax
lea r11, [r11 + 1]
xor rdx, rcx
shr eax, 8
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
movzx ecx, al
add ecx, ebx
mov dword [r10], eax
imul ebx, ecx, 0x8088405
mov ecx, r9d
shr r9d, 8
inc ebx
mov dword [r10 + 4], ebx
mov edx, ebx
shr rdx, 0x18
xor rdx, rcx
movzx ecx, dl
xor r9d, dword [r8 + rcx*4]
mov dword [r10 + 8], r9d
movzx ecx, byte [r11]
test cl, cl
jne 0x140015900
mov rbx, qword [rsp + 8]
ret

Function at 0x140015950
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
xor r15d, r15d
xor r12d, r12d
test byte [rcx + 0x110], 1
mov rbx, rcx
je 0x140015a24
xor r11d, r11d
cmp dword [rcx + 0xec], r11d
jbe 0x140015a24
nop
movzx eax, byte [r11 + rbx + 0x120]
mov edx, dword [rbx + 0x10148]
xor rax, rdx
mov r8, qword [rbx + 0x10158]
mov r10d, dword [rbx + 0x10150]
movzx ecx, al
and r10d, 0xfffd
shr edx, 8
or r10d, 2
xor edx, dword [r8 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1014c]
imul ecx, eax, 0x8088405
mov dword [rbx + 0x10148], edx
mov edx, dword [rbx + 0x10150]
inc ecx
mov dword [rbx + 0x1014c], ecx
shr rcx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
xor edx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10150], edx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x120], al
inc r11d
cmp r11d, dword [rbx + 0xec]
jb 0x140015990
mov ebp, dword [rbx + 0xec]
mov qword [rsp + 0x40], r14
nop
cmp qword [rbx + 0x10180], 0
mov edi, ebp
jbe 0x140015a87
mov rdx, qword [rbx + 0x68]
mov r9d, 2
xor r8d, r8d
mov rcx, rbx
call fcn.140014d70
mov rdx, qword [rbx + 0x68]
mov rcx, rbx
call fcn.140014da0
mov r14, qword [rbx + 0x10180]
mov r15d, 0
sub r14, rax
jne 0x140015a7e
mov rcx, rbx
call fcn.140016b10
mov r15d, eax
test eax, eax
jne 0x140015af7
mov ecx, ebp
cmp r14, rcx
cmovb edi, r14d
mov rdx, qword [rbx + 0x68]
mov r9d, edi
mov rcx, qword [rbx + 0x40]
mov r8d, r12d
add r8, 0x120
add r8, rbx
call qword [rbx + 0x18]
mov rdx, qword [rbx + 0x68]
mov edi, eax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x38]
test eax, eax
jne 0x140015ac0
add r12d, edi
sub ebp, edi
jne 0x140015a30
jmp 0x140015ac6
mov r15d, 0xffffffff
mov eax, dword [rbx + 0xec]
add qword [rbx + 0x10138], rax
mov eax, dword [rbx + 0x9c]
add qword [rbx + 0x10140], rax
mov eax, r15d
mov dword [rbx + 0x9c], 0
mov dword [rbx + 0xec], 0
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x140077a1c
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 0x140077a56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140077a5b
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 0x140077aa4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bb740]
cmp byte [rcx + rax], 0
je 0x140077aa4
dec r8
sub rdx, 1
jne 0x140077a8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140079574
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400795be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400795be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400795be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400795be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400795be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400795c0
xor al, al
add rsp, 0x28
ret
Function at 0x14008b1f8
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.140078c10
sub rsp, rax
mov rax, qword [0x1400d6a80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140097e14
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008b247
mov rax, rbp
jmp 0x14008b34f
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 + 0xd9e70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008c970
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd9e70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008b34b
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 0x14008b34b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008c970
test rax, rax
js 0x14008b34b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008b34b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008b33d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008b33d
cmp byte [rcx], 0xd
jne 0x14008b323
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008b332
cmp byte [rcx + 1], 0xa
jne 0x14008b332
inc rcx
jmp 0x14008b332
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd6cd0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008b305
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008b34f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400786a0
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 0x14008ccc0
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, [0x1400d9e70]
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 0x14008cd17
cmp word [rdx], r13w
jne 0x14008cd17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008cd1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008ce41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008ce62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008cd55
mov rdx, r9
mov word [rbx], cx
jmp 0x14008cd7c
cmp r9, r8
jae 0x14008cd8c
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 0x14008cd36
jmp 0x14008ce41
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 0x14008ce36
cmp dword [rsp + 0x80], esi
je 0x14008ce36
lea r8, [0x1400d9e70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008ce0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008cdde
mov word [rbx], r13w
jmp 0x14008ce3e
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 0x14008cdeb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008ce3e
cmp word [rsp + 0x70], r13w
jne 0x14008ce1b
cmp rbx, r14
je 0x14008cdd8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008c978
cmp word [rsp + 0x70], r13w
je 0x14008ce41
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, [0x1400d9e70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008ce3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008ce41
Function at 0x14008e4e4
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 0x14008e51b
call fcn.140081390
mov dword [rax], 0x16
call fcn.14007f7ac
xor eax, eax
jmp 0x14008e5a9
mov rdx, r9
mov rcx, r8
call fcn.14008e480
mov rbx, rax
test rax, rax
je 0x14008e5a6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14008e3ac]
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 0x14008e593
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140081304
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008e57a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008e589
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400969fc
jmp 0x14008e5a6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008e5a3
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 0x14008f670
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 [0x1400d6a80]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400bdcb0]
mov rbp, rcx
call fcn.14009cf84
xor edi, edi
test rax, rax
je 0x14008f756
mov ebx, edi
call fcn.140081390
mov r14d, dword [rax]
call fcn.140081390
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14009ced0
mov rsi, rax
test rax, rax
je 0x14008f6e7
call fcn.140081390
mov dword [rax], r14d
jmp 0x14008f711
call fcn.140081390
cmp dword [rax], 0x22
jne 0x14008f74e
call fcn.140081390
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14009ced0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14008f74e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14008f715
cmp rax, 3
je 0x14008f730
mov rcx, rsi
call fcn.14008f5cc
test al, al
je 0x14008f741
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14008f741
mov dil, 1
mov rcx, rbx
call fcn.14007f844
mov al, dil
jmp 0x14008f758
mov rcx, rbx
call fcn.14007f844
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400786a0
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 0x140092e74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140092c70