joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009790]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097a0]
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x140009740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009780]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009840]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001890
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001900
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x140001a30
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000194b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001930
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001a52
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019e0
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001958
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x14000201c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002013
test rsi, rsi
je 0x140002013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ff8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400022ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002340
mov rdx, qword [0x140009740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000232e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000232e
cmp word [rax + 0x18], 0x20b
jne 0x14000232e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002319
add rbx, 0x28
cmp rbx, rdi
je 0x140002340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002310
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400023c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002370
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002430
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002477
test rcx, rcx
je 0x140002430
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002468
xor eax, eax
ret
Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400024d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400024f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002550
add rdx, 0x28
cmp r9, rdx
jne 0x140002530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002582
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002582
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ee
test ecx, ecx
jg 0x140002600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14002fc3c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002fdba
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 2]
mov qword [rsp + 0x28], rbx
lea r8, str.DumpFolder
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14002fdba
mov edx, dword [rsp + 0x40]
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 0x104
call fcn.140030e4c
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 2]
mov rax, qword [rsp + 0x60]
lea r8, str.DumpFolder
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14002fda2
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x14002fda2
lea rax, [rbp + 0x198]
mov qword [rbp + 0x188], rbx
xor r8d, r8d
mov qword [rbp + 0x180], rax
mov edx, edi
mov qword [rbp + 0x190], 0x104
lea rcx, [rbp + 0x180]
call fcn.140030e4c
mov rdx, qword [rbp + 0x180]
mov r8d, edi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x14002fd8a
mov rdx, qword [rbp + 0x180]
lea r8d, [rdi - 1]
mov r9, rsi
lea rcx, [rsp + 0x48]
call fcn.14003c424
cmp dword [rax], ebx
jne 0x14002fd8a
mov bl, 1
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x198]
cmp rcx, rax
je 0x14002fda2
call fcn.14011c590
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x14002fdb6
call fcn.14011c590
mov al, bl
jmp 0x14002fdbc
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140115e10
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002fde0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14002fe95
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x18], rax
lea r8, str.DumpType
lea rax, [r11 + 0x20]
mov r9d, 0x10
mov qword [r11 - 0x20], rax
xor edx, edx
and qword [r11 - 0x28], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14002fe95
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14002fe50
sub eax, 1
je 0x14002fe4b
cmp eax, 1
jne 0x14002fe95
mov dword [rbx], 2
jmp 0x14002fe91
and dword [rbx], 0
jmp 0x14002fe91
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, str.CustomDumpFlags
lea rax, [rsp + 0x60]
mov r9d, 0x10
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14002fe95
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
mov al, 1
jmp 0x14002fe97
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003181c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x14015fda0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140031927
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StackWalk64
mov rcx, rdi
mov qword [0x1402187a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymGetModuleBase64
mov rcx, rdi
mov qword [0x1402187a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymGetSymFromAddr64
mov rcx, rdi
mov qword [0x1402187b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymGetLineFromAddr64
mov rcx, rdi
mov qword [0x1402187b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymGetModuleInfo64
mov rcx, rdi
mov qword [0x1402187c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymFunctionTableAccess64
mov rcx, rdi
mov qword [0x1402187c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymSetOptions
mov rcx, rdi
mov qword [0x1402187d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SymInitialize
mov rcx, rdi
mov qword [0x1402187d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumerateLoadedModules64
mov rcx, rdi
mov qword [0x1402187e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402187e8], rax
cmp qword [0x1402187a8], rbx
je 0x14003194d
cmp qword [0x1402187e0], rbx
je 0x14003194d
cmp qword [0x1402187d8], rbx
je 0x14003194d
cmp qword [0x1402187a0], rbx
je 0x14003194d
mov bl, 1
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003c47c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x50], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov edi, r8d
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x40], 0x80
lea r8, [rsp + 0x30]
mov r9d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14004260c
cmp dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
je 0x14003c4ec
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rbx], xmm0
jmp 0x14003c55c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003c52e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14003c511
mov rcx, rbx
call fcn.14002c20c
jmp 0x14003c557
mov dword [rsp + 0x20], 2
call fcn.140004f34
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rbx], xmm0
jmp 0x14003c557
cmp edi, 1
jne 0x14003c542
test dil, al
je 0x14003c54b
mov dword [rsp + 0x20], 0xd
jmp 0x14003c519
cmp edi, 2
jne 0x14003c54b
test al, 0x10
jmp 0x14003c536
and dword [rbx], 0
call fcn.140004f44
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14003c56b
call fcn.14011c590
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140115e10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14003d380
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x50], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov dil, r8b
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x40], 0x80
lea r8, [rsp + 0x30]
mov r9d, 0xf8
lea rcx, [rsp + 0x20]
call fcn.14004260c
cmp dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
je 0x14003d3f0
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rbx], xmm0
jmp 0x14003d42b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003d41a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003d40e
test dil, dil
jne 0x14003d41a
mov edx, eax
mov rcx, rbx
call fcn.14002c20c
jmp 0x14003d426
and dword [rbx], 0
call fcn.140004f44
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14003d43a
call fcn.14011c590
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140115e10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003d460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x150], rax
lea rax, [rsp + 0x48]
mov rsi, rdx
mov edx, 0x104
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x40], rdx
mov rdi, rcx
mov qword [rsp + 0x38], rax
mov ecx, edx
mov ebx, ecx
cmp rbx, rax
je 0x14003d4d9
jb 0x14003d4d1
cmp rdx, rbx
jae 0x14003d4d1
mov r9d, 2
lea rdx, [rsp + 0x48]
mov r8d, ebx
lea rcx, [rsp + 0x30]
call fcn.14001e624
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rdx, qword [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test eax, eax
je 0x14003d541
mov rax, qword [rsp + 0x38]
mov r8d, ecx
cmp rcx, rax
jbe 0x14003d500
mov rdx, qword [rsp + 0x40]
jmp 0x14003d4ab
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r9, rsi
mov qword [rsp + 0x38], r8
call fcn.14003c424
cmp dword [rsp + 0x20], 0
je 0x14003d529
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rdi], xmm0
jmp 0x14003d551
xor edx, edx
mov rcx, rsi
call fcn.14003f838
and dword [rdi], 0
call fcn.140004f44
mov qword [rdi + 8], rax
jmp 0x14003d551
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14002c20c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14003d565
call fcn.14011c590
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140115e10
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003e25c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea r9, [rsp + 0x20]
xor ebp, ebp
mov edx, 0x8000
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x14003e28c
xor al, al
jmp 0x14003e2d0
mov rdx, qword [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bp
jne 0x14003e295
mov r9, rsi
lea rcx, [rsp + 0x28]
call fcn.14003c424
mov rcx, qword [rsp + 0x20]
mov ebx, dword [rax]
test ebx, ebx
sete dil
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x14003e2cd
xor edx, edx
mov rcx, rsi
call fcn.14003f824
mov al, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003e6a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x760]
sub rsp, 0x860
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x750], rax
lea rax, [rsp + 0x48]
xor edi, edi
mov qword [rsp + 0x30], rax
mov r14, rdx
mov edx, 0x400
mov eax, edi
mov qword [rsp + 0x38], rax
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov ebx, edx
cmp rbx, rax
je 0x14003e71f
jb 0x14003e717
cmp rdx, rbx
jae 0x14003e717
mov r9d, 2
lea rdx, [rsp + 0x48]
mov r8, rbx
lea rcx, [rsp + 0x30]
call fcn.14001e624
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rdx, qword [rsp + 0x30]
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14003e767
mov rax, qword [rsp + 0x38]
cmp rbx, rax
jbe 0x14003e747
mov rdx, qword [rsp + 0x40]
jmp 0x14003e6f3
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r9, r14
mov qword [rsp + 0x38], rbx
mov r8, rbx
call fcn.14003c424
cmp dword [rax], edi
sete dil
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14003e77b
call fcn.14011c590
mov al, dil
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140115e10
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003f210
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r15d, r15d
mov r14, rdx
mov rbx, rcx
lea rdx, [rsp + 0x38]
mov ecx, 0x80
mov qword [rsp + 0x20], rdx
mov eax, r15d
mov qword [rsp + 0x30], rcx
lea r12d, [r15 + 2]
mov qword [rsp + 0x28], rax
mov rsi, r8
mov edi, ecx
cmp rdi, rax
je 0x14003f2b5
jb 0x14003f2ad
cmp rcx, rdi
jae 0x14003f28e
mov r9, r12
lea rdx, [rsp + 0x38]
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.14001e624
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
lea r8, [rdx + rdi*2]
lea rcx, [rdx + rax*2]
cmp rcx, r8
je 0x14003f2ad
xor eax, eax
mov word [rcx], ax
add rcx, r12
cmp rcx, r8
jne 0x14003f29b
mov rdx, qword [rsp + 0x20]
mov rax, rdi
mov qword [rsp + 0x28], rax
mov rcx, qword [r14]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14003f2f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003f2e7
mov rcx, qword [rsp + 0x30]
add rdi, rdi
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x14003f263
mov edx, eax
mov rcx, rbx
call fcn.14002c20c
jmp 0x14003f381
mov rcx, qword [rsp + 0x28]
lea r8, [rcx + 1]
cmp r8, qword [rsp + 0x30]
jbe 0x14003f31d
mov r9, r12
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14001e624
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r15w
inc qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14003f335
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, r12d
je 0x14003f372
sub eax, 1
je 0x14003f36d
sub eax, 1
je 0x14003f372
sub eax, 1
je 0x14003f372
cmp eax, 1
je 0x14003f372
mov dword [rbx], r12d
call fcn.140004f34
jmp 0x14003f37d
mov byte [rsi], 1
jmp 0x14003f375
mov byte [rsi], r15b
mov dword [rbx], r15d
call fcn.140004f44
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14003f395
call fcn.14011c590
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140115e10
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret