joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14000e3a0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14000e2e0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14000e2e0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14000e2e0
Function at 0x14004bb60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
cmp qword [rcx + 0x18], 8
jb 0x14004bba6
mov rax, qword [rcx]
jmp 0x14004bba9
mov rax, rbx
mov word [rax], bp
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x18], 8
jb 0x14004bbc0
mov rcx, qword [rdx]
jmp 0x14004bbc3
mov rcx, rdi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004bc62
mov edx, esi
mov rcx, qword [rbx + 0x10]
cmp rsi, rcx
ja 0x14004bbfc
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14004bbf3
mov rcx, qword [rbx]
jmp 0x14004bbf6
mov rcx, rbx
mov word [rcx + rsi*2], bp
jmp 0x14004bc0a
xor r8d, r8d
sub rdx, rcx
mov rcx, rbx
call fcn.14004e490
cmp qword [rbx + 0x18], 8
jb 0x14004bc16
mov rdx, qword [rbx]
jmp 0x14004bc19
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x14004bc23
mov rdi, qword [rdi]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [rax - 1]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x14004bc54
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14004bc4b
mov rax, qword [rbx]
jmp 0x14004bc4e
mov rax, rbx
mov word [rax + rdx*2], bp
jmp 0x14004bc62
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14004e490
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004bc80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004bcfb
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov eax, 2
mov qword [rsp + 0x38], rdi
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14027b2c0
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14004c420
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x288
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [r11 + 0x18], rbp
xor edi, edi
mov qword [r11 - 0x28], r15
mov ebx, edi
mov r15, rcx
mov rbp, rdx
call fcn.14004c170
test rbp, rbp
je 0x14004c5ac
test r15, r15
je 0x14004c5ac
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x280], rsi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp eax, 2
jb 0x14004c5a4
mov ecx, esi
mov qword [rsp + 0x278], r14
call fcn.14012a2dc
mov rbx, rax
test rax, rax
je 0x14004c59c
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14027b2c0
mov edx, dword [rsp + 0x48]
mov r9, rbx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14004c59c
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x40]
lea rdx, [0x140321b68]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004c59c
mov rax, qword [rsp + 0x40]
lea r8, [0x140321ba8]
mov edx, 0x104
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x50]
movzx r9d, word [rax]
movzx eax, word [rax + 2]
shl r9d, 0x10
or r9d, eax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
call fcn.14004ebd0
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004c59c
mov eax, dword [rsp + 0x30]
cmp eax, 2
jb 0x14004c59c
lea rcx, [rax*2 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rdi, rax
lea r8, [r8*2 + 2]
call fcn.14027b2c0
mov r8d, dword [rsp + 0x30]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
add r8, r8
call fcn.140278ed0
mov r14, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x280]
call fcn.14004c230
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14027b2c0
mov r15, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x2b0]
test rbx, rbx
je 0x14004c5e0
mov rcx, rbx
call fcn.14012a2d4
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x288
pop rdi
pop rbx
ret
Function at 0x14004d2b0
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004d367
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14004d490
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14004d5a7
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004d5a7
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov qword [rsp + 0x38], rsi
call fcn.14004c9d0
mov rsi, rax
test rax, rax
jne 0x14004d56b
mov rcx, rdi
call fcn.14004c600
mov rbp, rax
test rax, rax
je 0x14004d4fc
mov rcx, rax
call fcn.14004c9d0
mov rcx, rbp
mov rsi, rax
call fcn.14012a2d4
test rsi, rsi
jne 0x14004d56b
mov rdx, rdi
lea rcx, [0x1403220a8]
call fcn.14004c420
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x14004d53c
mov r8d, ebp
lea rdx, [0x140322078]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
mov rcx, rsi
cmove ebx, ebp
call fcn.14012a2d4
test ebx, ebx
jne 0x14004d590
mov rdx, rdi
lea rcx, [0x140322138]
call fcn.14004c420
mov rdi, rax
test rax, rax
je 0x14004d590
mov r8d, ebp
lea rdx, [0x140322078]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
mov rcx, rdi
jmp 0x14004d586
mov ebp, 1
lea rdx, str.Microsoft_Windows_
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
mov rcx, rsi
test eax, eax
cmove ebx, ebp
call fcn.14012a2d4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d660
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14027b2c0
mov r9, rbx
lea r8, str._select___s_
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.14004ebd0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], 0xa
lea r8, str.explorer
mov qword [rsp + 0x20], 0
lea rdx, [0x1403221a0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x250
pop rbx
ret

Function at 0x14004d700
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x30], rbx
mov rsi, rcx
mov qword [rsp + 0x38], rbx
test rcx, rcx
je 0x14004d808
test rdx, rdx
je 0x14004d808
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004d808
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14004d7de
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rbp
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r8d, ebp
lea r9, [0x1402b5010]
xor edx, edx
lea rcx, [0x140351950]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14004d7d6
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1403518c0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14004d7d6
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
cmovns ebx, ebp
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004d7ee
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004d7fe
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004d80a
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004d940
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x310
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x300], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x14004d970
xor eax, eax
jmp 0x14004da42
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x14004d9ef
lea rdx, str..ico
mov rcx, rax
call fcn.14027c4d8
test eax, eax
jne 0x14004d9ef
lea r9, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x20], 1
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
mov rax, qword [rsp + 0x38]
jne 0x14004d9da
test rax, rax
jne 0x14004d9df
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14004da3f
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x14004da3f
test rax, rax
je 0x14004d9c3
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x14004da3f
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2b8
call fcn.14027b2c0
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x103
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x14004da2e
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14004da3f
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x328]
add rsp, 0x310
pop rdi
ret
Function at 0x14004ee70
Capabilities:
Get disk size
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x48]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004efaa
xor eax, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x50], rax
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x54], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004efaa
mov eax, dword [rsp + 0x44]
cmp eax, 0x28
jb 0x14004efaa
mov ecx, eax
mov qword [rsp + 0x88], rdi
call fcn.140280918
mov rdi, rax
test rax, rax
je 0x14004ef85
mov r8d, dword [rsp + 0x44]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov dword [rsp + 0x28], r8d
mov rcx, rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004ef7d
mov ebx, dword [rdi + 0x1c]
mov rcx, rdi
call fcn.14012a2d4
mov rdi, qword [rsp + 0x88]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
mov eax, ebx
jmp 0x14004ef8f

Function at 0x14004f060
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
lea r8, [r11 - 0x48]
mov qword [r11 - 0x48], rax
xor edi, edi
mov qword [r11 - 0x44], rax
mov edx, 0x2d1400
mov qword [r11 - 0x30], rax
mov rbx, rcx
mov qword [r11 - 0x50], rdi
lea rax, [r11 - 0x38]
mov qword [r11 - 0x58], rax
lea r9d, [rdi + 0xc]
lea rax, [r11 - 0x30]
mov dword [rsp + 0x28], ntohs
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x40], 8
mov qword [r11 - 0x2c], 0xc
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rax
lea r9d, [rdi + 0xc]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 7
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x6c], sendto
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [rsp + 0x60], 1
jne 0x14004f13b
lea eax, [rdi + 1]
cmp byte [rsp + 0x70], dil
je 0x14004f13d
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x14004f230
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx r9d, cx
lea r8, [0x1403223f0]
xor edi, edi
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov dword [rsp + 0x40], edi
or ebx, 0xffffffff
call fcn.14004ebd0
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 4]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14004f2e0
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f2e0
cmp dword [rsp + 0x48], 7
cmove ebx, dword [rsp + 0x4c]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x14004f3d0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x90]
mov dword [rsp + Ordinal_46], 0x28
mov edx, 0x700a0
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f43f
mov rax, qword [rsp + 0xa8]
jmp 0x14004f565
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f482
mov rax, qword [rsp + 0x50]
jmp 0x14004f565
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x74004
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f4c5
mov rax, qword [rsp + 0x78]
jmp 0x14004f565
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], __WSAFDIsSet
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70048
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f50b
mov rax, qword [rsp + 0xd0]
jmp 0x14004f565
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], Ordinal_27
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f560
mov ecx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
imul rax, rcx
mov ecx, dword [rsp + 0x64]
imul rax, rcx
imul rax, qword [rsp + 0x58]
jmp 0x14004f565
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14004f590
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx r9d, cx
lea r8, [0x1403224d0]
xor edi, edi
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov dword [rsp + 0x40], edi
or ebx, 0xffffffff
call fcn.14004ebd0
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 4]
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14004f640
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], ntohs
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004f640
cmp dword [rsp + 0x48], 7
cmove ebx, dword [rsp + 0x4c]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret

Function at 0x14004f7d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx edi, cx
movabs rax, 0x5c003a003f
lea rcx, [0x140322558]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.FormatEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, di
mov rbx, rax
call fcn.140055480
test eax, eax
je 0x14004f917
test rbx, rbx
je 0x14004f917
xor eax, eax
mov dword [rsp + 0x38], 9
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], ax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x40], di
mov qword [rsp + 0x20], rax
lea r8d, [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14004f8d1
lea r8, [0x140322570]
lea edx, [rax + 9]
lea rcx, [rsp + 0x48]
call fcn.14004fa80
lea rax, [0x14004f670]
mov dword [reloc.WS2_32.dll_accept], 1
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x60]
mov dword [rsp + 0x28], 0x1000
lea r8, [rsp + 0x48]
mov edx, ntohs
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x40]
call rbx
mov eax, dword [reloc.WS2_32.dll_accept]
not eax
shr eax, 0x1f
jmp 0x14004f919
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
Function at 0x14004f940
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor edi, edi
movzx ebx, cx
test cx, cx
jne 0x14004f970
xor eax, eax
jmp 0x14004fa5e
mov r9, qword [0x140443d80]
add r9, 0x30
cmp bx, word [r9]
je 0x14004f969
lea r8, str._s_system32_format.com
mov edx, 0x104
lea rcx, [0x140460da0]
call fcn.14004ebd0
lea rcx, [0x140460da0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14004fa5c
movzx ecx, bx
call fcn.140055480
test eax, eax
je 0x14004fa5c
movzx r9d, bx
lea r8, str.format.com__c:__q__y__x
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14027b2c0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
lea rcx, [0x140460da0]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14004fa5c
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x318]
add rsp, 0x300
pop rdi
ret