joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f6f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000f640
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x14000f72f
mov dword [rsp + 0x24], 1
jmp 0x14000f737
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x30]
call fcn.1400031c0
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x14000f8b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140004170
nop
lea rdx, [0x1402cd36c]
lea rcx, [rsp + 0x30]
call fcn.1400120e0
lea rcx, [rsp + 0x30]
call fcn.140003250
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000fa80
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140011020
movzx eax, al
test eax, eax
jne 0x14000f959
lea rcx, [rsp + 0x30]
call fcn.140003250
mov rcx, rax
call fcn.14000f7e0
cmp eax, 0xffffffff
je 0x14000f959
mov dword [rsp + 0x38], 0
jmp 0x14000f961
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x14000f984
and dword [rsp + 0x28], 0xfffffffe
lea rcx, [rsp + 0x50]
call fcn.1400031c0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000f9a6
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x30]
call fcn.1400031c0
movzx eax, byte [rsp + 0x21]
jmp 0x14000fa6c
lea rcx, [rsp + 0x30]
call fcn.140003250
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000fa80
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140003250
mov rcx, rax
call fcn.14000f8b0
movzx eax, al
test eax, eax
jne 0x14000f9ef
mov dword [rsp + 0x3c], 1
jmp 0x14000f9f7
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x68]
call fcn.1400031c0
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14000fa29
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x30]
call fcn.1400031c0
movzx eax, byte [rsp + 0x23]
jmp 0x14000fa6c
lea rcx, [rsp + 0x30]
call fcn.140003250
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000fa58
mov byte [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call fcn.1400031c0
movzx eax, byte [rsp + 0x24]
jmp 0x14000fa6c
mov byte [rsp + 0x25], 1
lea rcx, [rsp + 0x30]
call fcn.1400031c0
movzx eax, byte [rsp + 0x25]
add rsp, 0x88
ret
Function at 0x140010390
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, 4
imul rax, rax, 0
movzx r8d, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + rax + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140010130
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x28]
and eax, 0xff
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x30]
add eax, dword [rdx + rcx + 0x28]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx + 0x28], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
imul eax, dword [rcx + rax + 0x28], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx + 0x28], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x28]
shr eax, 0x18
mov byte [rsp + 0x38], al
mov eax, 4
imul rax, rax, 2
movzx r8d, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + rax + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140010130
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx + 0x28], eax
add rsp, 0x28
ret
Function at 0x1400159c0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140003250
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000f640
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140003250
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140015a74
mov dword [rsp + 0x34], 1
jmp 0x140015a7c
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x70]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x78]
call fcn.1400031c0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140015aa7
xor eax, eax
jmp 0x140015ac6
mov eax, dword [rsp + 0x38]
imul eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x40]
mov eax, eax
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x140024530
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.140004170
nop
xor r8d, r8d
lea rdx, [0x1402e0bb0]
lea rcx, [rsp + 0x40]
call fcn.1400066b0
cmp eax, 0xffffffff
jne 0x14002458f
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x48]
jmp 0x140024706
mov edx, 0x64
lea rcx, [0x1403cf1f0]
call fcn.140027150
movzx eax, al
test eax, eax
jne 0x1400245c2
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x4c]
jmp 0x140024706
mov ecx, sendto
call fcn.1400d5ff8
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1400245ea
mov rcx, qword [rsp + 0x70]
call fcn.140025c90
mov qword [rsp + 0x78], rax
jmp 0x1400245f3
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x38]
lea r8, [0x140024720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140024666
mov rcx, qword [rsp + 0x38]
call fcn.1400261c0
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x50]
jmp 0x140024706
mov rcx, qword [rsp + 0x38]
call fcn.140026080
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0x1388
lea rdx, str.InternetConnectionTimeout
lea rcx, [0x1402e0be0]
call fcn.14002da80
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
jne 0x1400246d6
mov rcx, qword [rsp + 0x38]
call fcn.1400261b0
cmp eax, 0xffffffff
je 0x1400246d6
mov dword [rsp + 0x30], 1
jmp 0x1400246de
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x38]
call fcn.1400261c0
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x40]
call fcn.1400031c0
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret

Function at 0x140027500
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140268ee0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
jne 0x14002754c
cmp dword [rsp + 0x38], 0
ja 0x14002755d
cmp dword [rsp + 0x34], 6
ja 0x14002755d
mov dword [rsp + 0x20], 0
jmp 0x140027565
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x168
ret
Function at 0x140027910
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x200
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400279bc
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, sendto
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x40], ax
mov dword [rsp + 0x38], sendto
mov rcx, qword [rsp + 0x210]
call fcn.140003570
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1400279a5
mov dword [rsp + 0x34], 1
jmp 0x1400279ad
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x200
pop rdi
ret

Function at 0x1400279e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov byte [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140027a8c
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x40], ax
mov dword [rsp + 0x38], 0x1c
mov rcx, qword [rsp + 0x220]
call fcn.140003570
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, reloc.WS2_32.dll_socket
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x140027a75
mov dword [rsp + 0x34], 1
jmp 0x140027a7d
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x210
pop rdi
ret
Function at 0x140028660
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x60]
call fcn.14004f470
nop
movzx eax, byte [0x1403cf1fb]
test eax, eax
je 0x1400286af
lea rcx, [rsp + 0x60]
call fcn.140038f70
mov r8d, 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140058a60
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rdx, [0x1402e1284]
mov rcx, qword [rsp + 0x30]
call fcn.140005760
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x80]
call fcn.1400049b0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14002874e
lea rcx, [rsp + 0x60]
call fcn.140057d80
dec eax
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1400580c0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400542c0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400049b0
lea rcx, [rsp + 0x60]
call fcn.1400550f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140028772
lea rcx, [rsp + 0x60]
call fcn.1400049b0
jmp 0x1400287f1
mov dx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.1400589a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 3
jl 0x1400287d1
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.1400580c0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400550f0
mov rcx, rax
call fcn.140028660
nop
lea rcx, [rsp + 0xc0]
call fcn.1400049b0
lea rcx, [rsp + 0x60]
call fcn.1400550f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rsp + 0x60]
call fcn.1400049b0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0xf8
ret
Function at 0x14002a0f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2e8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rsp + 0x30]
call fcn.140004170
nop
mov r8d, 1
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140058b70
mov qword [rsp + 0x60], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x60]
call fcn.140054e30
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x68]
call fcn.1400031c0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14002a177
mov dx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.140057750
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140007200
nop
mov dx, 0x2a
lea rcx, [rsp + 0x58]
call fcn.140057750
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x58]
call fcn.140003250
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14002a30f
cmp dword [rsp + 0x24], 0
je 0x14002a30f
mov eax, dword [rsp + 0x80]
and eax, 0x10
cmp eax, 0x10
jne 0x14002a279
lea rdx, [0x1402e16d8]
lea rcx, [rsp + 0xac]
call fcn.1402775e4
test eax, eax
je 0x14002a277
lea rdx, [0x1402e16dc]
lea rcx, [rsp + 0xac]
call fcn.1402775e4
test eax, eax
je 0x14002a277
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140007200
nop
lea r8, [rsp + 0xac]
lea rdx, [0x1402e16e8]
lea rcx, [rsp + 0x48]
call fcn.1400038e0
lea rcx, [rsp + 0x48]
call fcn.140003250
mov rcx, rax
call fcn.14002a0f0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14002a26d
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400031c0
jmp 0x14002a2ec
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140007200
nop
lea r8, [rsp + 0xac]
lea rdx, [0x1402e16f0]
lea rcx, [rsp + 0x38]
call fcn.1400038e0
lea rcx, [rsp + 0x38]
call fcn.140003250
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x38]
call fcn.140003250
mov rcx, rax
call fcn.1400a7d20
test eax, eax
jne 0x14002a2e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x38]
call fcn.1400031c0
cmp dword [rsp + 0x24], 0
je 0x14002a30a
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x24], eax
jmp 0x14002a1c5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x30]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002a33b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x30]
call fcn.1400031c0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x2e8
ret
Function at 0x14002a380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, 0x1000
call fcn.1400d6048
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140268ee0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x1000
cmp qword [rsp + 0x80], 0
je 0x14002a46a
cmp qword [rsp + 0x80], 0x1000
jge 0x14002a411
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002a43a
jmp 0x14002a46a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.140057670
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
jmp 0x14002a3ed
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400d6040
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x14002a520
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14002a380
add rsp, 0x38
ret
Function at 0x14002a790
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
nop
lea rcx, [rsp + 0x38]
call fcn.140003fd0
test eax, eax
jne 0x14002a7e0
xor eax, eax
mov word [rsp + 0x24], ax
lea rcx, [rsp + 0x38]
call fcn.1400031c0
movzx eax, word [rsp + 0x24]
jmp 0x14002a8d8
mov rax, qword [0x1402e1900]
mov qword [rsp + 0x48], rax
mov eax, 0x63
mov word [rsp + 0x20], ax
jmp 0x14002a805
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
cmp eax, 0x7a
jg 0x14002a8c2
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x48], cx
lea rcx, [rsp + 0x30]
call fcn.140004410
nop
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.140057cc0
mov r8d, 0xff
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x14002a8a3
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400118c0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140011020
movzx eax, al
test eax, eax
je 0x14002a8a3
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x26], ax
lea rcx, [rsp + 0x30]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x38]
call fcn.1400031c0
movzx eax, word [rsp + 0x26]
jmp 0x14002a8d8
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400118c0
nop
lea rcx, [rsp + 0x30]
call fcn.1400031c0
jmp 0x14002a7f8
xor eax, eax
mov word [rsp + 0x28], ax
lea rcx, [rsp + 0x38]
call fcn.1400031c0
movzx eax, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x68
ret
Function at 0x14002a8f0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.140004410
nop
mov dword [rsp + 0x50], 0
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14002a98a
lea rdx, [0x1402e16fc]
mov rcx, qword [rsp + 0x290]
call fcn.140004170
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.1400031c0
mov rax, qword [rsp + 0x290]
jmp 0x14002aac3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 3
je 0x14002a9a5
jmp 0x14002aa64
lea rcx, [rsp + 0x60]
call fcn.14026f9f4
lea rax, [rax + rax - 2]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x208
jae 0x14002a9c6
jmp 0x14002a9cb
call fcn.14026431c
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rsp + rcx + 0x60], ax
lea rcx, [rsp + 0x28]
call fcn.140004410
nop
mov edx, 0xa28
lea rcx, [rsp + 0x28]
call fcn.140057cc0
mov ecx, 2
imul rcx, rcx, 4
lea rcx, [rsp + rcx + 0x60]
mov r8d, 0xa28
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x3c], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x28]
call fcn.1400118c0
cmp dword [rsp + 0x3c], 0
jle 0x14002aa5a
mov rdx, qword [rsp + 0x298]
lea rcx, [rsp + 0x28]
call fcn.1400260a0
test eax, eax
jne 0x14002aa5a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140004120
nop
lea rcx, [rsp + 0x28]
call fcn.1400031c0
jmp 0x14002aa82
lea rcx, [rsp + 0x28]
call fcn.1400031c0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x14002a98a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
lea r8, [0x1402e1864]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
call fcn.140011200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.1400031c0
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x288
ret
Function at 0x14002aaf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
call fcn.140004410
nop
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.system_setup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x14002abc4
lea rdx, [0x1402e18d4]
mov rcx, qword [rsp + 0xa0]
call fcn.140004170
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xa0]
jmp 0x14002acac
mov edx, 0x104
lea rcx, [rsp + 0x58]
call fcn.140057cc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.SystemPartition
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x54], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.1400118c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x54], 0
jne 0x14002ac42
cmp dword [rsp + 0x60], 0
jne 0x14002ac75
lea rdx, [0x1402e18f8]
mov rcx, qword [rsp + 0xa0]
call fcn.140004170
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xa0]
jmp 0x14002acac
lea rcx, [rsp + 0x58]
call fcn.140003250
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.14002a8f0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xa0]
add rsp, 0x98
ret