joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061f6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140061f82
mov al, 1
jmp 0x140061fe2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140061f93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140061fe0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140054f24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140061fe0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140061fe0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140061fe0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140061fe2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400652ac
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.14005c09c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005c09c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400653fc
cmp rax, 0xffffffffffffffff
je 0x1400653fc
xor edi, edi
test rbp, rbp
jle 0x1400653a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400633e0
mov rbx, rax
test rax, rax
jne 0x140065334
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006539d
mov edx, 0x8000
mov ecx, r14d
call fcn.140055e4c
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.14005eaec
cmp eax, 0xffffffff
je 0x14006537d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140065344
mov edx, r15d
mov ecx, r14d
call fcn.140055e4c
jmp 0x14006539d
cmp byte [rsi + 0x38], dil
je 0x140065394
cmp dword [rsi + 0x34], 5
jne 0x140065394
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006539d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140062e30
jmp 0x140065410
jns 0x140065410
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005c09c
cmp rax, 0xffffffffffffffff
jne 0x1400653c8
cmp byte [rsi + 0x30], dil
je 0x140065410
mov edi, dword [rsi + 0x2c]
jmp 0x140065410
mov ecx, r14d
call fcn.140054f24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140065410
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 0x140065410
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140065409
mov eax, dword [rsi + 0x2c]
jmp 0x14006540e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005c09c
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 0x1400668bc
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 0x1400668ec
xor eax, eax
jmp 0x1400669af
mov rbp, rbx
cmp word [rax], si
je 0x140066911
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400668f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400668f4
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.140064f50
movsxd r14, eax
test eax, eax
jne 0x14006694f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400668e5
mov rcx, r14
call fcn.140062dd0
mov rdi, rax
test rax, rax
jne 0x140066968
xor ecx, ecx
call fcn.140062e30
jmp 0x140066944
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.140064f50
test eax, eax
jne 0x140066999
mov rcx, rdi
call fcn.140062e30
jmp 0x1400669a3
xor ecx, ecx
call fcn.140062e30
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 0x140069e4c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14005745c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140069ed6
cmp byte [rbp - 0x21], r15b
je 0x140069ed1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140069f0c
call fcn.14006377c
test eax, eax
jne 0x140069ef8
cmp byte [rbp - 0x21], r15b
je 0x140069ef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140069f0c
cmp byte [rbp - 0x21], r15b
je 0x140069f09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14005afb8
test eax, eax
jne 0x140069fac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005745c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140069f4b
cmp byte [rbp - 0x21], r15b
je 0x140069f80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140069f80
call fcn.14006377c
test eax, eax
jne 0x140069f6c
cmp byte [rbp - 0x21], r15b
je 0x140069f65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140069f80
cmp byte [rbp - 0x21], r15b
je 0x140069f7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14005afb8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140069fac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140069faf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140069fbd
mov rcx, rdi
call fcn.140062e30
cmp byte [rbp + 0x3f], r15b
je 0x140069fcc
mov rcx, qword [rbp + 0x27]
call fcn.140062e30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14006cc20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006cc48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006cc48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180002445
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r10d, ecx
xor ebx, ebx
movsxd rcx, dword [rdx + 0x3c]
mov r12d, r9d
add rcx, rdx
mov r13d, r8d
mov rsi, rdx
mov eax, dword [rcx + r10*8 + 0x88]
add rax, rdx
mov edi, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add rdi, rdx
mov r14d, dword [rax + 0x24]
add rbp, rdx
mov r15d, dword [rax + 0x18]
add r14, rdx
test r15d, r15d
je 0x1800024ba
mov edx, dword [rdi]
mov ecx, r12d
add rdx, rsi
call fcn.18000240d
cmp eax, r13d
je 0x1800024d9
inc ebx
add rdi, 4
cmp ebx, r15d
jb 0x18000249d
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx ecx, word [r14 + rbx*2]
mov eax, dword [rbp + rcx*4]
add rax, rsi
jmp 0x1800024bc

Function at 0x180002551
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov esi, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rbx, qword [rdi]
jmp 0x180002588
mov rcx, qword [rbx + 0x60]
call fcn.1800025a5
cmp esi, eax
je 0x18000259f
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180002578
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x18000258f
Function at 0x180065af0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x1040
call fcn.1801339d0
sub rsp, rax
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rax, [rsp + 0x1058]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x1050]
lea rcx, [rsp + 0x30]
call fcn.1800eb8d0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x1040
pop rdi
ret

Function at 0x1800660f0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x3c0000
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180066123
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180066125
xor eax, eax
add rsp, 0x28
ret
Function at 0x180067550
Capabilities:
Get file size

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0xffffffffffffffff
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x180067694
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rax, qword [rsp + 0x110]
mov dword [rax], edx
mov dword [rsp + 0x70], 5
mov rax, qword [rsp + 0x110]
mov r9d, dword [rax]
mov rax, qword [rsp + 0x110]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0xd8]
lea rcx, [0x180002cf0]
call fcn.1800892c0
mov edx, dword [rsp + 0x108]
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xd8]
lea r8, [0x180002cf0]
mov rcx, qword [rsp + 0x100]
call fcn.1800ec1d0
mov eax, dword [rsp + 0x70]
jmp 0x1800677ee
mov dword [rsp + 0x94], 0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0xffffffff
jne 0x180067760
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rax, qword [rsp + 0x110]
mov dword [rax], edx
mov dword [rsp + 0x70], 5
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x110]
mov r9d, dword [rax]
xor r8d, r8d
mov edx, dword [rsp + 0x60]
lea rcx, [0x180002c80]
call fcn.1800892c0
mov edx, dword [rsp + 0x108]
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
lea r8, [0x180002c80]
mov rcx, qword [rsp + 0x100]
call fcn.1800ec1d0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x70]
jmp 0x1800677ee
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x88]
mov rdi, qword [rdi]
mov byte [rsp + 0x58], 0
mov word [rsp + 0x50], 0x7c0
movzx eax, byte [rsp + 0xf8]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0xf0]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0xe8]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0xe0]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x180002c68]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x88]
call qword [rdi + 0x50]
nop
mov eax, dword [rsp + 0x70]
add rsp, 0xc0
pop rdi
ret
Function at 0x180073750
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1090
call fcn.1801339d0
sub rsp, rax
mov qword [rsp + 0x1078], 0xfffffffffffffffe
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x1088], rax
mov rax, qword [rsp + 0x10a0]
mov qword [rsp + 0x1048], rax
mov dword [rsp + 0x1040], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x1050], 0
mov rdi, qword [rsp + 0x10c0]
xor eax, eax
mov ecx, 0x36
rep stosb byte [rdi], al
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x1048]
call fcn.1800d7b80
nop
mov rcx, qword [rsp + 0x10c8]
movzx eax, byte [rsp + 0x28]
mov byte [rcx], al
movzx eax, byte [rsp + 0x28]
cmp eax, 1
jne 0x1800739df
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 2]
and cl, 3
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 1], cl
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 2]
shr cl, 2
and cl, 3
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 2], cl
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 2]
shr cl, 4
and cl, 1
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 3], cl
mov rcx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 3]
mov byte [rcx + 4], al
mov rcx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 4]
mov byte [rcx + 5], al
mov rcx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 5]
mov byte [rcx + 6], al
mov rcx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 6]
mov byte [rcx + 7], al
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 7]
shr cl, 5
and cl, 1
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 8], cl
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 7]
shr cl, 6
and cl, 1
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 9], cl
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 7]
shr cl, 7
and cl, 1
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 0xa], cl
mov rcx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 8]
mov byte [rcx + 0xb], al
mov rdx, qword [rsp + 0x20]
add rdx, 0xc
mov rcx, qword [rsp + 0x10c8]
add rcx, 0xc
mov r8d, 4
call fcn.1800eb460
mov rdx, qword [rsp + 0x20]
add rdx, 0x10
mov rcx, qword [rsp + 0x10c8]
add rcx, 0x10
mov r8d, 4
call fcn.1800eb460
mov rdx, qword [rsp + 0x20]
add rdx, 0x14
mov rcx, qword [rsp + 0x10c8]
add rcx, 0x14
mov r8d, 4
call fcn.1800eb460
mov rdx, qword [rsp + 0x20]
add rdx, 0x18
mov rcx, qword [rsp + 0x10c8]
add rcx, 0x18
mov r8d, 8
call fcn.1800eb460
mov rdx, qword [rsp + 0x10c8]
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x21]
mov byte [rdx + 0x20], al
mov rcx, qword [rsp + 0x1048]
call fcn.1800b4210
mov dword [rsp + 0x1050], eax
cmp dword [rsp + 0x1050], 6
je 0x1800739d3
cmp dword [rsp + 0x1050], 9
jne 0x1800739df
mov rax, qword [rsp + 0x10c8]
mov byte [rax + 1], 1
mov eax, dword [rsp + 0x1040]
mov rcx, qword [rsp + 0x1088]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x1090
pop rdi
ret
Function at 0x180076cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x8878
call fcn.1801339d0
sub rsp, rax
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x8860], rax
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rax, [rsp + 0x8060]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], 0
mov r8, qword [rsp + 0x8898]
mov rdx, qword [rsp + 0x8890]
lea rcx, [0x1800070e8]
call fcn.1800892c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x8890]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x180076d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x8890]
lea rcx, [0x180007080]
call fcn.1800892c0
mov eax, dword [rsp + 0x48]
jmp 0x180076ed3
lea rdi, [rsp + 0x60]
xor eax, eax
mov ecx, 0x8800
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 0x8800
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180076e02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x8890]
lea rcx, [0x180007010]
call fcn.1800892c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x180076ed3
mov eax, dword [rsp + 0x4c]
cmp rax, 0x8800
je 0x180076e56
mov dword [rsp + 0x48], 0x3e4
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9d, 0x8800
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x8890]
lea rcx, [0x180006f80]
call fcn.1800892c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x180076ed3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
add rcx, 1
mov r8d, 5
lea rdx, [0x180003b38]
call fcn.1800ec2a0
test eax, eax
je 0x180076ea3
mov dword [rsp + 0x48], 0xd
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x48]
lea rcx, [0x180006f10]
call fcn.1800892c0
mov eax, dword [rsp + 0x48]
jmp 0x180076ed3
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x8898]
add rsi, 0x28
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x8898]
lea rcx, [0x180006ec0]
call fcn.1800892c0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x8860]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x8878
pop rdi
pop rsi
ret
Function at 0x180079790
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800797dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800797df
xor eax, eax
add rsp, 0x48
ret

Function at 0x18007d0b0
Capabilities:
Get file size

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x18007d129
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18007d129
mov eax, dword [rsp + 0x20]
jmp 0x18007d1b7
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shl rax, 0x20
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x28]
or rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
mov qword [rcx], rax
mov ecx, dword [rsp + 0x68]
xor edx, edx
mov rax, qword [rsp + 0x28]
div rcx
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x68]
xor edx, edx
mov rax, qword [rsp + 0x28]
div rcx
test rdx, rdx
je 0x18007d18e
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [0x180007d80]
call fcn.1800892c0
xor eax, eax
add rsp, 0x48
ret
Function at 0x180081680
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x678
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x660], rax
lea rdi, [rsp + 0x30]
lea rsi, [0x18000a4b8]
mov ecx, 9
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x39]
xor eax, eax
mov ecx, 0x3f7
rep stosb byte [rdi], al
mov r9, qword [rsp + 0x6a0]
mov r8, qword [rsp + 0x698]
mov rdx, qword [rsp + 0x690]
lea rcx, [0x18000a470]
call fcn.1800892c0
lea rdi, [rsp + 0x30]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
mov rdx, qword [rsp + 0x690]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx], al
add rcx, 1
test al, al
jne 0x18008170d
mov byte [rsp + 0x430], 0x41
movsx eax, byte [rsp + 0x430]
cmp eax, 0x5a
jg 0x180081862
movzx eax, byte [rsp + 0x430]
mov byte [rsp + 0x434], al
mov byte [rsp + 0x435], 0x3a
mov byte [rsp + 0x436], 0
mov byte [rsp + 0x440], 0
lea rdi, [rsp + 0x441]
xor eax, eax
mov ecx, 0x1ff
rep stosb byte [rdi], al
mov r8d, 0x1ff
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x434]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x18008184c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x440]
sub rcx, rdx
movzx eax, byte [rdx]
cmp al, byte [rdx + rcx]
jne 0x1800817b5
add rdx, 1
test al, al
jne 0x1800817a1
xor eax, eax
jmp 0x1800817ba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x18008184c
lea rax, [rsp + 0x434]
mov qword [rsp + 0x640], rax
mov rax, qword [rsp + 0x698]
mov qword [rsp + 0x648], rax
mov rax, qword [rsp + 0x648]
mov qword [rsp + 0x650], rax
mov rax, qword [rsp + 0x640]
movzx eax, byte [rax]
mov byte [rsp + 0x658], al
mov rcx, qword [rsp + 0x648]
movzx eax, byte [rsp + 0x658]
mov byte [rcx], al
mov rax, qword [rsp + 0x640]
add rax, 1
mov qword [rsp + 0x640], rax
mov rax, qword [rsp + 0x648]
add rax, 1
mov qword [rsp + 0x648], rax
cmp byte [rsp + 0x658], 0
jne 0x1800817f2
xor eax, eax
jmp 0x180081873
movzx eax, byte [rsp + 0x430]
add al, 1
mov byte [rsp + 0x430], al
jmp 0x180081724
lea rcx, [0x18000a410]
call fcn.1800892c0
mov eax, 0x11
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x678
pop rdi
pop rsi
ret