joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2a30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
or qword [rsp + 0x48], 0xffffffffffffffff
xor edi, edi
mov qword [rsp + 0x40], rdi
mov r14, r8
mov r15, rdx
test rcx, rcx
jne 0x1400a2a64
mov ecx, 0x80070057
mov edi, ecx
jmp 0x1400a2b57
test r15, r15
je 0x1400a2a58
test r14, r14
je 0x1400a2a58
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400a2b36
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400a2b36
cmp dword [rsp + 0x80], edi
jne 0x1400a2a58
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400a2b2c
lea r9, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov r8d, esi
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a2b36
cmp dword [rsp + 0x98], esi
je 0x1400a2b1f
mov ecx, 0x8000ffff
jmp 0x1400a2a5d
mov dword [r15], esi
mov qword [rsp + 0x40], rdi
mov qword [r14], rbx
jmp 0x1400a2b5c
mov ecx, 0x8007000e
jmp 0x1400a2a5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a2b47
mov edi, 0x80004005
jmp 0x1400a2b55
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rsp + 0x40]
call fcn.14009bf9c
lea rcx, [rsp + 0x48]
call fcn.140076840
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ab8b4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
and dword [rbp - 0x40], 0
lea rax, [0x14000f258]
and dword [rbp - 0x3c], 0
lea rdx, [rbp - 0x30]
and qword [rbp - 0x38], 0
mov rsi, r9
and qword [rbp - 0x18], 0
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xb9
lea rax, [rbp + 0x28]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x10], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x28]
test ebx, ebx
jns 0x1400ab924
mov ecx, ebx
jmp 0x1400ab9a1
xor edi, edi
cmp dword [rbp - 0x3c], edi
jle 0x1400ab98d
movsxd rbx, edi
shl rbx, 7
add rbx, qword [rbp - 0x38]
mov rcx, rbx
lea rdx, [rbx + 0x68]
call fcn.1400b6db0
lea rax, [0x14000f598]
mov qword [rbp - 0x30], 3
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea rax, [rbx + 0x60]
mov ecx, 0xb9
mov qword [rbp - 0x10], rax
lea rax, [rbx + 0x58]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x30]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rbp - 0x3c]
jl 0x1400ab92b
lea r8, [rbp - 0x40]
mov rdx, rsi
call fcn.1400b48f8
mov ebx, eax
test eax, eax
jns 0x1400ab9a6
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400c59d0
mov rdi, qword [rbp - 0x38]
test rdi, rdi
je 0x1400ab9d5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400af450
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov r14, r8
mov qword [rbp - 0x10], r15
mov ebx, r15d
mov qword [rbp - 0x20], rbx
mov rsi, rdx
mov qword [rbp - 0x18], r15
mov rdi, rcx
cmp rcx, 0xffffffff80000001
jne 0x1400af493
xor ecx, ecx
call fcn.140079c60
lea rax, [rbp + 0x30]
mov qword [rbp + 0x30], r15
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400af51b
mov edi, r15d
mov rbx, qword [rbp + 0x30]
mov qword [rbp - 0x20], rbx
mov rsi, rbx
mov qword [rbp + 0x30], r15
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp + 0x30]
call fcn.140069f74
test edi, edi
js 0x1400af54b
xor ecx, ecx
call fcn.140079c60
mov eax, dword [rbp + 0x50]
test rbx, rbx
mov dword [rsp + 0x28], eax
mov r9d, 4
cmove rsi, r15
lea rax, [rbp + 0x48]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400af539
mov edi, r15d
jmp 0x1400af552
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400af4bc
mov ecx, edi
call fcn.140079c40
mov rsi, r15
jmp 0x1400af4cb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x1400af552
mov ecx, edi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.14006fca4
lea rcx, [rbp - 0x10]
call fcn.140069f74
lea rcx, [rbp - 0x20]
call fcn.140069f74
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b5ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp - 8], rax
xor r15d, r15d
mov dword [rbp - 0x38], 0x73006d
mov ebx, r15d
mov dword [rbp - 0x34], 0x740066
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rbx
mov r8, rcx
mov dword [rbp - 0x30], 0x73003a
mov rsi, rdx
mov dword [rbp - 0x2c], 0x700070
mov r9, rcx
mov dword [rbp - 0x28], 0x63002f
mov dword [rbp - 0x24], 0x630061
sub r8, rax
mov dword [rbp - 0x20], 0x650068
mov dword [rbp - 0x1c], 0x740073
mov dword [rbp - 0x18], 0x72006f
mov dword [rbp - 0x14], 0x2f0065
mov dword [rbp - 0x10], 0x730025
mov word [rbp - 0xc], r15w
mov dword [rbp - 0x50], 0x6d0048
mov dword [rbp - 0x4c], 0x630061
mov dword [rbp - 0x48], 0x65004b
mov dword [rbp - 0x44], 0x79
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400b5f9d
add rax, 2
test edx, edx
jne 0x1400b5f89
test ecx, ecx
jne 0x1400b5faf
mov edi, 0x80070057
mov ecx, edi
call fcn.140079c40
jmp 0x1400b5fd9
mov r8, r9
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.140078d44
mov edi, eax
test eax, eax
jns 0x1400b5fd2
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp - 0x40]
jmp 0x1400b5fd9
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x1400b6001
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c0628
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x50], 0
mov rdi, r8
and qword [rbp - 0x58], 0
lea r8, [rbp - 0x50]
mov r12d, edx
mov r15, r9
lea rdx, [rbp - 0x60]
call fcn.1400c5580
mov ebx, eax
test eax, eax
jns 0x1400c0677
mov ecx, eax
jmp 0x1400c070a
mov ebx, 0x20
mov edx, ebx
lea ecx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400c0703
mov r14, qword [rbp - 0x50]
lea r8d, [rbx + 0x1c]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x48]
lea rax, [0x140012cd8]
mov qword [rbp - 0x2c], rdi
mov edi, dword [rbp - 0x60]
lea ecx, [r8 + 0x7d]
mov qword [rbp - 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x5c]
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], 3
mov dword [rbp - 0x30], r12d
mov dword [rbp - 0x24], edi
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x14], rsi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x5c]
test ebx, ebx
js 0x1400c0708
xor eax, eax
mov dword [r15], 0x20
and qword [rbp - 0x58], rax
mov ecx, edi
mov rdi, r14
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x40]
mov qword [rax], rsi
jmp 0x1400c070f
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
lea rcx, [rbp - 0x58]
call fcn.14005a9b4
lea rcx, [rbp - 0x50]
call fcn.14005a9b4
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c12c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
or qword [rsp + 0x68], 0xffffffffffffffff
xor ebx, ebx
mov rsi, r8
mov edi, edx
test rcx, rcx
jne 0x1400c12ee
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x1400c136d
mov qword [rsp + 0x30], rbx
mov r8d, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400c134c
lea r9, [rsp + 0x50]
mov qword [rsp + 0x68], rcx
mov r8d, edi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c134c
cmp dword [rsp + 0x50], edi
je 0x1400c1372
mov ecx, 0x8000ffff
jmp 0x1400c12ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c135d
mov ebx, 0x80004005
jmp 0x1400c136b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
lea rcx, [rsp + 0x68]
call fcn.140076840
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c7238
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
xor ebx, ebx
and dword [rbp - 0x24], esi
mov r15, r8
and dword [rbp - 0x28], esi
mov r14, rdx
and qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x40], rbx
test ecx, ecx
je 0x1400c72b4
cmp ecx, 1
je 0x1400c7277
mov edi, 0x80070057
jmp 0x1400c72ef
lea rax, [0x140014398]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x30]
jmp 0x1400c72ef
lea rax, [0x1400146d8]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x48]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x48]
test edi, edi
jns 0x1400c72fa
mov ecx, edi
jmp 0x1400c73b3
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.14005216c
mov edi, eax
test eax, eax
jns 0x1400c731c
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp - 0x40]
jmp 0x1400c73b8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.1400699a8
mov edi, eax
test eax, eax
jns 0x1400c733c
mov ecx, eax
call fcn.140079c40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c7313
mov rbx, qword [rbp - 0x40]
mov r14d, 0x7fffffff
test rbx, rbx
jne 0x1400c734f
xor edi, edi
jmp 0x1400c7381
mov r8d, r14d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140079840
mov edi, eax
test eax, eax
js 0x1400c737a
mov r8d, dword [rbp - 0x40]
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.14006f61c
mov edi, eax
test eax, eax
jns 0x1400c7381
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test edi, edi
jns 0x1400c7399
mov ecx, edi
call fcn.140079c40
mov rsi, qword [rbp - 0x30]
jmp 0x1400c73b8
mov rsi, qword [rbp - 0x30]
mov r8d, r14d
mov rcx, rsi
mov rdx, r15
call fcn.140069580
mov edi, eax
test eax, eax
jns 0x1400c73b8
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x1400c73cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400c73e1
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp - 0x38], 0
test rsi, rsi
je 0x1400c73fa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x98]
mov eax, edi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c8bcc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rax, [rbp - 0x18]
and qword [rbp - 8], rdi
mov r14, r9
mov r15, r8
mov qword [rbp - 0x10], rdi
xor ebx, ebx
mov qword [r11 - 0x48], rax
and qword [rbp - 0x18], rbx
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c8c4f
xor esi, esi
mov rdi, qword [rbp - 0x18]
and qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov ecx, esi
call fcn.140079c60
lea rcx, [rbp - 0x18]
call fcn.140069f74
test esi, esi
jns 0x1400c8c6a
mov ecx, esi
call fcn.140079c40
jmp 0x1400c8d19
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
je 0x1400c8c23
mov ecx, esi
call fcn.140079c40
jmp 0x1400c8c2f
and dword [rbp + 0x20], ebx
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x20]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400c8ca4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x1400c8c43
test rbx, rbx
jne 0x1400c8ce2
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400c8cd8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400c8c6d
mov esi, 0x8007000e
jmp 0x1400c8c43
mov esi, 0x8000ffff
jmp 0x1400c8c43
cmp dword [rbp - 0x20], 1
je 0x1400c8cf2
mov esi, 0x8007000d
jmp 0x1400c8c43
mov edx, dword [rbp + 0x20]
lea r9, [rbp - 0x1c]
mov r8, r14
mov rcx, rbx
call fcn.140078510
mov esi, eax
test eax, eax
jns 0x1400c8d11
mov ecx, eax
jmp 0x1400c8c45
cmp dword [rbp - 0x1c], 0
je 0x1400c8d19
xor ebx, ebx
mov ecx, esi
call fcn.140079c60
test rbx, rbx
je 0x1400c8d39
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rbp - 8]
call fcn.140069f74
lea rcx, [rbp - 0x10]
call fcn.140069f74
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c8d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov eax, dword [0x1403c7460]
xor r14d, r14d
mov r12, rdx
mov qword [rsp + 0x40], r14
mov r13, rcx
mov qword [rsp + 0x38], r14
mov r15d, 0x104
mov dword [rsp + 0x48], 1
mov ebx, r14d
mov dword [rsp + 0x4c], eax
mov edx, r15d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
mov esi, r14d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400c8e1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c8dfd
mov r14d, 0x80004005
jmp 0x1400c8e0e
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov ecx, r14d
call fcn.140079c40
jmp 0x1400c8f18
mov rcx, r15
lea rax, [rsp + 0x50]
cmp word [rax], r14w
je 0x1400c8e33
add rax, 2
sub rcx, 1
jne 0x1400c8e23
mov rax, rcx
neg rax
sbb r14d, r14d
not r14d
and r14d, 0x80070057
test rcx, rcx
je 0x1400c8e50
sub r15, rcx
jmp 0x1400c8e53
xor r15d, r15d
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, r15
xor r15d, r15d
test rcx, rcx
je 0x1400c8e0e
lea ebx, [r15 + 0x5c]
cmp bx, word [rsp + rdx*2 + 0x4e]
je 0x1400c8e7c
lea eax, [rbx - 0x2d]
cmp ax, word [rsp + rdx*2 + 0x4e]
jne 0x1400c8e7f
dec rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140079744
mov r14d, eax
test eax, eax
jns 0x1400c8ea3
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rsp + 0x30]
jmp 0x1400c8f18
cmp bx, word [r13]
lea rcx, [r13 + 2]
lea rdx, [rsp + 0x38]
cmovne rcx, r13
call fcn.140079b08
mov r14d, eax
test eax, eax
jns 0x1400c8ed4
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
jmp 0x1400c8f18
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x4c]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov edx, 3
call fcn.1400ca010
mov r14d, eax
test eax, eax
jns 0x1400c8f0f
mov ecx, eax
call fcn.140079c40
mov rsi, qword [rsp + 0x40]
jmp 0x1400c8f18
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov ecx, r14d
call fcn.140079c60
test rdi, rdi
je 0x1400c8f41
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test rbx, rbx
je 0x1400c8f62
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
test rsi, rsi
je 0x1400c8f83
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
mov eax, r14d
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c93d4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400c9449
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9432
mov ebx, 0x80004005
jmp 0x1400c9440
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
jmp 0x1400c946a
cmp dword [rsp + 0x30], 2
jne 0x1400c9466
cmp dword [rsp + 0x24], 5
ja 0x1400c945f
jne 0x1400c9466
cmp dword [rsp + 0x28], ebx
jbe 0x1400c9466
mov eax, 1
jmp 0x1400c9468
mov eax, ebx
mov dword [rdi], eax
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor eax, eax
xor r14d, r14d
mov qword [r11 + 8], r14
xorps xmm0, xmm0
mov rsi, rdx
mov rbp, rcx
movups xmmword [rsp + 0x20], xmm0
mov qword [r11 - 0x28], rax
test rcx, rcx
jne 0x1400c9c6f
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x1400c9d0d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400c9c84
shr edi, 4
and edi, 1
jmp 0x1400c9c87
mov edi, r14d
xor ecx, ecx
call fcn.140079c60
xor ecx, ecx
call fcn.140079c60
mov ebx, r14d
test edi, edi
jne 0x1400c9d12
test rsi, rsi
je 0x1400c9cf1
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400c9cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9cca
mov ebx, 0x80004005
jmp 0x1400c9c68
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400c9c68
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x30], r14d
test rsi, rsi
lea rdx, [rsp + 0x20]
mov rcx, rbp
cmove rdx, r14
call fcn.1400c9d48
mov ebx, eax
test eax, eax
jns 0x1400c9d12
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400c9d29
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c9d48
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x560], rax
xor r13d, r13d
mov r12, rdx
mov r8, rcx
test rcx, rcx
je 0x1400c9dbf
mov edi, 0x104
mov rax, r8
mov ecx, edi
cmp word [rax], r13w
je 0x1400c9da0
add rax, 2
sub rcx, 1
jne 0x1400c9d90
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x1400c9dba
sub rdi, rcx
jmp 0x1400c9dc9
mov rdi, r13
jmp 0x1400c9dc9
mov rdi, qword [rsp + 0x20]
mov ebx, 0x80070057
test ebx, ebx
cmovs rdi, r13
jns 0x1400c9dd8
mov ecx, ebx
jmp 0x1400c9fa3
mov r14d, 0x105
lea rcx, [rsp + 0x30]
mov edx, r14d
call fcn.140078718
mov ebx, eax
test eax, eax
js 0x1400c9fa1
lea rax, [rdi - 1]
mov ecx, 0x80070216
cmp rax, rdi
ja 0x1400c9e0b
mov rdi, rax
mov ebx, r13d
jmp 0x1400c9e12
mov ebx, ecx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x1400c9dd1
add rdi, rdi
mov ecx, 0x5c
cmp word [rsp + rdi + 0x30], cx
jne 0x1400c9e3f
cmp rdi, 0x20a
jae 0x1400c9fdc
mov word [rsp + rdi + 0x30], r13w
cmp word [rsp + 0x30], cx
lea rax, [rsp + 0x30]
lea rdi, [rsp + 0x32]
mov word [rbp + 0x140], r13w
cmovne rdi, rax
mov r15d, r13d
mov edx, ecx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov r8, rdi
lea rcx, [rbp + 0x350]
mov rsi, rax
test rax, rax
jne 0x1400c9e92
mov rdx, r14
call fcn.140078718
mov ebx, eax
test eax, eax
js 0x1400c9fa1
lea r15d, [rsi + 1]
jmp 0x1400c9eda
mov r14, rsi
mov edx, 0x105
sub r14, rdi
sar r14, 1
mov r9, r14
call fcn.1400ca1b0
mov ebx, eax
test eax, eax
js 0x1400c9fa1
cmp rsi, rdi
jb 0x1400c9f98
add r14, r14
cmp r14, 0x20a
jae 0x1400c9fdc
mov word [rbp + r14 + 0x350], r13w
mov r14d, 0x105
lea r8, [rbp + 0x350]
mov rdx, r14
lea rcx, [rbp + 0x140]
call fcn.1400ca248
mov ebx, eax
test eax, eax
js 0x1400c9fa1
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c9f10
test al, 0x10
jne 0x1400c9f3e
mov eax, r15d
lea rcx, [rbp + 0x140]
neg eax
sbb rdx, rdx
and rdx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400c9f71
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c9f71
test rsi, rsi
je 0x1400c9f63
lea r8, [0x1403c7460]
mov rdx, r14
lea rcx, [rbp + 0x140]
lea rdi, [rsi + 2]
call fcn.1400ca248
mov ebx, eax
test eax, eax
js 0x1400c9fa1
test r15d, r15d
jne 0x1400c9fa8
lea ecx, [r15 + 0x5c]
jmp 0x1400c9e5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9f85
mov ebx, 0x80004005
jmp 0x1400c9dd1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400c9dd1
mov ecx, 0x80070216
mov ebx, ecx
jmp 0x1400c9fa3
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x670
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14037ac38
int3