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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x4a0
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebp, ebp
mov rsi, rdx
mov rdi, rcx
cmp rdx, rbp
je 0x14001b9ad
mov qword [rdx], rbp
lea r8d, [rbp + 0x4c]
lea rcx, [rsp + 0x22]
xor edx, edx
mov word [rsp + 0x20], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x280]
lea rdx, [0x1400037e0]
lea r8d, [rbp + 0x7e]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x2fe]
xor edx, edx
mov r8d, 0x18a
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bp
call sub.msvcrt.dll_memset
lea r8d, [rbp + 0x27]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, 0x27
je 0x14001b8b9
mov ebx, 0x80004005
jmp 0x14001b9a9
mov r12d, 0x104
cmp word [rsp + 0x280], bp
je 0x14001b909
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x280]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x27c], 0x5c
je 0x14001b909
lea r8, [0x140003320]
lea rcx, [rsp + 0x280]
mov rdx, r12
call fcn.14001620c
cmp eax, ebp
mov ebx, eax
jl 0x14001b9a9
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x280]
mov rdx, r12
call fcn.14001620c
cmp eax, ebp
mov ebx, eax
jl 0x14001b9a9
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
mov r8d, r12d
call qword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
je 0x14001b8af
lea rcx, [rsp + 0x70]
call fcn.140021be4
cmp eax, ebp
mov ebx, eax
jl 0x14001b9a9
cmp word [rsp + 0x70], bp
je 0x14001b98c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x6c], 0x5c
je 0x14001b98c
lea r8, [0x140003320]
lea rcx, [rsp + 0x70]
mov rdx, r12
call fcn.14001620c
mov ebx, eax
cmp ebx, ebp
jl 0x14001b9a9
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, 0x8007000e
cmp rax, rbp
mov qword [rsi], rax
cmove ebx, ecx
mov eax, ebx
jmp 0x14001b9b2
mov eax, 0x80070057
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14001bbec
Capabilities:
Move file
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x240
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
mov rsi, rdx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
xor r12d, r12d
cmp eax, r12d
ja 0x14001bc35
mov eax, 0x80004005
jmp 0x14001bcdc
mov rcx, rdi
call fcn.14001b478
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
mov ebx, eax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
mov ebp, 0x80004005
cmp eax, r12d
cmove ebx, ebp
cmp ebx, r12d
jl 0x14001bcda
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x20]
mov r8d, 0xb
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, r12d
cmove ebx, ebp
cmp ebx, r12d
jl 0x14001bcda
mov rcx, qword [rdi + 0x38]
mov ebx, r12d
cmp rcx, rsi
je 0x14001bcda
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp rsi, r12
je 0x14001bcd6
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rdi + 0x38], rax
cmp rax, r12
jne 0x14001bcda
mov ebx, 0x8007000e
jmp 0x14001bcda
mov qword [rdi + 0x38], r12
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x14001bd0c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2240
call fcn.140023380
sub rsp, rax
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x2230], rax
xor edi, edi
mov rbx, rcx
cmp rcx, rdi
je 0x14001bdb4
mov qword [rcx], rdi
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x1ffe
mov word [rsp + 0x230], di
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x230]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x20]
lea rdx, [0x140003a08]
lea rcx, [rsp + 0x230]
xor r8d, r8d
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetTempFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
xor eax, eax
jmp 0x14001bdb9
mov eax, 0x80070057
mov rcx, qword [rsp + 0x2230]
xor rcx, rsp
call fcn.140022620
mov rbx, qword [rsp + 0x2258]
add rsp, 0x2240
pop rdi
ret
Function at 0x14001c3c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
lea rcx, [0x140003a50]
mov r8d, 0x104
call qword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001c3ee
mov ebx, 0x80004005
jmp 0x14001c410
mov rcx, rdi
call fcn.140021be4
mov ebx, eax
test eax, eax
js 0x14001c410
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, 0x800700ce
test rax, rax
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c65c
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x260
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r14d, r14d
mov r13, r8
mov rsi, rdx
mov rbx, rcx
mov word [r8], r14w
cmp rdx, r14
jne 0x14001c69f
mov eax, 0x80070057
jmp 0x14001c7e9
xor edx, edx
mov r8d, 0x250
mov rcx, rsi
call sub.msvcrt.dll_memset
mov ebp, 0x104
mov rcx, qword [rbx + 8]
mov edi, 1
cmp rcx, 0xffffffffffffffff
jne 0x14001c72d
lea r12, [rbx + 0x28]
mov rcx, r12
call fcn.14001c3c0
cmp eax, r14d
jl 0x14001c7e9
mov eax, dword [rbx + 0x24]
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], r14
call fcn.14001c424
cmp eax, r14d
jl 0x14001c7e9
lea rcx, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001c73b
mov eax, edi
jmp 0x14001c7e9
mov rdx, rsi
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_FindNextFileW]
cmp eax, r14d
je 0x14001c774
lea rcx, [rsi + 0x2c]
mov edx, 0x5f
mov r12, r14
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, r14
je 0x14001c765
xor edx, edx
lea rcx, [rax + 2]
lea r8d, [rdx + 0x24]
call qword [sym.imp.msvcrt.dll__wcstoi64]
mov r12, rax
cmp r12, qword [rbx + 0x18]
jle 0x14001c6b4
mov eax, r14d
jmp 0x14001c782
mov rcx, rbx
call fcn.14001c610
cmp eax, r14d
cmovge eax, edi
cmp eax, r14d
jne 0x14001c7e9
add rbx, 0x28
mov rcx, r13
mov edx, r14d
sub rbx, r13
lea rax, [rbp + 0x7ffffefa]
cmp rax, r14
je 0x14001c7b6
movzx eax, word [rbx + rcx]
cmp ax, r14w
je 0x14001c7b6
mov word [rcx], ax
add rcx, 2
sub rbp, rdi
jne 0x14001c794
cmp rbp, r14
jne 0x14001c7c4
sub rcx, 2
mov edx, 0x8007007a
cmp edx, r14d
mov word [rcx], r14w
jge 0x14001c7d1
mov eax, edx
jmp 0x14001c7e9
lea rdx, [rsi + 0x2c]
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
neg eax
sbb eax, eax
not eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140022620
add rsp, 0x260
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001ccd4
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x30], 0
lea rax, [0x140002380]
lea rdx, [0x1400022f0]
test cl, cl
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001cdbf
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
lea r8d, [rax + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x14001cd8f
mov ecx, 0x8007000e
call fcn.1400057b8
int3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
test edi, edi
setne bl
test rsi, rsi
je 0x14001cdbb
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001cdc4
mov eax, 0x80004005
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001cdf0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov edi, r8d
mov rbx, rdx
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
lea rax, [0x140002380]
lea r8, [0x1400022f0]
test cl, cl
cmovne r8, rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.140005838
test eax, eax
jne 0x14001cf45
lea rcx, [rsp + 0x60]
mov eax, dword [0x140003b48]
mov dword [rcx], eax
movzx eax, word [0x140003b4c]
mov word [rcx + 4], ax
xor eax, eax
mov qword [rsp + 0x66], rax
mov qword [rsp + 0x6e], rax
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x64]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow]
mov r8d, 0x40
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x14001cee8
mov ecx, 0x8007000e
call fcn.1400057b8
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
test edi, edi
setne bl
cmp qword [rsp + 0x40], 0
je 0x14001cf41
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001cf5a
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001cf55
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140022620
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
ret
Function at 0x14001d0c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4a0
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov bpl, cl
cmp rdx, r14
je 0x14001d105
movdqu xmm0, xmmword [0x140001bb0]
movdqu xmmword [rdx], xmm0
cmp r8, r14
je 0x14001d10d
mov dword [r8], r14d
mov r12d, 0x206
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8, r12
mov rbx, r14
mov word [rsp + 0x70], r14w
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x282]
mov r8, r12
xor edx, edx
mov word [rsp + 0x280], r14w
call sub.msvcrt.dll_memset
lea rax, [0x140002380]
lea rdx, [0x1400022f0]
movdqu xmm5, xmmword [0x140001bb0]
cmp bpl, r14b
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
movdqu xmmword [rsp + 0x58], xmm5
cmovne rdx, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov r13d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov r12d, eax
cmp eax, r14d
jne 0x14001d1a1
mov rbx, qword [rsp + 0x50]
mov r12d, r14d
mov ebp, r14d
cmp r12d, r14d
jne 0x14001d22f
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x280]
mov edx, ebp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x44], 0x208
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
mov r12d, eax
cmp eax, r14d
jne 0x14001d226
inc ebp
cmp dword [rsp + 0x40], 1
jne 0x14001d226
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, r14d
mov r13d, eax
jge 0x14001d264
cmp r13d, r14d
jge 0x14001d1a4
cmp rbx, r14
je 0x14001d23d
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140022620
add rsp, 0x4a0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp rsi, r14
je 0x14001d273
movdqu xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rsi], xmm0
cmp rdi, r14
je 0x14001d28d
lea rcx, [rsp + 0x280]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov dword [rdi], eax
cmp rbx, r14
je 0x14001d29b
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
jmp 0x14001d242
Function at 0x14001d52c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
mov qword [rbx + 0xa0], rax
test rax, rax
jne 0x14001d564
mov eax, 0x80004005
jmp 0x14001d63e
lea rax, [rbx + 0x90]
lea r8, [0x14001ecec]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x14001d59e
mov esi, 0x80004005
mov edi, esi
jmp 0x14001d5d9
mov edx, 2
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadPriority]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x9c4
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x88]
xor edi, edi
test eax, eax
mov esi, 0x80004005
cmovne edi, esi
xor edx, edx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadPriority]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
and qword [rbx + 0xa0], 0
test edi, edi
js 0x14001d634
cmp qword [rbx + 0x58], 0
je 0x14001d615
mov rcx, qword [rbx + 0x58]
and qword [rbx + 0x58], 0
lea r8, [rbx + 0x60]
lea rdx, [0x140002650]
call qword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov edi, eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14001d624
test edi, edi
js 0x14001d634
mov edi, esi
test edi, edi
js 0x14001d634
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
jns 0x14001d63c
mov rcx, rbx
call fcn.14001d380
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001db74
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x6d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov ebx, ecx
mov rdi, qword [rsp + 0x708]
xor esi, esi
cmp rdi, rsi
je 0x14001dbb9
mov dword [rdi], esi
cmp edx, 0xffff
je 0x14001dbec
movzx eax, dx
mov ecx, 0x3ff
and ax, cx
mov ecx, 0x7f
cmp cx, ax
je 0x14001dbec
mov ecx, edx
call fcn.140015058
cmp al, sil
jne 0x14001dbec
mov eax, 0x80070057
jmp 0x14001dccc
cmp r8, rsi
jl 0x14001dcc7
mov eax, r9d
not eax
mov ecx, dword [rsp + 0x700]
test ecx, eax
jne 0x14001dcc7
lea rbp, [0x140003ac0]
mov qword [rsp + 0x30], rbp
or qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], ecx
mov word [rsp + 0x4b0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x4b2]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x260], esi
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x264]
call sub.msvcrt.dll_memset
cmp ebx, esi
jle 0x14001dcad
lea r8, [rsp + 0x4b0]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x30]
call fcn.14001c65c
cmp eax, esi
jne 0x14001dcad
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_DeleteFileW]
cmp ebx, 0x7fffffff
jge 0x14001dca9
sub ebx, dword [rsp + 0x280]
cmp ebx, esi
jg 0x14001dc6e
cmp rdi, rsi
je 0x14001dcb4
mov dword [rdi], ebx
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.14001c610
xor eax, eax
jmp 0x14001dccc
mov eax, 0x80070057
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140021be4
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
xor edi, edi
cmp eax, edi
jne 0x140021cc0
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
cmp eax, 0xb7
je 0x140021cc0
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
cmp eax, 3
jne 0x140021cb9
lea rax, [rsp + 0x20]
mov r8, rbx
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x20]
lea rax, [rdx + 0x7ffffefa]
cmp rax, rdi
je 0x140021c6e
movzx eax, word [r8 + rcx]
cmp ax, di
je 0x140021c6e
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140021c4b
cmp rdx, rdi
jne 0x140021c77
sub rcx, 2
mov word [rcx], di
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rdi
je 0x140021cb9
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x140021cb9
lea rcx, [rsp + 0x20]
mov word [rax], di
call fcn.140021be4
cmp eax, edi
jne 0x140021cb9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
cmp eax, edi
jne 0x140021cc0
mov eax, 0x80004005
jmp 0x140021cd0
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFileAttributesW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140022620
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x140021e48
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140021edb
cmp dword [rsp + 0x24], 5
jb 0x140021ef5
jmp 0x140021ef1
cmp dword [rsp + 0x30], esi
jne 0x140021ef5
cmp dword [rsp + 0x24], 4
ja 0x140021ef1
jne 0x140021ef5
cmp dword [rsp + 0x28], 0
jbe 0x140021ef5
mov byte [rbx + 0x18], sil
lea rax, [0x1400019e0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400057d8
movzx ecx, byte [0x14002e1b0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14002e1b0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400222dc
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14002e278], rdi
je 0x14002233c
cmp rax, rdi
jne 0x14002232f
mov r12d, 1
jmp 0x14002233c
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x140022315
mov eax, dword [0x14002e274]
cmp eax, 1
jne 0x140022351
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1400223b8
mov eax, dword [0x14002e274]
cmp eax, ebx
jne 0x1400223ae
mov dword [0x14002e274], 1
lea r13, [0x1400019a8]
lea rdi, [0x140001990]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x1400223a0
cmp eax, ebx
jne 0x1400223a0
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140022395
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14002237e
cmp eax, ebx
je 0x1400223b8
mov eax, 0xff
jmp 0x140022500
mov dword [0x14002dba4], 1
mov eax, dword [0x14002e274]
cmp eax, 1
jne 0x1400223e0
lea rdx, [0x140001988]
lea rcx, [0x140001938]
call sub.msvcrt.dll__initterm
mov dword [0x14002e274], 2
cmp r12d, ebx
jne 0x1400223ef
mov rax, rbx
xchg qword [0x14002e278], rax
cmp qword [0x14002e290], rbx
je 0x140022417
lea rcx, [0x14002e290]
call fcn.140022c8c
cmp eax, ebx
je 0x140022417
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14002e290]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x14002242d
mov eax, 0xff
jmp 0x140022500
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x1400224b2
cmp word [rcx], bx
je 0x140022448
cmp edx, ebx
jne 0x1400224b2
cmp word [rcx], bx
je 0x14002245e
cmp word [rcx], 0x20
ja 0x14002245e
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140022448
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000f668
mov dword [0x14002dba0], eax
cmp dword [0x14002db84], ebx
jne 0x14002249c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002dba4], ebx
jne 0x1400224b0
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002dba0]
jmp 0x140022500
cmp word [rcx], 0x22
jne 0x1400224c5
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140022439
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.140022d94
add rsp, 0x28
jmp 0x1400222dc