joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140138f38
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140138f8c
xor eax, eax
jmp 0x140139110
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401e0b7c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140138fd5
mov eax, dword [rsp + 0x34]
jmp 0x140139110
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401e0bb0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140139013
xor eax, eax
jmp 0x140139110
mov eax, dword [rsp + 0x30]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140010d30
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400150f4
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013908c
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x78]
call fcn.140013cb0
mov eax, dword [rsp + 0x4c]
jmp 0x140139110
mov qword [rsp + 0x60], 0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400150f4
lea r8, [rsp + 0x60]
lea rdx, [0x1401e0bbc]
mov rcx, rax
call fcn.140194aa8
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x60]
lea rdx, [0x1401e0bcc]
xor ecx, ecx
call fcn.140194aa8
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1401390f2
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1401900b4
mov dword [rsp + 0x38], eax
jmp 0x1401390fa
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x78]
call fcn.140013cb0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14017c920
add rsp, 0xa8
ret
Function at 0x140151304
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x110]
test eax, eax
jne 0x140151349
lea rdx, str.Cant_write_to_an_unopened_stdin_pipe._Please_set_open_stdintrue_when_constructing_the_process.
lea rcx, [rsp + 0x48]
call fcn.1401034c8
lea rdx, [0x14021f6b0]
lea rcx, [rsp + 0x48]
call fcn.14017e340
mov rax, qword [rsp + 0x70]
add rax, 0x118
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140010fe8
mov rax, qword [rsp + 0x70]
add rax, 0x188
mov rcx, rax
call fcn.140139540
movzx eax, al
test eax, eax
je 0x1401513f0
mov rax, qword [rsp + 0x70]
add rax, 0x188
mov rcx, rax
call fcn.140008a8c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1401513c4
cmp dword [rsp + 0x38], 0
jne 0x1401513db
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140013d9c
mov al, byte [rsp + 0x30]
jmp 0x140151403
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x40]
call fcn.140013d9c
mov al, byte [rsp + 0x31]
jmp 0x140151403
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x40]
call fcn.140013d9c
mov al, byte [rsp + 0x32]
add rsp, 0x68
ret

Function at 0x1401514b4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x190]
add rax, 0x20
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140010fe8
mov rax, qword [rsp + 0x190]
cmp dword [rax], 0
jbe 0x1401515dd
mov rax, qword [rsp + 0x190]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1401515dd
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401515c6
mov r8d, 0x130
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14017de80
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1401515bb
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
cmp dword [rsp + 0x60], eax
jne 0x1401515a8
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401515a8
mov edx, 2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14015155e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x30]
call fcn.140013d9c
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14017c920
add rsp, 0x188
ret
Function at 0x140152628
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rax + 0x168]
call fcn.14017c96c
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140004900
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov eax, dword [rax + 0x168]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.140008a8c
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x178
mov rcx, rax
call fcn.140008a8c
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401526da
cmp dword [rsp + 0x30], 0
jne 0x1401526dc
jmp 0x140152721
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x70
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140008a8c
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14012ba04
jmp 0x140152660
lea rcx, [rsp + 0x40]
call fcn.140138678
add rsp, 0x88
ret

Function at 0x140152760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rax + 0x168]
call fcn.14017c96c
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140004900
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov eax, dword [rax + 0x168]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x40]
call fcn.140008a8c
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0x180
mov rcx, rax
call fcn.140008a8c
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140152812
cmp dword [rsp + 0x30], 0
jne 0x140152814
jmp 0x14015285b
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
add rax, 0xb0
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140008a8c
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14012ba04
jmp 0x140152798
lea rcx, [rsp + 0x40]
call fcn.140138678
add rsp, 0x88
ret
Function at 0x140153248
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov dword [rsp + 0x20], 0
jmp 0x140153272
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 5
jge 0x14015329f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140153292
mov rax, qword [rsp + 0x50]
mov byte [rax], 1
jmp 0x14015329f
mov ecx, setsockopt
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140153268
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
test eax, eax
jne 0x1401532cd
call fcn.140133f00
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401532cd
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
xor ecx, ecx
call qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1401533ec
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x30], 0
call fcn.140133de8
cmp qword [rsp + 0x78], rax
jne 0x140153533
cmp qword [rsp + 0x88], 0
jbe 0x14015352e
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x14015352e
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
shl rax, 1
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140155670
nop
lea rcx, [rsp + 0x40]
call fcn.1401556f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x40]
call fcn.1401556f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x40]
call fcn.1401556f0
mov rdx, rax
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140153503
mov byte [rsp + 0x31], 1
jmp 0x140153508
mov byte [rsp + 0x31], 0
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140153524
lea rcx, [rsp + 0x40]
call fcn.1401556d8
nop
lea rcx, [rsp + 0x40]
call fcn.1401556a8
jmp 0x140153616
mov rax, qword [rsp + 0x88]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140155670
nop
lea rcx, [rsp + 0x38]
call fcn.1401556f0
test rax, rax
je 0x14015360c
lea rcx, [rsp + 0x38]
call fcn.1401556f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14015360c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
add rax, 8
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.14017d7d0
lea rcx, [rsp + 0x38]
call fcn.1401556f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, [rsp + 0x38]
call fcn.1401556f0
mov rdx, rax
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1401535eb
mov byte [rsp + 0x32], 1
jmp 0x1401535f0
mov byte [rsp + 0x32], 0
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14015360c
lea rcx, [rsp + 0x38]
call fcn.1401556d8
nop
lea rcx, [rsp + 0x38]
call fcn.1401556a8
mov al, byte [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140153948
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x40], 0
call fcn.140133de8
cmp qword [rsp + 0x98], rax
jne 0x140153a64
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140153a03
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140153a01
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140153a01
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x68]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cdqe
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140153a5f
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140153a5f
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140153a5f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140153a5f
mov rcx, qword [rsp + 0x70]
call fcn.140190790
inc rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140153b2b
call fcn.140133ddc
cmp qword [rsp + 0x98], rax
je 0x140153b2b
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140153b2b
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140153b2b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140153b2b
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jbe 0x140153b06
mov r8d, 0x18b
lea rdx, [0x1401e1a40]
lea rcx, str.len___total_size
call fcn.140183df0
xor eax, eax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x40], rax
jbe 0x140153b20
mov rax, qword [rsp + 0x60]
sub rax, 8
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, qword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x140154684
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rcx, [0x1401e1a0c]
call qword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140154724
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140154724
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140154724
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x38], rax
mov r9, qword [rsp + 0x88]
xor r8d, r8d
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140155008
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140154724
mov al, 1
jmp 0x140154757
lea rcx, [rsp + 0x40]
call fcn.140155704
lea rcx, [rsp + 0x40]
call fcn.140155adc
movzx eax, al
test eax, eax
jne 0x140154743
xor al, al
jmp 0x140154757
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140155b1c
mov al, 1
add rsp, 0x78
ret
Function at 0x140157030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.140145be8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.1401462a0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140023038
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call fcn.140013cd8
nop
lea rcx, [rsp + 0x68]
call fcn.140140e2c
cmp dword [rsp + 0x20], 0xffffffff
je 0x1401570d5
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1401570d5
mov dword [rsp + 0x24], 1
jmp 0x1401570dd
mov dword [rsp + 0x24], 0
mov al, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14017c920
add rsp, 0x98
ret

Function at 0x140157100
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1400150f4
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x140157140
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1400150f4
movsx eax, byte [rax]
cmp eax, 0x2f
jne 0x140157172
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.1400150f4
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x14015716e
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.1400150f4
movsx eax, byte [rax]
cmp eax, 0x2f
jne 0x140157172
mov al, 1
jmp 0x1401571e3
mov rcx, qword [rsp + 0x70]
call fcn.1400240dc
cmp rax, 3
jb 0x1401571e1
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.1400635e0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.14002301c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x1401571c1
mov dword [rsp + 0x24], 1
jmp 0x1401571c9
mov dword [rsp + 0x24], 0
mov al, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x30]
call fcn.140013cb0
mov al, byte [rsp + 0x20]
jmp 0x1401571e3
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14017c920
add rsp, 0x68
ret
Function at 0x1401571fc
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.14002301c
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001067c
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xb0]
call fcn.140145928
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.140012a08
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call fcn.140146138
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14002301c
mov rcx, rax
call fcn.140195dfc
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x90]
call fcn.140013cb0
nop
lea rcx, [rsp + 0x60]
call fcn.140014680
nop
lea rcx, [rsp + 0xb0]
call fcn.140140e2c
nop
lea rcx, [rsp + 0x70]
call fcn.140013cb0
cmp dword [rsp + 0x24], 0xffffffff
je 0x1401572f7
mov dword [rsp + 0x20], 1
jmp 0x1401572ff
mov dword [rsp + 0x20], 0
mov al, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14017c920
add rsp, 0xe8
ret
Function at 0x140157324
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x140223748]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1401573f5
lea rcx, [rsp + 0x70]
call fcn.140012a08
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xc0]
call fcn.140145cd4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
call fcn.1401463f8
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
jmp 0x14015741c
lea rcx, [rsp + 0x80]
call fcn.140010ce0
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x210]
call fcn.14001056c
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 8
test eax, eax
je 0x140157460
and dword [rsp + 0x20], 0xfffffff7
lea rcx, [rsp + 0x80]
call fcn.140013cb0
mov eax, dword [rsp + 0x20]
and eax, 4
test eax, eax
je 0x14015747e
and dword [rsp + 0x20], 0xfffffffb
lea rcx, [rsp + 0xa0]
call fcn.140013cb0
nop
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
je 0x14015749c
and dword [rsp + 0x20], 0xfffffffd
lea rcx, [rsp + 0xc0]
call fcn.140140e2c
nop
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x1401574b6
and dword [rsp + 0x20], 0xfffffffe
lea rcx, [rsp + 0x70]
call fcn.140014680
mov rax, qword [rsp + 0x210]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14017c920
add rsp, 0x208
ret

Function at 0x140157974
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140157998
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x28
ret