joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019c20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x60], 0
jne 0x140019c51
mov eax, 0x57
jmp 0x140019d8d
mov edx, 0x104
mov rcx, qword [rsp + 0x68]
call fcn.140013650
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140019c77
mov eax, 8
jmp 0x140019d8d
mov r8, qword [rsp + 0x60]
mov edx, 0x104
mov rcx, qword [rsp + 0x28]
call fcn.14000af60
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x25
jne 0x140019d7a
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140012e40
nop
lea rcx, [rsp + 0x30]
call fcn.14001bf90
mov dword [rsp + 0x38], 0
jmp 0x140019ccb
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
cmp rax, 0xf
jae 0x140019d70
movsxd rax, dword [rsp + 0x38]
lea rdx, str._appdata_
xor r8d, r8d
mov rdx, qword [rdx + rax*8]
lea rcx, [rsp + 0x30]
call fcn.14001bee0
cmp eax, 0xffffffff
je 0x140019d6b
mov r8d, 0x104
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140019d54
xor r8d, r8d
lea rdx, str...............AhnLabCommonMedicineFramework2.5TrunkSrcCommonClassEnumUserInfo.cpp
lea rcx, [0x1403749c0]
call fcn.14002d540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x60]
lea rdx, str._CEnumUserInfo::ReplaceEnvironmentString__ExpandEnvironmentStrings__s___err__u_
lea rcx, [0x1403749c0]
call fcn.14002d6f0
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x25
jne 0x140019d69
mov dword [rsp + 0x20], 0x70d
jmp 0x140019d70
jmp 0x140019cc0
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.14001c0f0
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x14001ad70
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 1
jne 0x14001ae2e
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001ae23
mov dword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x98
ret

Function at 0x14001ae50
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x34], 4
call fcn.14001b150
cmp eax, 1
jne 0x14001ae96
xor eax, eax
jmp 0x14001af47
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicroSoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14001aece
mov eax, dword [rsp + 0x40]
jmp 0x14001af47
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EnableLUA
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001af27
cmp dword [rsp + 0x48], 1
jne 0x14001af18
mov dword [rsp + 0x40], 1
jmp 0x14001af27
cmp dword [rsp + 0x48], 0
jne 0x14001af27
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x38], 0
je 0x14001af43
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14001b500
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x14001b518
xor eax, eax
test eax, eax
jne 0x14001b518
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14001b580
mov eax, dword [rsp + 0x38]
jmp 0x14001b603
cmp dword [rsp + 0x30], 1
je 0x14001b595
cmp dword [rsp + 0x30], 2
je 0x14001b595
mov eax, recv
jmp 0x14001b603
cmp qword [rsp + 0x60], 0
je 0x14001b5e9
cmp dword [rsp + 0x34], 0
je 0x14001b5df
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x14001b5d6
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x14001b5dd
mov eax, recv
jmp 0x14001b603
jmp 0x14001b5e9
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret

Function at 0x14001b610
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x14001b627
xor eax, eax
test eax, eax
jne 0x14001b627
cmp qword [rsp + 0x80], 0
jne 0x14001b64b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x58
ret

Function at 0x14001b780
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x14001b798
xor eax, eax
test eax, eax
jne 0x14001b798
cmp qword [rsp + 0x60], 0
je 0x14001b7b6
mov dword [rsp + 0x34], 1
jmp 0x14001b7be
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001b7d4
mov eax, recv
jmp 0x14001b816
xor eax, eax
test eax, eax
jne 0x14001b7a4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x14001b820
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.14001b3d0
mov r11, qword [rsp + 0x2a0]
mov r9d, dword [r11 + 8]
or r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rdx, qword [rsp + 0x2a0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.14001b470
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14001b8a9
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.14001b400
mov eax, dword [rsp + 0x270]
jmp 0x14001b96d
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001b936
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14001b820
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14001b929
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.14001b400
mov eax, dword [rsp + 0x274]
jmp 0x14001b96d
mov dword [rsp + 0x40], 0x100
jmp 0x14001b8b1
lea rcx, [rsp + 0x50]
call fcn.14001b420
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.14001b990
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.14001b400
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x298
ret

Function at 0x14001b990
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14001b99e
xor eax, eax
test eax, eax
jne 0x14001b99e
movzx eax, byte [0x140373988]
test eax, eax
jne 0x14001b9ef
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001b9e8
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140373980], rax
mov byte [0x140373988], 1
cmp qword [0x140373980], 0
je 0x14001ba1a
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [0x140373980]
jmp 0x14001ba2d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret
Function at 0x14001e010
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140012e10
nop
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0xa0], 0
jne 0x14001e089
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x3c]
jmp 0x14001e25b
mov rcx, qword [rsp + 0xa0]
call fcn.14001e270
cmp eax, 1
jne 0x14001e0d8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.14001e2d0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140015d00
nop
lea rcx, [rsp + 0x40]
call fcn.140012ea0
jmp 0x14001e0ea
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140012ec0
lea rcx, [rsp + 0x30]
call fcn.1400130a0
cmp eax, 2
jg 0x14001e12a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x48]
jmp 0x14001e25b
lea rcx, [rsp + 0x30]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x14001e179
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x4c]
jmp 0x14001e25b
mov r8d, 2
mov dx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.14001be40
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
je 0x14001e1e1
mov r8d, dword [rsp + 0x38]
add r8d, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001c040
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x50]
call fcn.140012ea0
jmp 0x14001e1f0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140015d00
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call fcn.14001e890
cmp eax, 1
jne 0x14001e232
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov edx, dword [rsp + 0xb0]
mov r8, rax
mov rcx, qword [rsp + 0xa8]
call fcn.14000af60
mov dword [rsp + 0x28], 1
jmp 0x14001e23a
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x58]
add rsp, 0x98
ret

Function at 0x14001e270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14001e2ac
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x14001e2ac
mov dword [rsp + 0x20], 1
jmp 0x14001e2b4
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14001e4e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0x80], 0
jne 0x14001e536
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x30]
jmp 0x14001e63d
mov rcx, qword [rsp + 0x80]
call fcn.14001e270
cmp eax, 1
jne 0x14001e585
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.14001e2d0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x38]
call fcn.140012ea0
jmp 0x14001e597
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140012ec0
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jbe 0x14001e61f
cmp dword [rsp + 0x60], 3
jbe 0x14001e5db
cmp dword [rsp + 0x60], 4
je 0x14001e615
cmp dword [rsp + 0x60], 4
jbe 0x14001e61f
cmp dword [rsp + 0x60], 6
jbe 0x14001e5db
jmp 0x14001e61f
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 3
jg 0x14001e60b
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x3a
jne 0x14001e60b
mov dword [rsp + 0x28], 1
jmp 0x14001e613
mov dword [rsp + 0x28], 0
jmp 0x14001e627
mov dword [rsp + 0x28], 0
jmp 0x14001e627
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x40]
add rsp, 0x78
ret
Function at 0x14001e650
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0x80], 0
jne 0x14001e6a6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x34]
jmp 0x14001e865
mov rcx, qword [rsp + 0x80]
call fcn.14001e270
cmp eax, 1
jne 0x14001e6f5
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.14001e2d0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x38]
call fcn.140012ea0
jmp 0x14001e707
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140012ec0
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 2
jge 0x14001e73c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x40]
jmp 0x14001e865
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
sub eax, 1
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 5
ja case.default.0x14001e786
mov eax, dword [rsp + 0x60]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1e86c]
add rax, rcx
jmp rax
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x5c
jne 0x14001e803
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x5c
jne 0x14001e803
mov r8d, 2
mov dx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14001be40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14001e7f9
lea rcx, [rsp + 0x20]
call fcn.1400130a0
sub eax, 1
cmp dword [rsp + 0x30], eax
jne 0x14001e7ef
mov dword [rsp + 0x28], 1
jmp 0x14001e7f7
mov dword [rsp + 0x28], 0
jmp 0x14001e801
mov dword [rsp + 0x28], 1
jmp 0x14001e83b
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 3
jg 0x14001e833
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x3a
jne 0x14001e833
mov dword [rsp + 0x28], 1
jmp 0x14001e83b
mov dword [rsp + 0x28], 0
jmp 0x14001e84f
mov dword [rsp + 0x28], 0
jmp 0x14001e84f
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x44]
add rsp, 0x78
ret
Function at 0x140020030
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140012e10
nop
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0xa0], 0
jne 0x1400200a9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x3c]
jmp 0x14002027b
mov rcx, qword [rsp + 0xa0]
call fcn.140020af0
cmp eax, 1
jne 0x1400200f8
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.140020d30
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140015d00
nop
lea rcx, [rsp + 0x40]
call fcn.140012ea0
jmp 0x14002010a
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.140012ec0
lea rcx, [rsp + 0x30]
call fcn.1400130a0
cmp eax, 2
jg 0x14002014a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x48]
jmp 0x14002027b
lea rcx, [rsp + 0x30]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x140020199
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x4c]
jmp 0x14002027b
mov r8d, 2
mov dx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.14001be40
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
je 0x140020201
mov r8d, dword [rsp + 0x38]
add r8d, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001c040
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x50]
call fcn.140012ea0
jmp 0x140020210
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140015d00
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call fcn.140020290
cmp eax, 1
jne 0x140020252
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov edx, dword [rsp + 0xb0]
mov r8, rax
mov rcx, qword [rsp + 0xa8]
call fcn.14000af60
mov dword [rsp + 0x28], 1
jmp 0x14002025a
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140012ea0
mov eax, dword [rsp + 0x58]
add rsp, 0x98
ret
Function at 0x140020310
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0x80], 0
jne 0x140020366
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x30]
jmp 0x14002046d
mov rcx, qword [rsp + 0x80]
call fcn.140020af0
cmp eax, 1
jne 0x1400203b5
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.140020d30
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x38]
call fcn.140012ea0
jmp 0x1400203c7
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140012ec0
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jbe 0x14002044f
cmp dword [rsp + 0x60], 3
jbe 0x14002040b
cmp dword [rsp + 0x60], 4
je 0x140020445
cmp dword [rsp + 0x60], 4
jbe 0x14002044f
cmp dword [rsp + 0x60], 6
jbe 0x14002040b
jmp 0x14002044f
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 3
jg 0x14002043b
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x3a
jne 0x14002043b
mov dword [rsp + 0x28], 1
jmp 0x140020443
mov dword [rsp + 0x28], 0
jmp 0x140020457
mov dword [rsp + 0x28], 0
jmp 0x140020457
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x40]
add rsp, 0x78
ret