joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003030
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
lea rsi, [0x140092468]
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x28], 1
cmp qword [0x140092458], 0
jne 0x140003076
test rbx, rbx
je 0x1400031df
mov qword [0x140092458], rbx
cmp qword [0x140092460], 0
jne 0x1400031d8
cmp byte [0x1400932e0], 0
jne 0x1400031d8
lea rcx, [0x140093708]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov rax, qword [0x140092458]
cmp dword [rax + 8], 0
je 0x140003103
lea rdx, [0x14006dab8]
lea rcx, [0x14006a810]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 0x38
call fcn.140002eb0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400030f7
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rcx
mov rdx, qword [0x140092458]
mov rcx, rax
call fcn.14005bc80
nop
mov qword [0x140092460], rax
jmp 0x1400031d8
and qword [rsp + 0x48], 0
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x1400031fb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x14006a810]
lea rcx, [rsp + 0x48]
call fcn.140014ff0
test eax, eax
je 0x140003178
mov ecx, 0x38
call fcn.140002eb0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140003176
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rcx
mov rdx, qword [0x140092458]
mov rcx, rax
call fcn.14005bc80
nop
jmp 0x1400031af
mov ecx, 0xe0
call fcn.140002eb0
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400031af
xor edx, edx
mov r8d, 0xe0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [0x140092458]
mov rcx, rbx
call fcn.14002ce60
nop
mov qword [0x140092460], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400031d8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [0x140092460]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x28], 0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x140007df0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, qword [rdx]
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
mov rbx, r8
lea rax, [r11 - 0x20]
mov dword [rsp + 0x30], 8
xor r8d, r8d
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140007e49
mov eax, dword [rsp + 0x34]
sub eax, 0xb
neg eax
sbb ecx, ecx
and ecx, 0xd
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140007e5f
lfence
jmp 0x140007e6e
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 4], eax
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
add rsp, 0x50
pop rbx
ret

Function at 0x140008118
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
mov rbx, r8
test rcx, rcx
jne 0x14000813f
mov eax, 0x8000ffff
jmp 0x14000819e
test rbx, rbx
jne 0x14000814b
mov eax, 0x80004003
jmp 0x14000819e
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140008191
cmp dword [rsp + 0x30], 4
jne 0x140008189
cmp dword [rsp + 0x34], 4
je 0x140008191
and dword [rbx], 0
mov ecx, 0x3f4
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x40
pop rbx
ret
Function at 0x140008580
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r9
mov rbx, rdx
movsxd rdi, ecx
xor r14d, r14d
test r9, r9
jne 0x1400085bb
mov eax, 0x80004003
jmp 0x1400086e3
mov qword [r9], r14
test rbx, rbx
je 0x1400086de
cmp edi, 0x23
ja 0x1400086de
movabs rcx, 0x814000000
bt rcx, rdi
jae 0x1400086de
mov word [rsp + 0x50], r14w
mov ebp, r14d
cmp r8, 0xffffffffffffffff
je 0x1400085fe
mov rcx, r8
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebp, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test ebp, ebp
je 0x140008624
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
jns 0x140008632
lfence
mov eax, edi
jmp 0x1400086e3
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140008701
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [str.Software_]
movups xmmword [rsp + 0x38], xmm0
mov eax, dword [0x140068658]
mov dword [rsp + 0x48], eax
mov r8d, 9
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
jne 0x140008683
add rbx, 0x12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140008720
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x1400086ce
mov rax, r14
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400086ca
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400086e3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
je 0x140008711
jmp 0x1400086a2
mov eax, 0x80070057
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001020
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400327c0
nop
jmp 0x140008710
nop
mov ecx, 0x8007000e
call fcn.1400327c0
int3
Function at 0x14000a5a0
Capabilities:
Get common file path

Disassembly:
mov r9, r8
or r8, 0xffffffffffffffff
jmp fcn.140008580

Function at 0x14000a7e0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x14], 0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x14]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, SafeArrayAllocDescriptor
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0x10], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x18], eax
test eax, eax
je 0x14000a86e
mov rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x18], ecx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x18]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001020
add rsp, 0x80
pop rbp
ret

Function at 0x14000ae40
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, qword [rdx]
lea rax, [r11 - 0x18]
mov rcx, qword [rcx]
lea r9, [r11 - 0x14]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14000ae96
lfence
mov eax, ecx
jmp 0x14000ae98
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001020
add rsp, 0x48
ret
Function at 0x14000c190
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbp, r9
mov r15, r8
mov r12, rdx
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call fcn.14000c680
movzx ecx, ax
mov r8d, 0x3ff
mov dword [rsp + 0x40], ecx
mov eax, ebx
and eax, 0xf0000
mov dword [rsp + 0x38], edi
mov r10d, ebx
mov dword [rsp + 0x30], ebx
and r10d, r8d
mov dword [rsp + 0x48], 0x409
or r10d, eax
lea edx, [r8 + 1]
or r10d, edx
neg ebx
sbb eax, eax
and ecx, r8d
or ecx, edx
and edi, r8d
or edi, edx
mov dword [rsp + 0x44], ecx
and eax, r10d
mov dword [rsp + 0x3c], edi
xor r13d, r13d
mov dword [rsp + 0x34], eax
mov r9d, r13d
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14000c24b
lea r8d, [r9 + 1]
cmp r8d, 7
jae 0x14000c24b
lea rdx, [rcx + 4]
cmp dword [rdx], eax
jne 0x14000c23e
mov dword [rdx], r13d
mov eax, dword [rcx]
inc r8d
add rdx, 4
cmp r8d, 7
jb 0x14000c235
inc r9d
add rcx, 4
cmp r9d, 7
jb 0x14000c221
mov r14, qword [rsp + 0xb8]
lea rdi, [rsp + 0x30]
mov esi, r13d
mov ebx, dword [rdi]
test ebx, ebx
je 0x14000c2b4
movsxd rdx, dword [rsp + 0xb0]
lea r8, [0x1400693a0]
mov qword [rsp + 0x28], r15
mov r9, r12
mov rcx, r14
mov dword [rsp + 0x20], ebx
call fcn.14000c300
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000c2b4
test rbp, rbp
je 0x14000c2e3
mov rcx, qword [rsp + 0xa0]
mov edx, ebx
call rbp
test eax, eax
jne 0x14000c2e3
inc esi
add rdi, 4
cmp esi, 7
jb 0x14000c268
mov word [r14], r13w
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0xa8]
mov eax, 1
mov dword [rcx], ebx
jmp 0x14000c2c5
Function at 0x14000c590
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
movsxd rbp, edx
mov r8, rcx
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
or rdi, 0xffffffffffffffff
mov rax, rdi
xor esi, esi
inc rax
cmp word [rbx + rax*2], si
jne 0x14000c5c6
mov r14d, 0x5c
cmp word [rbx + rax*2 - 2], r14w
je 0x14000c5ef
lea r8, [0x14006d440]
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x14000c645
inc rdi
cmp word [rbx + rdi*2], si
jne 0x14000c5ff
movsxd rcx, edi
mov edx, 0xffdf
movzx eax, word [rbx + rcx*2 - 4]
sub ax, 0x53
test dx, ax
jne 0x14000c641
mov word [rbx + rcx*2 - 4], r14w
lea ecx, [rdi - 1]
movsxd rdx, ecx
mov rcx, rbx
mov word [rbx + rdx*2], si
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebp
setne sil
mov eax, esi
jmp 0x14000c64a
xor eax, eax
jmp 0x14000c64a
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000c680
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
mov word [rbp - 0x1c], ax
xor esi, esi
mov dword [rbp - 0x10], esi
mov dword [rbp - 0x20], esi
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea edi, [rsi + 4]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
test eax, eax
je 0x14000c817
mov qword [rbp - 0x18], rsi
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14000c859
mov rax, qword [rax]
call qword [rax + 0x18]
lea r8, [rax + 0x18]
mov qword [rbp - 0x18], r8
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rsi
or dword [rbp - 0x28], 0xffffffff
mov edx, dword [rbp - 0x20]
test edx, edx
js 0x14000c83d
lea ecx, [rsi + 1]
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, edx
or eax, ecx
jge 0x14000c745
lfence
mov edx, dword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.140002d40
mov r8, qword [rbp - 0x18]
mov qword [rbp - 0x30], r8
lea r9, [rbp - 0x20]
lea rdx, [rbp - 0x10]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
test eax, eax
je 0x14000c7c0
cmp dword [rbp - 0x10], esi
jbe 0x14000c7c0
lea r8, [rbp - 0x18]
lea rdx, [0x1400693e8]
lea rcx, [rbp - 0x40]
call fcn.14000c3c0
lea r8, [rbp - 0x1c]
lea rdx, [0x1400693b0]
mov rcx, qword [rax]
call fcn.14000c360
cmp eax, 1
setne dil
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c7b1
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, word [rbp - 0x1c]
test dil, dil
cmovne ax, bx
mov word [rbp - 0x1c], ax
mov rax, qword [rbp - 0x18]
test rax, rax
jne 0x14000c7cd
mov ecx, esi
jmp 0x14000c7e4
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
mov rcx, rax
test eax, eax
js 0x14000c84b
mov rax, qword [rbp - 0x18]
cmp ecx, dword [rax - 0xc]
jg 0x14000c84b
mov dword [rax - 0x10], ecx
mov ecx, ecx
mov rax, qword [rbp - 0x18]
mov word [rax + rcx*2], si
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c817
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, word [rbp - 0x1c]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400327c0
nop
jmp 0x14000c84a
nop
mov ecx, 0x80070057
call fcn.1400327c0
nop
jmp 0x14000c858
nop
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x14000ce80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x30
mov r8, qword [rdx]
lea rax, [r11 + 0x18]
and qword [r11 - 0x10], 0
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
xor edx, edx
and qword [r11 + 0x18], 0
xor r9d, r9d
mov qword [r11 - 0x18], rax
call fcn.14000bcf4
test eax, eax
je 0x14000cf32
mov rbx, qword [rsp + 0x50]
lea rdx, str.BRANDINGDATA
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000cf1f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc8
jne 0x14000cf1f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000cf1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14000cf1f
mov qword [rsi + 0x28], rax
mov al, 1
mov qword [rsi + 0x20], rbx
jmp 0x14000cf34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x14000cf32
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d8d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r15d, r15d
mov rdi, r8
mov rbp, rdx
mov r14, rcx
cmp qword [rcx], r15
jne 0x14000d915
mov eax, 0x8000ffff
jmp 0x14000d98e
test rdi, rdi
jne 0x14000d921
mov eax, 0x80004003
jmp 0x14000d98e
mov qword [r8], r15
lea rax, [rsp + 0x30]
mov rcx, qword [rcx]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14000d963
cmp eax, 0xea
jne 0x14000d981
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14000d981
mov eax, dword [rsp + 0x34]
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x14000d9b5
cmp eax, 7
je 0x14000d9b5
mov ebx, 0x3f4
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsp + 0x246], r15w
test ebx, ebx
jne 0x14000d9d2
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
jmp 0x14000d981
shr edx, 1
xor ecx, ecx
dec edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rsi, rax
test rax, rax
je 0x14000da23
mov rcx, qword [r14]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000da15
mov qword [rdi], rsi
jmp 0x14000d981
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14000d981
mov eax, 0x8007000e
jmp 0x14000d98e

Function at 0x14000da30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
call fcn.14000dae0
mov rsi, rax
mov eax, dword [rdi + 0x18]
test rsi, rsi
je 0x14000dabf
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], eax
lea rdx, str.StartupFlags
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x34]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000dabc
cmp dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x34]
je 0x14000dabf
mov eax, dword [rdi + 0x18]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400112bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov r15, rcx
test rcx, rcx
je 0x140011491
test rdx, rdx
je 0x140011491
test r8, r8
je 0x140011491
mov rbx, qword [rcx]
movzx eax, word [rbx]
test ax, ax
je 0x140011491
movzx ecx, ax
lea edi, [rbp + 0x20]
cmp cx, di
je 0x140011326
movzx eax, cx
cmp cx, 9
jne 0x14001133d
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
movzx eax, word [rax]
movzx ecx, ax
test ax, ax
jne 0x140011318
mov rdi, qword [rsp + 0x70]
test ax, ax
je 0x140011491
cmp esi, 5
jne 0x140011377
mov qword [r14], rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
cmp word [rax], bp
jne 0x140011353
mov qword [r15], rax
mov dword [rdi], 5
mov eax, 1
jmp 0x140011493
sub ax, 0x2d
mov ecx, 0xfffd
mov r12d, 3
test cx, ax
je 0x140011390
mov dword [rdi], r12d
jmp 0x1400113a2
mov rcx, rbx
mov dword [rdi], 2
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
cmp esi, 4
jne 0x1400113b3
cmp dword [rdi], 2
jne 0x1400113b0
mov dword [rdi], ebp
jmp 0x14001136d
mov esi, r12d
cmp dword [rdi], esi
je 0x1400113c1
test esi, esi
je 0x1400113c1
mov dword [rdi], 1
mov r12d, 0x5e
mov qword [r14], rbx
mov esi, ebp
mov edi, ebp
lea r13d, [r12 - 0x3c]
lea r15d, [r12 - 0x3e]
movzx eax, word [rbx]
cmp r12w, ax
jne 0x1400113ea
xor edi, 1
movzx eax, r12w
jmp 0x140011426
cmp r13w, ax
jne 0x14001141f
mov eax, r13d
test edi, edi
jne 0x14001141f
test esi, esi
jne 0x14001140c
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rbx]
mov qword [r14], rax
jmp 0x140011413
mov word [rbx], r15w
mov ecx, r15d
mov eax, ebp
test esi, esi
sete al
mov esi, eax
movzx eax, cx
mov edi, ebp
test ax, ax
je 0x140011444
test esi, esi
jne 0x140011436
cmp ax, r15w
je 0x140011444
cmp ax, 9
je 0x140011444
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov rbx, rax
jmp 0x1400113d8
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharNextW]
mov r15, qword [rsp + 0x60]
mov rcx, qword [r14]
mov word [rbx], bp
mov qword [r15], rax
jmp 0x14001147c
lea rdx, [rdi + 2]
cmp word [rdx], bp
je 0x14001136d
mov r8, rbx
mov rcx, rdi
sub r8, rdi
call sub.VCRUNTIME140.dll_memmove
lea rcx, [rdi + 4]
mov edx, r12d
call sub.VCRUNTIME140.dll_wcschr
mov rdi, rax
test rax, rax
jne 0x14001145d
jmp 0x14001136d
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400115d4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
test rcx, rcx
je 0x140011623
cmp rcx, 0xffffffffffffffff
je 0x140011623
cmp rcx, 7
je 0x140011623
lea r8d, [rbx + 2]
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x20]
lea rcx, str.vsconsoleoutput
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [rsp + 0x20], 0x31
sete bl
mov eax, ebx
jmp 0x140011625
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001020
add rsp, 0x30
pop rbx
ret