joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cdb66
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14018f0b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14018ea30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018f0ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402e6020]
jmp 0x14018f0f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400cdde1
Capabilities:
Query environment variable

Disassembly:
jmp 0x140243e30
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140243c60
lea rcx, [rsp + 0x40]
call fcn.140243de0
movzx eax, al
test eax, eax
jne 0x140243e78
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140243c90
mov rax, qword [rsp + 0x70]
jmp 0x140244049
lea rcx, [rsp + 0x40]
call fcn.140243db0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140243d50
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140243db0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400cf00b
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140243f1e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140243c90
mov rax, qword [rsp + 0x80]
jmp 0x140244049
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400cd9b8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400cd7a1
lea rcx, [rsp + 0x48]
call fcn.1400cd1bb
movzx eax, al
test eax, eax
jne 0x140243f85
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400cbd57
lea rcx, [rsp + 0x40]
call fcn.140243c90
mov rax, qword [rsp + 0x88]
jmp 0x140244049
lea rcx, [rsp + 0x48]
call fcn.1400ce2fa
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140243db0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400cf00b
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14024401b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400cbd57
lea rcx, [rsp + 0x40]
call fcn.140243c90
mov rax, qword [rsp + 0xa0]
jmp 0x140244049
lea rcx, [rsp + 0x48]
call fcn.1400cd75b
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400cbd57
lea rcx, [rsp + 0x40]
call fcn.140243c90
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400cddfa
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14018efe0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14018e9b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018f021
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402e6020]
jmp 0x14018f027
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400cdec2
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402244e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140223410
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140224547
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402e6030]
jmp 0x140224569
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400cd12a
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400cded6
Capabilities:
Terminate process

Disassembly:
jmp 0x14016ce30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400ce291
Capabilities:
Print debug messages

Disassembly:
jmp 0x140251790
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402c8140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402517b6
jmp 0x140251833
mov rcx, qword [rbp + 0x30]
call fcn.1400cd607
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402517cf
jmp 0x140251833
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402517ec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400cbf8c
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400cc5b8
test eax, eax
jne 0x140251833
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400cd8dc
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400ce6dd
Capabilities:
Set environment variable

Disassembly:
jmp 0x140245f90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400cea2a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14016e3d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14016e3f0
xor al, al
jmp 0x14016e471
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14016e403
xor al, al
jmp 0x14016e471
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14016e42d
xor al, al
jmp 0x14016e471
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14016e441
xor al, al
jmp 0x14016e471
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14016e453
xor al, al
jmp 0x14016e471
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14016e46f
xor al, al
jmp 0x14016e471
mov al, 1
add rsp, 0x38
ret
Function at 0x1400cf2cc
Capabilities:
Terminate process

Disassembly:
jmp 0x1401900a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401900ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400cfeed
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cff74
Capabilities:
Print debug messages

Disassembly:
jmp 0x14021ecd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400d00e1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14018f120
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14018ea70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14018f169
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402e6020]
jmp 0x14018f178
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400d01ea
Capabilities:
Set environment variable

Disassembly:
jmp 0x140260200
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400ccf40
lea rcx, [rsp + 0x48]
call fcn.1400ccf40
call fcn.1400cdd4b
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400ccc07
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14026026f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400cd4a4
lea rcx, [rsp + 0x78]
call fcn.1400cd4a4
mov eax, dword [rsp + 0x24]
jmp 0x140260300
call fcn.1400cdd4b
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400ccc07
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402602b6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400cd4a4
lea rcx, [rsp + 0x78]
call fcn.1400cd4a4
mov eax, dword [rsp + 0x2c]
jmp 0x140260300
lea rcx, [rsp + 0x48]
call fcn.1400cce55
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400cce55
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400cd4a4
lea rcx, [rsp + 0x78]
call fcn.1400cd4a4
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140228530
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400cbf8c
sub rsp, rax
mov rax, qword [0x1402c8140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402cd040]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140228722
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140228676
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140228676
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14022865b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402285f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402286e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140228741
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14022871d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140228741
jmp 0x1402285ce
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400cd8dc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402287f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400cbf8c
sub rsp, rax
mov rax, qword [0x1402c8140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402cd040]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402289fd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140228949
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140228949
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140228929
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1402288b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402289bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140228a1c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402289f8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140228a1c
jmp 0x14022888e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400cd8dc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400110e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x140011222
cmp eax, 7
je 0x140011222
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140011222
mov ecx, ebx
lea rdx, [rsp + 0x40]
lea r8, str.NTFS
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140011191
cmp rcx, 5
jne 0x140011170
mov ebx, 1
movzx eax, bl
jmp 0x140011224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, [0x140024358]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400111be
cmp rcx, 4
jne 0x1400111a0
mov ebx, 1
movzx eax, bl
jmp 0x140011224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, str.FAT32
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400111ee
cmp rcx, 6
jne 0x1400111d0
mov ebx, 1
movzx eax, bl
jmp 0x140011224
lea rdx, str.exFAT
lea rcx, [rsp + 0x40]
call fcn.140015c84
test eax, eax
je 0x140011218
lea rdx, str.reFS
lea rcx, [rsp + 0x40]
call fcn.140015c84
test eax, eax
jne 0x14001121d
mov ebx, 1
movzx eax, bl
jmp 0x140011224
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140012550
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140011250
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x840], rax
xor r12d, r12d
mov rbx, rcx
mov r8, rcx
mov dword [rsp + 0x28], r12d
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
mov r15b, 1
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
lea edx, [r12 + 2]
lea rcx, [r14 + 1]
call fcn.140015ab4
or r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, 0x5c
mov rcx, rdi
mov edx, r13d
call fcn.140013000
mov rsi, rax
test rax, rax
je 0x1400113f9
mov qword [rsp + 0x888], rbp
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400113c8
bt eax, 0xa
jae 0x1400113c8
cmp qword [0x14002eda0], r12
je 0x14001139c
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001139c
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call qword [0x14002eda0]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx - 1]
cmp eax, 0x3fe
ja 0x14001139c
mov r8d, 8
lea rdx, str._UNC_
lea rcx, [rsp + 0x40]
call fcn.140015acc
test eax, eax
je 0x1400113ee
lea eax, [r14 - 1]
mov r8d, 0x400
movsxd rcx, eax
lea rdx, [rsp + 0x40]
movsxd rax, r14d
mov word [rdi + rcx*2], r13w
mov rcx, rdi
mov word [rdi + rax*2], r12w
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1400113ee
mov word [rsi], r12w
mov edx, r13d
sub rsi, rdi
mov rcx, rdi
mov r14, rsi
sar r14, 1
call fcn.140013000
mov rsi, rax
test rax, rax
jne 0x140011300
jmp 0x1400113f1
xor r15b, r15b
mov rbp, qword [rsp + 0x888]
mov rcx, rdi
call fcn.140015abc
movzx eax, r15b
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140012550
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140011560
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x670], rax
lea rbx, [0x14002ea30]
mov rbp, rcx
mov rdi, rbx
mov esi, 0x1a
xor r14d, r14d
cmp byte [rbx + 0x19], r14b
je 0x140011672
movsx ecx, byte [rbx]
call fcn.140015fa8
mov r8d, 0x104
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x42], 0x3a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 4
jbe 0x140011672
cmp word [rsp + 0x50], 0x5c
jne 0x140011672
cmp word [rsp + 0x52], 0x3f
jne 0x140011672
cmp word [rsp + 0x54], 0x3f
jne 0x140011672
cmp word [rsp + 0x56], 0x5c
jne 0x140011672
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x260]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x58]
mov dword [rsp + 0x28], 0x410
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rdi
mov rcx, rbp
call fcn.140011000
lea rdx, [0x14002438c]
mov rcx, rbp
call fcn.140011000
lea rdx, [rsp + 0x260]
mov rcx, rbp
call fcn.140011000
lea rdx, [0x14002438c]
mov rcx, rbp
call fcn.140011000
add rdi, 0x20
add rbx, 0x20
sub rsi, 1
jne 0x1400115a2
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140012550
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140016cb8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140016a8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016a8c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016a8c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016a8c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016a8c
cmp dword [rcx + 0x84], 0xe
jbe 0x140016a8c
cmp dword [rcx + 0xf8], esi
je 0x140016a8c
mov ecx, r14d
call fcn.140016bd4
mov ecx, 2
call fcn.140019218
nop
cmp byte [0x14002f678], 0
jne 0x140016b56
mov r15d, 1
mov eax, r15d
xchg dword [0x14002f668], eax
test ebx, ebx
jne 0x140016aff
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14002f670]
cmp rcx, rax
je 0x140016af6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140013524]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002f6b8]
jmp 0x140016b0b
cmp ebx, r15d
jne 0x140016b11
lea rcx, [0x14002f6d0]
call fcn.140017204
nop
test ebx, ebx
jne 0x140016b28
lea rdx, [0x140024330]
lea rcx, [0x140024310]
call fcn.14001694c
lea rdx, [0x140024340]
lea rcx, [0x140024338]
call fcn.14001694c
movzx eax, byte [0x14002f678]
test esi, esi
cmove eax, r15d
mov byte [0x14002f678], al
jmp 0x140016b56
mov ecx, 2
call fcn.14001926c
test esi, esi
jne 0x140016b6d
mov ecx, r14d
call fcn.140016b88
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140016a1c