joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d860
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43dac2
push rbp
mov rbp, rsp
sub rsp, 0x30
jmp 0x43d87a
inc dword [0x00502798]
mov ecx, dword [rax + 0x18c]
cmp dword [rax + 0x188], ecx
je 0x43d8cc
dec ecx
mov dword [rax + 0x18c], ecx
movzx ecx, cl
mov rcx, qword [rax + rcx*8 + 0x190]
mov rdx, qword [0x00502788]
nop
nop
mov qword [rcx + 0xa8], rdx
mov rdx, rcx
nop
mov qword [0x00502788], rcx
cmp qword [0x00502790], 0
nop
jne 0x43d874
nop
mov qword [0x00502790], rdx
jmp 0x43d874
mov rcx, qword [rax + 0x990]
test rcx, rcx
je 0x43d917
mov rdx, qword [0x00502788]
nop
nop
nop
mov qword [rcx + 0xa8], rdx
mov rdx, rcx
nop
mov qword [0x00502788], rcx
cmp qword [0x00502790], 0
jne 0x43d906
nop
mov qword [0x00502790], rdx
inc dword [0x00502798]
mov qword [rax + 0x990], 0
mov qword [rsp + 0x40], rax
mov rcx, qword [r14 + 0x30]
mov rcx, qword [rcx + 0xa0]
lea rbx, [rax + 0x2288]
test byte [rcx], al
add rcx, 0x2288
mov rax, rcx
call fcn.0044c720
cmp dword [0x00545ee4], 0
je 0x43d966
mov rax, qword [rsp + 0x40]
call fcn.0042ac60
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 0x1248]
mov rax, rcx
call fcn.0041fec0
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 0x9c0]
mov ebx, 0x400
mov rax, rcx
call fcn.0045d400
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x9b0], 0
mov qword [rax + 0x9b8], 0x80
lea rcx, [rax + 0x9c0]
cmp dword [0x005460f0], 0
je 0x43d9c8
call fcn.00464880
mov qword [r11], rcx
mov rdx, qword [rax + 0x9a8]
mov qword [r11 + 8], rdx
mov rdx, qword [rax + 0x11c8]
mov qword [r11 + 0x10], rdx
mov qword [rax + 0x9a8], rcx
mov qword [rax + 0x11c8], 0
lea rcx, [rax + 0x78]
mov ebx, 0x100
mov rax, rcx
call fcn.0045d400
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x68], 0
mov qword [rcx + 0x70], 0x20
lea rdx, [rcx + 0x78]
cmp dword [0x005460f0], 0
je 0x43da1d
call fcn.00464860
mov qword [r11], rdx
mov rax, qword [rcx + 0x60]
mov qword [r11 + 8], rax
mov qword [rcx + 0x60], rdx
lea rax, [0x0043db40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x20]
mov qword [rsp], rax
nop dword [rax + rax]
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x38]
lea rdx, [0x0043dae0]
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x10]
mov qword [rsp], rcx
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x38], 0
nop
call fcn.0043d480
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x1220], 0
mov dword [rax + 4], 4
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.00462980
mov rax, qword [rsp + 8]
jmp fcn.0043d860
Function at 0x4403e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44059c
push rbp
mov rbp, rsp
sub rsp, 0x10
mov edx, dword [rax + 0x188]
mov esi, dword [rax + 0x18c]
mov rdi, qword [rax + 0x990]
mov r8d, dword [rax + 0x18c]
cmp r8d, esi
jne 0x4403f2
cmp esi, edx
jne 0x44058a
nop dword [rax]
test rdi, rdi
jne 0x44058a
test rbx, rbx
jne 0x440454
mov qword [rsp + 0x20], rax
nop
call fcn.00466500
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x22a8]
test edx, edx
jne 0x4404b1
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x440585
mov rdx, qword [0x00501118]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x440579
mov rdx, qword [0x00501110]
lea rdx, [rdx + rsi*4]
not r8d
lock and dword [rdx], r8d
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x440574
mov rdx, qword [0x005010f8]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x440569
mov rcx, qword [0x005010f0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], r8d
mov rcx, qword [0x00502770]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00502770], rax
nop
mov edx, 1
lea rsi, [0x00502778]
lock xadd dword [rsi], edx
nop
mov rdx, qword [rcx + 0x1230]
shr rdx, 0x3d
test dl, dl
jne 0x440558
movabs rdx, 0x1fffffffffffffff
and rdx, rbx
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1230], rdx
mov rax, rbx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004888e2]
mov ebx, 0x28
call fcn.0045db40
mov rax, rsi
mov rcx, rdx
call fcn.00464c00
call fcn.0042ee80
mov rax, rsi
mov rcx, rdx
nop
call fcn.00464c00
call fcn.0042ee80
lea rax, [0x00487f01]
mov ebx, 0x23
call fcn.0045db40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004403e0
Function at 0x444860
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, r14
test rcx, rcx
je 0x4448a8
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x4448a8
mov qword [rsp + 0x68], rcx
nop
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
jmp 0x4448b8
mov eax, 1
add rsp, 0x70
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov rcx, qword [sym.imp.kernel32.dll_RtlLookupFunctionEntry]
lea rdx, [rsp + 0x58]
mov rbx, qword [rax + 0xf8]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.0042dcc0
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop
test rax, rax
je 0x444991
mov rcx, qword [rsp + 0x58]
mov rdx, qword [sym.imp.kernel32.dll_RtlVirtualUnwind]
mov rbx, qword [rsp + 0x60]
mov rsi, rbx
lea rdi, [rsp + 0x50]
mov r8, qword [rsi + 0xf8]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.0042df40
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rax
ja 0x444991
cmp qword [rcx + 8], rax
ja 0x4448b3
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x457380
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x457423
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00453cc0
nop
test bl, bl
je 0x45741d
mov qword [rsp + 0x18], rax
lea rcx, [0x00457460]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00457380
Function at 0x45de60
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x78
mov qword [rsp + 0x30], r14
mov rax, qword [r14 + 0x30]
inc dword [rax + 0xd8]
mov byte [r14 + 0xbf], 1
mov qword [r14 + 0x10], 0xfffffffffffffade
mov rax, qword [r14 + 0x30]
mov rcx, qword [rax + 0xa0]
mov ecx, dword [rcx + 0x14]
mov dword [rax + 0x2b4], ecx
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
inc dword [rax + 0x14]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x18], rax
call fcn.00442fe0
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call fcn.0043b520
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
mov qword [rax + 0x70], rcx
mov rdx, qword [rax + 0x40]
mov qword [rax + 0x78], rdx
mov rdx, qword [rax + 0x68]
mov qword [rax + 0x80], rdx
cmp qword [rax], rcx
ja 0x45df06
nop word [rax + rax]
cmp qword [rax + 8], rcx
jae 0x45df54
mov rdx, qword [rax + 0x38]
lea rbx, [0x0043bea0]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
mov qword [rsp], rcx
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
mov ebx, 2
mov ecx, 3
nop
call fcn.004353e0
mov rdx, qword [rsp + 0x30]
mov rsi, qword [rdx + 0x70]
cmp qword [rdx], rsi
ja 0x45df79
cmp qword [rdx + 8], rsi
jae 0x45dfbc
lea rax, [0x0043bda0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rax, [rsp + 0x38]
mov qword [rsp], rax
nop dword [rax]
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rdx + 0x80]
test rax, rax
je 0x45dfcd
cmp qword [rdx], rax
ja 0x45dfd3
cmp qword [rdx + 8], rax
jae 0x45e00e
lea rax, [0x0043bca0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rax, [rsp + 0x38]
mov qword [rsp], rax
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x0048ab18]
mov qword [rsp], rax
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
nop dword [rax]
call fcn.00442fe0
mov rbx, qword [rsp + 0x28]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call fcn.0043b520
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
dec dword [rax + 0xd8]
add rsp, 0x78
pop rbp
ret
Function at 0x45fcc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x45fe37
movzx edx, byte [rax]
test edx, edx
jne 0x45fcf4
nop dword [rax]
test r8b, r8b
jne 0x45fcf4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x45fd07
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x45fdf7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x45fde5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x45fdd7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45fd5d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x45fda0
mov eax, 1
cmp rax, rbx
ja 0x45fd8b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00464cc0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45fdcf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x45fd93
mov rcx, r11
mov eax, r12d
jmp 0x45fd62
mov rcx, rbx
call fcn.00464c00
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00464c00
mov eax, r8d
mov rcx, rbx
call fcn.00464cc0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45fe2d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x45fdf0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45fd0d
mov eax, edx
mov rcx, rbx
call fcn.00464c00
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00464c00
nop
int3

Function at 0x461280
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46132f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00451380]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00462860
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00461280
Function at 0x466540
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x466574
mov rcx, 0x28
jmp 0x46657f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005460d0], rcx
pop rbp
ret

Function at 0x46d980
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46da4a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004029e0
xorps xmm15, xmm15
mov r14, qword [0x005460d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x46da2f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00474c20]
xor ebx, ebx
mov rcx, rdx
call fcn.0045e720
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0046dd60
inc rbx
cmp rcx, rbx
jae 0x46da1e
mov edi, 1
lea rsi, [0x00474c20]
call fcn.0045e800
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004a1758]
lea rsi, [0x004a1450]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0046d980
Function at 0x140001528
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, rcx
mov rbx, r9
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x140001553
and qword [rsp + 0x20], rcx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
setg cl
jmp 0x140001560
mov rax, qword [rcx]
call qword [rax + 0x18]
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
jne 0x140001566
and dword [rbx], ecx
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140001928
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov rbx, r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001950
mov eax, 0x80004005
jmp 0x14000195d
test rbx, rbx
je 0x14000195b
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140002424
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rsp + 0x840], rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.14000c684
jmp 0x14000247d
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.140002424
mov ebx, eax
test eax, eax
jne 0x1400024ca
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x400
xor edx, edx
call fcn.14000c618
mov ebx, eax
test eax, eax
je 0x14000246e
cmp eax, 0x103
jne 0x1400024ca
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400024b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
mov rdx, rsi
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyW
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400024da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000db20
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003294
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x468]
sub rsp, 0x568
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r12d, r12d
lea rax, [rsp + 0x50]
mov r14, rdx
mov qword [rsp + 0x50], r12
mov rdx, rcx
mov qword [rsp + 0x48], r12
mov esi, r9d
mov qword [rsp + 0x40], r12
mov rbx, r8
mov qword [rsp + 0x38], r12
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov edi, r12d
call fcn.14000c684
test eax, eax
jne 0x14000348b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.CurVer
call fcn.14000c684
test eax, eax
jne 0x1400033a4
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0xca
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14000c6f0
test eax, eax
jne 0x1400033a4
cmp dword [rsp + 0x30], 1
jne 0x14000348b
cmp word [rsp + 0x60], r12w
je 0x1400033a4
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000000
call fcn.14000c684
test eax, eax
jne 0x14000348b
mov r8d, 0x105
lea rdx, str.shell_
lea rcx, [rbp + 0x30]
call fcn.14000b9c0
mov r8d, 0x105
lea rcx, [rbp + 0x30]
mov rdx, r14
call fcn.14000b97c
mov r8d, 0x105
lea rdx, [0x140011de8]
lea rcx, [rbp + 0x30]
call fcn.14000b97c
mov rax, qword [rsp + 0x40]
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x50]
test rax, rax
mov r9d, 0x20019
cmovne rcx, rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.14000c684
test eax, eax
jne 0x14000348b
mov rcx, qword [rsp + 0x38]
lea eax, [rsi + rsi]
mov dword [rsp + 0x5c], eax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x5c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call fcn.14000c6f0
test eax, eax
jne 0x14000348b
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140003451
cmp eax, 2
je 0x140003456
jmp 0x14000348b
cmp eax, 2
jne 0x140003486
mov r8d, 0x104
lea rcx, [rbp + 0x240]
mov rdx, rbx
call fcn.14000b9c0
mov r8d, esi
lea rcx, [rbp + 0x240]
mov rdx, rbx
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
dec eax
cmp eax, 0x103
ja 0x14000348b
mov edi, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000349b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], r12
test rcx, rcx
je 0x1400034b0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], r12
test rcx, rcx
je 0x1400034c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
test rcx, rcx
je 0x1400034da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14000db20
add rsp, 0x568
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003f58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov dword [rdx], 9
mov rdx, rcx
mov r8d, 0x105
lea rcx, [rsp + 0x20]
xor ebx, ebx
call fcn.14000b9c0
lea rcx, [rsp + 0x20]
call fcn.1400089f0
mov rdi, rax
test rax, rax
je 0x140003fcf
xor edx, edx
mov rcx, rax
call fcn.14000ab1c
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003fcf
test al, 0x10
jne 0x140003fcf
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000db20
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140007f70
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov r8d, ecx
xor r9d, r9d
mov rcx, 0xffffffff80000002
call fcn.1400034fc
test eax, eax
je 0x140007fa6
mov rcx, qword [rsp + 0x38]
lea rdx, str.KnownIDs
call sub.ADVAPI32.dll_RegDeleteValueW
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140007fb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x28
ret

Function at 0x140007fbc
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov r12d, edx
mov qword [rax + 0x18], r13
mov r15, rcx
call fcn.14000b568
mov ecx, r12d
mov ebp, eax
mov ebx, r13d
call fcn.140008c00
test rax, rax
lea rdi, [0x140010560]
mov rsi, rax
lea r14d, [r13 + 0x3b]
cmovne rdi, rax
cmp word [rdi], r13w
je 0x14000804a
mov rax, rdi
cmp rax, rdi
lea r14, [rax + 2]
mov r8d, ebp
mov rdx, r15
cmova rax, r14
mov rcx, rax
call fcn.14000b6f0
test eax, eax
jne 0x1400080cf
lea edx, [rax + 0x3b]
mov rcx, r14
call fcn.14000bc10
test rax, rax
jne 0x140008015
lea r14d, [rax + 0x3b]
lea edx, [rbp + 2]
mov rcx, rdi
call fcn.14000bb90
mov rbx, rax
test rax, rax
je 0x1400080cf
mov rcx, rax
call fcn.14000b568
mov edi, eax
lea rcx, [rbx + rdi*2]
cmp rcx, rbx
jbe 0x140008078
mov word [rcx], r14w
add rcx, 2
lea r8d, [rbp + 1]
mov rdx, r15
call fcn.14000b9c0
mov r14d, 1
lea rdx, [rsp + 0x70]
mov r9d, r14d
mov r8d, r12d
mov rcx, 0xffffffff80000002
call fcn.1400034fc
test eax, eax
je 0x1400080cf
mov rcx, qword [rsp + 0x70]
lea eax, [rdi + rbp]
lea eax, [rax*2 + 2]
mov r9d, r14d
mov dword [rsp + 0x28], eax
lea rdx, str.KnownIDs
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call sub.ADVAPI32.dll_RegSetValueExW
test rsi, rsi
je 0x1400080dc
mov rcx, rsi
call fcn.140001aa8
test rbx, rbx
je 0x1400080e9
mov rcx, rbx
call fcn.140001aa8
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400080f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140008b20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov word [rsp + 0x30], si
xor ecx, ecx
mov ebx, esi
lea r8d, [rsi + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140008bd5
cmp word [rsp + 0x30], si
je 0x140008bd5
lea rcx, [rsp + 0x30]
call fcn.14000b568
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000b6f0
test eax, eax
je 0x140008bd5
xor r9d, r9d
lea r8d, [rsi + 0x10]
lea rdx, [fcn.140001780]
lea rcx, [rsp + 0x20]
call fcn.14000c04c
mov edx, dword [rsp + 0x20]
mov rcx, rdi
call fcn.140008228
mov rbx, rax
test rax, rax
jne 0x140008bc8
mov rcx, rdi
call fcn.140008118
mov rbx, rax
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x140008bd5
call sub.USER32.dll_DdeUninitialize
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000db20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret