joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002cbb0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x578
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x570], rax
lea r14, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400d3cd0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002d180
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14014d460]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14002d340
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x14002cc4a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14002cd1e
lea r14, [rsp + 0x58]
lea r15, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400d3cd0
mov rcx, r15
mov rdx, r14
call fcn.14002d2f0
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x14002cd5b
mov rcx, r14
call fcn.14002d0b0
test al, al
jne 0x14002cdb0
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x14002ccb8
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x14002cda9
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.1400185e0
mov rcx, r15
mov rdx, r14
call fcn.14002d340
mov rcx, rdi
mov rdx, r14
call fcn.140031450
mov rcx, r14
call fcn.140075930
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x14002cd12
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x14002cc71
lea rcx, [rsp + 0x40]
call fcn.140075930
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14002d280
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400a15d0
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x37], 0
je 0x14002cd83
cmp byte [rsp + 0x57], 0
js 0x14002cd70
lea rcx, [rsp + 0x40]
jmp 0x14002cd75
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002cc99
lea rcx, [rsp + 0x58]
call fcn.14002d0b0
test al, al
jne 0x14002cd97
mov edx, dword [rsp + 0x58]
jmp 0x14002cd62
lea rcx, [rsp + 0x58]
call fcn.14002d0b0
test al, al
je 0x14002cca9
xor ebp, ebp
jmp 0x14002ccd5
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x14002ccd5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.14002cbb0
mov ebp, eax
test eax, eax
jne 0x14002ccd5
cmp byte [rsp + 0x57], 0
jns 0x14002cded
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002ccd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002ccd5
Function at 0x14002ffc0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400300a0
mov eax, dword [rsi]
mov dword [0x14017a140], eax
test al, 1
jne 0x14002ffe1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140189900]
test rcx, rcx
je 0x14003000f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140189900], 0
cmp qword [0x140189908], 0
jne 0x14003000f
and byte [0x14017a140], 0xfe
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140030021
mov qword [0x140189900], rax
jmp 0x14002ffd9
mov rcx, qword [0x140189908]
test rcx, rcx
jne 0x14003004f
mov ecx, 0x18
call fcn.1400a02ac
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140189908], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140030084
call fcn.1400296e0
cmp dword [rsi + 0x14], 0
jne 0x140030079
mov rcx, qword [0x140189908]
cmp byte [rcx + 0x17], 0
jns 0x140030073
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400f0b10
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.1400d6d70
int3
Function at 0x140033290
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140189970]
test rdi, rdi
jne 0x140033343
mov ecx, 0x50
call fcn.1400a02ac
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400a02ac
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140033365
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140189970], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140033378
mov rcx, rax
call fcn.1400bcf98
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140033390
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a15d0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400d6d70
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.1400d6d70
int3
Function at 0x140033390
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14003a020
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14003351c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x140153538]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140033573
lea rdx, [0x140153588]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140033562
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [str.P4_r_]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x1400334b2
test r12d, r12d
js 0x140033569
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400a02ac
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x14003353c
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001bcc0
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14003348b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140033000
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400334d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14003351c
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140033514
add rdi, 0xffffffffffffffe8
jmp 0x140033507
mov rcx, qword [rdi]
call fcn.1400a02e8
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x140033514
test rdi, rdi
je 0x14003354f
cmp byte [rdi + 0x17], 0
js 0x1400334f3
jmp 0x1400334fb
mov rcx, rsi
call fcn.1400a02e8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a15d0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400d6d70
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1400d6d70
xor ebx, ebx
jmp 0x14003343f
lea rcx, [rsp + 0x20]
call fcn.1400d4a80
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14003343c
Function at 0x1400363f0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400d3cd0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003647b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400365e0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140036468
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400b8534
test eax, eax
je 0x140036575
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400364d2
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400365ee
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400364bf
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400b8534
test eax, eax
je 0x1400365a7
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140036525
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x1400365fc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140036516
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400b8534
test eax, eax
je 0x140036546
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400a15d0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140036557
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140036527
jb 0x14003660a
test al, al
jns 0x14003656b
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140036525
jmp 0x140036527
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140036586
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140036527
jb 0x14003660a
mov rcx, rsi
test al, al
jns 0x140036599
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14003647b
jmp 0x140036527
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x1400365b8
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140036527
jb 0x14003660a
mov rcx, rsi
test al, al
jns 0x1400365cf
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x1400364d2
jmp 0x140036527
dec r14
jne 0x14003644f
jmp 0x14003647b
dec r14
jne 0x1400364a6
jmp 0x1400364d2
dec r14
jne 0x1400364fd
jmp 0x140036525
lea rcx, [0x14014d516]
lea rdx, str....._third_partylibc_srcinclude_string:1241:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.1400d6d70
int3
Function at 0x1400381c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140189a40]
mov ecx, dword [0x140186798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038220
lea rsi, [0x140189a38]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a15d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140189a40]
call fcn.1400a032c
cmp dword [0x140189a40], 0xffffffff
jne 0x1400381fc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400d3cd0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400a02ac
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140189a88]
mov ecx, dword [0x140186798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400382e0
lea r8, [0x140189a58]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400383e0
mov qword [0x140189a38], rsi
lea rcx, [0x140189a40]
call fcn.1400a03e0
jmp 0x1400381fc
lea rcx, [0x140189a88]
call fcn.1400a032c
cmp dword [0x140189a88], 0xffffffff
jne 0x1400382b1
xorps xmm0, xmm0
movups xmmword [0x140189a78], xmm0
movups xmmword [0x140189a68], xmm0
movups xmmword [0x140189a58], xmm0
lea rcx, [0x140189a58]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140189a88]
call fcn.1400a03e0
jmp 0x1400382b1

Function at 0x140038330
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140189a88]
mov ecx, dword [0x140186798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003836b
movzx eax, word [0x140189a58]
cmp eax, 9
jne 0x1400383b3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140189a88]
call fcn.1400a032c
cmp dword [0x140189a88], 0xffffffff
jne 0x140038355
xorps xmm0, xmm0
movups xmmword [0x140189a78], xmm0
movups xmmword [0x140189a68], xmm0
movups xmmword [0x140189a58], xmm0
lea rcx, [0x140189a58]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140189a88]
call fcn.1400a03e0
jmp 0x140038355
test eax, eax
je 0x140038366
cmp eax, 6
jne 0x1400383c3
mov eax, 2
jmp 0x140038366
cmp eax, 0xc
jne 0x1400383cf
mov eax, 3
jmp 0x140038366
mov eax, 4
jmp 0x140038366
Function at 0x140039800
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400398f5
cmp qword [rsi], 0
jne 0x1400398f5
cmp dword [rsi + 0x14], 0
jne 0x1400398f5
cmp qword [rsi + 8], 0
jne 0x1400398f5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140039874
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400398dc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003986c
mov qword [rsi], r14
call fcn.140075610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400398ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400398c4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400398a6
mov qword [rsi + 8], r14
call fcn.140075610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140075610
mov rcx, qword [rsi + 8]
call fcn.14006f090
mov qword [rsi + 8], 0
jmp 0x140039893
call fcn.140075610
mov rcx, qword [rsi]
call fcn.14006f090
mov qword [rsi], 0
jmp 0x14003985a
mov rcx, rsi
call fcn.14006f170
lea rcx, [rsi + 8]
call fcn.14006f170
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x14003983a
Function at 0x14003c570
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14014d460]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14003c6ec
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14018a0b0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400bd3ec
mov rcx, rbx
call fcn.1400bcf98
sub r14, rax
lea rdx, [0x140150b2c]
mov rcx, rbx
mov r8, r14
call fcn.1400bd3ec
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400d3cd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003c64c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400bd434
test eax, eax
je 0x14003c710
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003c687
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400bd434
test eax, eax
je 0x14003c710
xor eax, eax
mov byte [0x140189ca9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14015d13c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003c717
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [str.P4_r_]
test eax, eax
je 0x14003c717
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14018a2b0], al
mov byte [0x140189ca8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400a15d0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x14003c689
xor eax, eax
jmp 0x14003c6df
Function at 0x14003ca10
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x14003ca44
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003cb3b
bt ebx, 8
jae 0x14003ca60
mov eax, ebx
and eax, 0x200
jne 0x14003cb3b
cmp edi, 2
lea rax, [0x140189cb0]
lea rcx, [0x140189eb0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003cb3b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003cb3b
bt ebx, 8
jb 0x14003cb3b
shr ebx, 9
and ebx, 1
or bl, byte [0x14018a2b0]
je 0x14003cb3b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14003cb5a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x14003cb24
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400b8534
test eax, eax
je 0x14003cb5f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14003cb04
cmp dword [rsp + 0x2c], 0
jne 0x14003cbdd
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a15d0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x14003cae7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003cb6d
test ecx, ecx
jne 0x14003cb24
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14003cb9c
cmp dword [rsp + 0x2c], 2
jne 0x14003cbad
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14003cbad
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14003cbc6
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14003cbb3
jmp 0x14003cbc9
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14003cb2b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14003cbe9
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400ee890
jmp 0x14003cb3b
Function at 0x1400404c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140040548
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140040532
cmp dword [rsp + 0x38], 4
jne 0x140040532
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a15d0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140040532

Function at 0x140040550
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400a1570
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140178040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400d3cd0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140040603
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140040607
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400296e0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a15d0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400405e4
cmp eax, 2
jne 0x14004064f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400d3cd0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140040656
lea rdx, [rsp + 0x40]
jmp 0x1400405da
mov edi, 0x3f4
jmp 0x1400405e4
mov edi, 0xea
jmp 0x1400405e4
Function at 0x140042530
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14004258f
xor r11d, r11d
mov rsi, qword [r8 + r11*8]
mov rdi, qword [rcx + r11*8]
mov rbx, rdi
xor rbx, rsi
lea r14, [rbx - 1]
mov r15, rdi
sub r15, rsi
xor r15, rdi
or r15, rbx
not rbx
and r14, rbx
sar r14, 0x3f
xor r15, rdi
sar r15, 0x3f
or r15, 1
xor rax, r15
and rax, r14
xor rax, r15
inc r11
cmp r10, r11
jne 0x14004254b
cmp rdx, r9
jb 0x14004259e
ja 0x1400425c2
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x1400425a0
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x140042596
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x1400425c5
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x140042596