joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027940
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027b75
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027b75
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027b75
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rdx, [0x140076318]
lea rcx, [rbp - 0x80]
call fcn.140004a20
test al, al
jne 0x140027af0
lea rdx, [0x140076368]
lea rcx, [rbp - 0x80]
call fcn.140004a20
test al, al
jne 0x140027af0
lea rdx, [0x140076340]
lea rcx, [rbp - 0x80]
call fcn.140004a20
test al, al
jne 0x140027a77
lea rdx, [0x140076390]
lea rcx, [rbp - 0x80]
call fcn.140004a20
test al, al
je 0x140027b64
mov dword [rsp + 0x50], 0x10101
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCIC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027b64
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InterfaceType
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140027b64
mov dword [rsp + 0x50], 0x10201
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCIC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027b64
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InterfaceType
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140027b75
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140027b85
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002a740
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rbp
ret
Function at 0x140027f10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400280b9
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400280b9
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400280b9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov cl, 1
call fcn.140028acc
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.1400047d0
nop
lea r8, [0x140068d64]
lea rdx, str.N3L.
lea rcx, [rsp + 0x48]
call fcn.140004b80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140004a20
movzx edi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002808c
mov eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x14002808c
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14002808c
nop dword [rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], rsi
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x140028070
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400280bc
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400280bc
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
jmp 0x1400280bc
xor dil, dil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400280cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140028100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400282a9
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400282a9
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400282a9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov cl, 1
call fcn.140028acc
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.1400047d0
nop
lea r8, [0x140068d74]
lea rdx, str.R1S.
lea rcx, [rsp + 0x48]
call fcn.140004b80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140004a20
movzx edi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002827c
mov eax, 0xffffffff
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x14002827c
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14002827c
nop dword [rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], rsi
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x140028260
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400282ac
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400282ac
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
jmp 0x1400282ac
xor dil, dil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400282bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400282f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov edi, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400284b8
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400284b8
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400284b8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov cl, 1
call fcn.140028acc
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.1400047d0
nop
lea r8, [0x140068d54]
lea rdx, str.N2E.
lea rcx, [rsp + 0x48]
call fcn.140004b80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140004a20
movzx esi, al
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002847c
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x2c], ecx
cmp ecx, 1
jne 0x14002847c
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14002847c
nop dword [rax]
nop dword [rax + rax]
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r14
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x140028460
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400284a7
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400284a7
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
test sil, sil
je 0x1400284b8
lea eax, [rdi - 3]
cmp eax, 1
ja 0x1400284b8
mov bl, 1
jmp 0x1400284ba
xor bl, bl
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400284ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002b664
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b6ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b6ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b6ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b6ae
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b6ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002b6b0
xor al, al
add rsp, 0x28
ret
Function at 0x14004c048
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004c0cf
mov rsi, rbx
cmp word [rax], bp
je 0x14004c08e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004c078
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004c074
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140044d34
mov rdi, rax
test rax, rax
je 0x14004c0bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002c910
mov rbp, rdi
xor ecx, ecx
call fcn.140044618
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400533e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400031d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdx, qword [rcx + 8]
mov qword [rbp - 8], rcx
mov r8, qword [rcx + 0x10]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rdx
call fcn.140007180
mov rcx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x1400032b6
mov qword [rbp + 8], rcx
mov qword [rbp], rsi
lea rax, [0x14326d4a0]
mov qword [rbp - 0x48], rax
lea rax, [0x14326d4a5]
mov qword [rbp - 0x40], rax
mov word [rbp - 0x38], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x48]
call fcn.140001320
mov rdx, qword [rbp - 0x28]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov qword [rbp - 0x10], rdx
mov r8, qword [rbp]
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
call fcn.140007290
mov rsi, rax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14000329b
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x10]
call fcn.140003770
mov rdx, qword [rbp + 8]
test rdx, rdx
mov rcx, qword [rbp]
je 0x1400032b6
add rdx, rdx
mov r8d, 2
call fcn.140003770
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032d1
mov r8d, 1
mov rcx, qword [rbp - 0x18]
call fcn.140003770
mov rax, rsi
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x1400033c0
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], r8
call fcn.140004490
mov rcx, rsi
test al, al
je 0x140003412
mov rdx, rbx
mov r8, rdi
call fcn.140001bf0
test rax, rax
setne cl
cmovne rsi, rax
jmp 0x14000350d
call fcn.14000b8d0
test rax, rax
je 0x140003426
mov cl, 1
mov rsi, rax
jmp 0x14000350d
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 2
mov qword [rbp + 0x20], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [0x140003060]
mov qword [rbp - 0x20], rax
lea rax, [0x14326d590]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov byte [rbp + 0x2f], 1
lea rdx, [0x14326d4b0]
lea rcx, [rbp + 0x10]
lea r8, [rbp - 0x58]
call fcn.14001ec30
test al, al
jne 0x140003539
mov rdx, qword [rbp + 0x20]
cmp rdx, qword [rbp + 0x10]
jne 0x1400034bf
mov byte [rbp + 0x2f], 1
lea rcx, [rbp + 0x10]
call fcn.1400036a0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov word [rax + rdx*2], 0
inc qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x18]
mov qword [rbp], rcx
call sub.KERNEL32.dll_SetConsoleTitleW
test eax, eax
je 0x14000351f
xor edi, edi
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x140003503
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp]
call fcn.140003770
test rdi, rdi
setne cl
cmovne rsi, rdi
movzx eax, cl
mov rdx, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp + 8]
test rdx, rdx
jne 0x1400034f1
jmp 0x140003503
mov byte [rbp + 0x2f], 1
lea rax, [0x14326d628]
mov qword [rsp + 0x20], rax
lea rcx, [0x14326d5a0]
lea r9, [0x14326d480]
lea r8, [rbp - 0x58]
mov edx, 0x11
call fcn.140025270
ud2
Function at 0x140004eb0
Capabilities:
Manipulate console buffer

Disassembly:
push rsi
sub rsp, 0xa0
mov word [rsp + 0x2c], dx
mov word [rsp + 0x2e], r8w
test dx, dx
js 0x140004ef4
test r8w, r8w
js 0x140004f42
mov rcx, qword [rcx + 0x10]
shl r8d, 0x10
movzx edx, dx
or edx, r8d
call sub.KERNEL32.dll_SetConsoleCursorPosition
test eax, eax
je 0x140004fb2
xor eax, eax
add rsp, 0xa0
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x140022060]
mov qword [rsp + 0x38], rax
lea rax, [0x14326daf8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x70]
jmp 0x140004f91
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x30], rax
lea rax, [0x140022060]
mov qword [rsp + 0x38], rax
lea rax, [0x14326daa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001d6b0
mov cl, 0x27
mov rdx, rsi
call fcn.140003c10
nop
add rsp, 0xa0
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.1400011c0
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0xa0
pop rsi
ret
Function at 0x140009b70
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140009c10
jmp 0x140009bff
jae 0x140009cd0
cmp r8, 0x201
jae 0x140009c10
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009c68
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140009c3f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140024470
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140009c91
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009d38
mov r8d, r14d
cmp r15, r8
jne 0x140009bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009d65
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140009bff
jmp 0x140009c10
cmp rsi, r8
jb 0x140009d7f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000cc70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140009d21
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140003770
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140009d09
jmp 0x140009d21
lea rcx, [0x14326e740]
lea r8, [0x1432709d8]
mov edx, 0x28
call fcn.140024f40
jmp 0x140009d94
lea rax, [0x1432709c0]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140025390
ud2
Function at 0x140009f20
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140014980
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140009f76
lea rcx, [rbp - 0x50]
call fcn.140007bc0
mov qword [rsi], rdi
jmp 0x14000a161
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14000a000
jmp 0x140009fef
jae 0x14000a0c6
cmp r8, 0x201
jae 0x14000a000
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14000a058
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000a02f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140024470
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000a087
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000a19b
mov r8d, esi
cmp r12, r8
jne 0x140009fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a1d6
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140009fef
jmp 0x14000a000
cmp r15, r8
jb 0x14000a1f0
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.14000cc70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x14000a128
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140003770
cmp qword [rbp + 0x3d0], rdi
jne 0x14000a178
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140007bc0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000a161
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140003770
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000a14c
jmp 0x14000a161
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x14000a110
jmp 0x14000a128
lea rcx, [0x14326e740]
lea r8, [0x1432709d8]
mov edx, 0x28
call fcn.140024f40
jmp 0x14000a205
lea rax, [0x1432709c0]
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140025390
ud2