joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007ddd0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14007de31
test r12, r12
je 0x14007df48
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401249d0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x14007de96
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14007de7f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1401272b0
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x14007ddfe
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x14007df74
lea rcx, [r15*8]
call fcn.140123e20
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x14007df13
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x14007df48
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14007defb
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.1400cfaf0
mov r12, qword [rsi + 0x10]
jmp 0x14007ddfe
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.14016a900
call fcn.14015f3e0
int3
Function at 0x14007e2e0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1401bf358]
mov qword [rcx], rax
add rcx, 8
call fcn.1400d9bb0
lea rcx, [rsi + 0x10]
call fcn.1400d9bb0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1400d9bb0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14009e500
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.140024cf0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [reloc.OLEAUT32.dll_SysReAllocString], edx
je 0x14007e4db
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.1400f4e60
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14007e4ff
call fcn.140080cb0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140080d60
mov qword [0x140203ee8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [reloc.OLEAUT32.dll_VariantClear], edx
jne 0x14007e51d
test dword [reloc.WS2_32.dll_recv], edx
jne 0x14007e512
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14009e2a0
jmp 0x14007e49c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140215008]
jmp 0x14007e4a9
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x14007e4f4
cmp rax, 0x40
mov eax, 0x100
jmp 0x14007e493
Function at 0x140081610
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140203f10]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140081670
lea rsi, [0x140203f08]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140203f10]
call fcn.140123f80
cmp dword [0x140203f10], 0xffffffff
jne 0x14008164c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140127960
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.140123e20
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140203f58]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140081730
lea r8, [0x140203f28]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140081830
mov qword [0x140203f08], rsi
lea rcx, [0x140203f10]
call fcn.140124018
jmp 0x14008164c
lea rcx, [0x140203f58]
call fcn.140123f80
cmp dword [0x140203f58], 0xffffffff
jne 0x140081701
xorps xmm0, xmm0
movups xmmword [0x140203f48], xmm0
movups xmmword [0x140203f38], xmm0
movups xmmword [0x140203f28], xmm0
lea rcx, [0x140203f28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140203f58]
call fcn.140124018
jmp 0x140081701

Function at 0x140081780
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140203f58]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400817bb
movzx eax, word [0x140203f28]
cmp eax, 9
jne 0x140081803
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140203f58]
call fcn.140123f80
cmp dword [0x140203f58], 0xffffffff
jne 0x1400817a5
xorps xmm0, xmm0
movups xmmword [0x140203f48], xmm0
movups xmmword [0x140203f38], xmm0
movups xmmword [0x140203f28], xmm0
lea rcx, [0x140203f28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140203f58]
call fcn.140124018
jmp 0x1400817a5
test eax, eax
je 0x1400817b6
cmp eax, 6
jne 0x140081813
mov eax, 2
jmp 0x1400817b6
cmp eax, 0xc
jne 0x14008181f
mov eax, 3
jmp 0x1400817b6
mov eax, 4
jmp 0x1400817b6
Function at 0x140082fe0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rcx + 8]
lea rax, [r14 + 1]
cmp rax, 1
ja 0x140083066
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
cmp qword [rdi + 8], rax
je 0x140083066
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jae 0x140083102
mov rax, r14
inc rax
cmp rax, 2
jb 0x14008305a
mov qword [rdi + 8], r14
call fcn.1400ef4f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140083140
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov edx, 1
mov r8d, 0x1000000f
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14008311d
lea rcx, [rdi + 0x68]
mov rdx, rsi
call fcn.1400efd00
lea rbx, [rdi + 0x10]
lea rdx, str.StartWatching
lea r8, [0x1401ce500]
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x66
call fcn.1400ef4d0
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov r8, rdi
mov r9, r14
call fcn.1400d88f0
mov edi, eax
mov rcx, rsi
call fcn.1400efd70
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401249d0
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400ef4f0
mov rcx, qword [rdi + 8]
call fcn.1400d8800
mov qword [rdi + 8], 0
jmp 0x140083045
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jb 0x140083140
call fcn.1400ef4f0
mov rcx, qword [rdi + 8]
call fcn.1400d8800
mov qword [rdi + 8], 0
xor edi, edi
jmp 0x1400830e0

Function at 0x140083320
Capabilities:
Query or enumerate registry value

Disassembly:
add rcx, 0x18
cmp byte [rdx + 0x17], 0
jns 0x140083320
mov rdx, qword [rdx]
jmp 0x140083320
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140083350
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14008341e
mov r14d, r8d
mov rdi, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400833fe
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rbx
and r12d, 0x300
mov dword [rsp + 0x30], r12d
test r14b, r14b
je 0x140083425
test rbx, rbx
je 0x1400833ef
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.140083480
mov ebp, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401249d0
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 6
jmp 0x140083400
lea rdi, [rsp + 0x40]
mov qword [rdi], r15
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140083620
cmp byte [rdi + 4], 0
je 0x14008344b
mov ebp, dword [rsp + 0x40]
test rbx, rbx
je 0x140083400
jmp 0x140083466
mov r8d, dword [rsi + 8]
lea rdx, [0x1401c5a34]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
jmp 0x140083444
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140083400
Function at 0x140083480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], r14
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008355a
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x48]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
mov qword [rbx], r14
mov rdx, rbx
call fcn.140083620
cmp byte [rbx + 4], 0
jne 0x140083562
lea rdx, [0x1401c5a34]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x140083568
test rdi, rdi
je 0x140083537
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401249d0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp eax, 2
cmovne ebx, eax
jmp 0x140083537
mov ebx, dword [rsp + 0x60]
jmp 0x140083529
mov ecx, 0x200
call fcn.140123e9c
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.140127960
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x1400835de
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x14008360c
cmp word [r14 + rax*2], 0
jne 0x14008360f
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.140083480
test eax, eax
je 0x140083594
lea rdx, [0x1401c5a34]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x140083529
mov rcx, r14
call fcn.140123ea4
jmp 0x140083529
int3
int3
Function at 0x140083620
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x140083686
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401249d0
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x1400836d4
cmp dword [rsp + 0x3c], 6
jne 0x140083667
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x1400836da
mov edi, eax
mov eax, dword [0x140203f70]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400836e9
mov rax, qword [0x140203f68]
test rax, rax
je 0x1400836e2
mov ecx, edi
call qword [0x140215008]
mov dword [rsi], eax
mov al, 1
jmp 0x14008366c
mov dword [rsi], 0
jmp 0x1400836d6
mov eax, 5
jmp 0x1400836d4
lea rcx, [0x140203f70]
call fcn.140123f80
cmp dword [0x140203f70], 0xffffffff
jne 0x1400836c0
lea rcx, [0x1401ce556]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140203f68], rax
lea rcx, [0x140203f70]
call fcn.140124018
jmp 0x1400836c0

Function at 0x140083740
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401e8038]
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 0x1400837c8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400837b2
cmp dword [rsp + 0x38], 4
jne 0x1400837b2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401249d0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400837b2
Function at 0x1400837d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1058
call fcn.140124970
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x1050], rax
lea r14, [rsp + 0x850]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140127960
lea r9, [rsp + 0x4c]
mov dword [r9], 1
lea rax, [rsp + 0x48]
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 0x1400838ab
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jne 0x14008392e
lea rbx, [rsp + 0x850]
mov rcx, rbx
call fcn.140146754
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x140083911
cmp rdi, 0xa
jbe 0x1400838af
movzx r9d, al
mov edx, 0xa
mov r8, rdi
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14007c580
jmp 0x1400838e1
mov edi, eax
jmp 0x1400838e3
mov rbx, rsi
test rdi, rdi
je 0x1400838d0
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x850]
mov rcx, rbx
call fcn.1401272b0
mov al, byte [rsi + 0x17]
test al, al
js 0x140083902
mov eax, edi
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1401249d0
mov eax, edi
add rsp, 0x1058
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], rdi
jmp 0x1400838db
mov r9, qword [rsi + 8]
jmp 0x140083883
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x140083908
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x1400838b2
cmp eax, 2
jne 0x1400839d1
lea rdi, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140127960
lea rcx, [rsp + 0x850]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400839db
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140146754
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x1400839b0
cmp rdi, 0xa
ja 0x14008387a
mov rbx, rsi
test rdi, rdi
je 0x1400838d0
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x50]
jmp 0x1400838c5
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x140083908
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x140083997
mov edi, 0x3f4
jmp 0x1400838e3
mov edi, 0xea
jmp 0x1400838e3

Function at 0x1400839f0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140146754
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140084a80
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, SafeArrayCopy
call fcn.140123e20
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1401e8e08]
jne 0x140084aed
mov rcx, r15
call fcn.1400c7030
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140084ef0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140084b61
test r14, r14
je 0x140084b56
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401249d0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140084b30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140084b7a
mov ebp, eax
cmp eax, 0x5af
je 0x140084b7a
cmp ebp, 0xe
jne 0x140084ba5
mov rcx, rbx
call fcn.140160d90
test rsi, rsi
je 0x140084b30
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401e8e08]
jne 0x140084b9b
call fcn.1400c7180
mov rcx, rsi
call fcn.140123e5c
jmp 0x140084b30
mov eax, dword [0x140204010]
mov ecx, dword [0x1401f78f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140084c28
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140090d60
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140084be5
and r8d, 0x7f
jmp 0x140084bef
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1400ce8d0
mov rcx, qword [0x140204008]
mov rdx, r14
call fcn.1400a1cd0
cmp byte [rsp + 0x4f], 0
jns 0x140084b82
mov rcx, qword [rsp + 0x38]
call fcn.140123e5c
jmp 0x140084b82
lea rcx, [0x140204010]
call fcn.140123f80
cmp dword [0x140204010], 0xffffffff
jne 0x140084bc6
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400a1ca0
mov qword [0x140204008], rax
lea rcx, [0x140204010]
call fcn.140124018
jmp 0x140084bc6

Function at 0x140086c90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140086cd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140086cf1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140086ccf
mov qword [rsi], rdi
call fcn.1400ef4f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140086d07
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ef4f0
mov rcx, qword [rsi]
call fcn.1400d8800
mov qword [rsi], 0
jmp 0x140086cbd
int3
Function at 0x140086d10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140086d3a
call fcn.1400ef4f0
mov qword [rsi], 0
test r14, r14
je 0x140086d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140086dab
cmp r15, 2
jb 0x140086d68
mov qword [rsi], r14
call fcn.1400ef4f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140086d95
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400ef4f0
mov rcx, qword [rdi]
call fcn.1400d8800
mov qword [rdi], 0
jmp 0x140086d86
call fcn.1400ef4f0
mov rcx, qword [rsi]
call fcn.1400d8800
mov qword [rsi], 0
jmp 0x140086d5a
Function at 0x1400884d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400a3b60
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1401bf218]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140088545
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140088550
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14008853d
mov qword [rsi + 0x18], rdi
call fcn.1400ef4f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ef4f0
mov rcx, qword [rsi + 0x18]
call fcn.1400d8800
mov qword [rsi + 0x18], 0
jmp 0x14008852a