joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002ace0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800adca0]
mov rcx, qword [rax + 0x4298]
mov r10, qword [rax + 0x3e38]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x174]
movss xmm4, dword [rcx + 0x174]
movss xmm3, dword [rcx + 0x178]
movss xmm2, dword [rcx + 0x17c]
movss xmm1, dword [rcx + 0x180]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x270]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x210], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x270]
mov rcx, qword [rcx + 0x1a8]
add rsp, 0x38
jmp 0x1800204b0

Function at 0x18002adb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800adca0]
mov rcx, qword [rax + 0x4298]
mov r9, qword [rax + 0x3e38]
movups xmm0, xmmword [r9 + 0x210]
movups xmmword [rcx + 0x174], xmm0
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rcx + 0x154]
movss xmm4, dword [rcx + 0x154]
movss xmm3, dword [rcx + 0x158]
movss xmm2, dword [rcx + 0x15c]
movss xmm1, dword [rcx + 0x160]
movups xmmword [r9 + 0x210], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x1f7]
mov rcx, qword [rcx + 0x1a8]
mov rdx, qword [r9 + 0x270]
add rsp, 0x38
jmp 0x1800204b0
Function at 0x18002f700
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x18002f7a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x18002f7a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x18002f7a2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x18002f780
cmp r8d, 0x1bad7009
je 0x18002f7ac
test r9d, r9d
jne 0x18002f760
mov rax, qword [rax]
jmp 0x18002f730
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [0x1800ae4c8]
add rax, r10
call rax
movd xmm0, dword [0x1800ae4c8]
mov rax, rsi
movd xmm2, dword [0x1800ae4cc]
mov rbx, qword [rsp + 0x30]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180034ba0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1800ae4a0]
mov rbx, rcx
test rax, rax
jne 0x180034da9
movups xmm0, xmmword [0x180053650]
xor ecx, ecx
cmp dword [0x1800adb58], 2
movups xmm1, xmmword [0x180053660]
mov eax, dword [0x1800536a0]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x70], eax
movups xmm0, xmmword [0x180053670]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180053690]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [0x180053680]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x50], xmm1
jl 0x180034d4c
movdqa xmm5, xmmword [0x18004e8e0]
lea rdx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18004e960]
movaps xmmword [rsp + 0x90], xmm6
movdqa xmm6, xmmword [str.7777]
movaps xmmword [rsp + 0x80], xmm7
movdqa xmm7, xmmword [0x180054940]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x28
jl 0x180034c50
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x2a
jge 0x180034d90
movsxd rax, ecx
lea r8, [rsp + 0x20]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x37
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x36
xor word [r8 - 2], ax
cmp ecx, 0x2a
jl 0x180034d60
mov rax, qword [0x1800ae1c8]
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x1800ae4a0], rax
mov rdx, qword [rbx]
test rdx, rdx
je 0x180034dd2
mov rcx, qword [0x1800ad248]
mov r9, qword [rdx + rcx*8]
test r9, r9
je 0x180034dd2
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, rbx
call r9
mov eax, dword [rsp + 0xb0]
add rsp, 0xa0
pop rbx
ret
Function at 0x180034ec0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1800ae4a8]
mov rbx, rcx
test rax, rax
jne 0x1800350d9
movups xmm0, xmmword [0x1800536b0]
xor ecx, ecx
cmp dword [0x1800adb58], 2
movups xmm1, xmmword [0x1800536c0]
movzx eax, word [0x180053708]
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x78], ax
movups xmm0, xmmword [0x1800536d0]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1800536f0]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x180053700]
movups xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [0x1800536e0]
movsd qword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x50], xmm1
jl 0x18003507c
movdqa xmm5, xmmword [0x18004e8e0]
lea rdx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18004e960]
movaps xmmword [rsp + 0x90], xmm6
movdqa xmm6, xmmword [str.7777]
movaps xmmword [rsp + 0x80], xmm7
movdqa xmm7, xmmword [0x180054940]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x28
jl 0x180034f80
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x2d
jge 0x1800350c0
movsxd rax, ecx
lea r8, [rsp + 0x20]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x37
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x36
xor word [r8 - 2], ax
cmp ecx, 0x2d
jl 0x180035090
mov rax, qword [0x1800ae1c8]
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x1800ae4a8], rax
mov rdx, qword [rbx]
test rdx, rdx
je 0x180035102
mov rcx, qword [0x1800ad248]
mov r9, qword [rdx + rcx*8]
test r9, r9
je 0x180035102
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, rbx
call r9
mov eax, dword [rsp + 0xb0]
add rsp, 0xa0
pop rbx
ret
Function at 0x180035120
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x280
xor r15d, r15d
mov rsi, rdx
mov qword [rcx], r15
mov rdi, rcx
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
cmp qword [rdx + 0x10], r15
jne 0x18003515d
mov rcx, rdx
call fcn.18004a2d0
mov rax, rdi
add rsp, 0x280
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x2a8], rbx
xor edx, edx
mov qword [rsp + 0x2b0], rbp
mov ecx, 2
mov qword [rsp + 0x2b8], r14
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rbp, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800352a2
xorps xmm0, xmm0
mov qword [rsp + 0x30], r15
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r15w
jne 0x1800351c0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.18002de60
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x1800351e6
mov rax, qword [rsi]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rsi + 0x10]
jne 0x180035228
test rdx, rdx
je 0x180035224
sub r8, rax
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x180035228
add rax, 2
sub rdx, 1
jne 0x180035210
mov bl, 1
jmp 0x18003522a
xor bl, bl
cmp r10, 7
jbe 0x180035265
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x18003525d
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800352eb
mov rcx, r9
call fcn.18004b988
test bl, bl
je 0x18003528d
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x180035280
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x18003528d
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.18002df90
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800351a1
lea r14, [rsp + 0x298]
mov rcx, rbp
mov rbx, qword [r14]
mov qword [r14], r15
call qword [0x1800ae0b8]
mov rcx, rsi
mov qword [r14], rbx
call fcn.18004a2d0
mov rbp, qword [rsp + 0x2b0]
mov rax, rdi
mov rbx, qword [rsp + 0x2a8]
mov r14, qword [rsp + 0x2b8]
add rsp, 0x280
pop r15
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180042860
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1800ae4b8]
mov rbx, rcx
mov qword [rsp + 0x80], rdi
mov rdi, rdx
test rax, rax
jne 0x180042ac0
movups xmm0, xmmword [0x180053758]
movups xmm3, xmmword [str.eRLxYOSOm__p]
pextrw eax, xmm0, 7
movups xmmword [rsp + 0x38], xmm3
movups xmmword [rsp + 0x48], xmm0
test ax, ax
je 0x180042aa7
xor r8d, r8d
cmp dword [0x1800adb58], 2
jl 0x180042a68
movdqa xmm4, xmmword [0x18004e960]
movdqa xmm2, xmmword [0x18004e8e0]
movdqa xmm5, xmmword [str.7777]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x180054940]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x18004e8f0]
paddw xmm2, xmm6
xorps xmm2, xmm1
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
movdqa xmm1, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x38], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x18004e900]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm6
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
movq qword [rsp + 0x40], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x18004e910]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm6
xorps xmm2, xmm0
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
movq qword [rsp + 0x48], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x50]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm6
movaps xmm6, xmmword [rsp + 0x60]
xorps xmm2, xmm0
movq qword [rsp + 0x50], xmm2
jmp 0x180042aa7
lea r9, [rsp + 0x38]
nop dword [rax]
mov eax, 0x29e4129f
lea r9, [r9 + 2]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movzx eax, ax
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x36
xor word [r9 - 2], ax
cmp r8d, 0x10
jl 0x180042a70
mov rax, qword [0x1800ae1c8]
lea r8, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call rax
mov qword [0x1800ae4b8], rax
movups xmm0, xmmword [rdi]
mov r9, qword [rbx]
movsd xmm1, qword [rdi + 0x10]
mov rdi, qword [rsp + 0x80]
movsd qword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x180042b01
mov rcx, qword [0x1800ad248]
mov r9, qword [r9 + rcx*8]
test r9, r9
je 0x180042b01
lea r8, [rsp + 0x20]
mov rdx, rax
mov rcx, rbx
call r9
add rsp, 0x70
pop rbx
ret
Function at 0x140001000
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rcx
xor r9d, r9d
mov qword [rax - 0x18], rdi
mov dword [rax - 0x20], edi
mov qword [rax - 0x28], rdi
mov dword [rax - 0x30], 3
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov qword [rax + 8], rdi
mov dword [rax - 0x38], edi
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea r11, [rsp + 0x60]
lea r9, [0x1400b80a0]
lea r8d, [rdi + 1]
lea rcx, [0x1400b8170]
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rdx, str.rootWMI
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbx]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400010d6
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rbx]
lea rax, [rbx + 8]
lea rdx, str.BIOSCtrl
mov r10, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [r10 + 0x30]
test eax, eax
mov rcx, qword [rsp + 0x60]
js 0x1400010c3
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140001fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140002142
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002142
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140002142
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140002086
nop
cmp rdi, r11
jae 0x140002142
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140002070
cmp rdi, r11
jae 0x140002142
movzx eax, word [rdi]
test ax, ax
je 0x140002142
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x1400020bc
mov edx, ebx
mov rcx, rsi
call fcn.140001970
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1400020d9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14008f260
test eax, eax
je 0x140002118
cmp eax, 0xc
je 0x140002112
cmp eax, 0x16
je 0x14000210c
cmp eax, 0x22
je 0x14000210c
cmp eax, 0x50
je 0x140002118
call fcn.140063294
int3
call fcn.140063294
int3
call fcn.14006324c
int3
test ebx, ebx
js 0x140002137
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140002137
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140002144
mov ecx, 0x80070057
call fcn.140001950
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140002160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002193
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x1400021d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400021d2
cmp rbx, r11
jae 0x1400021d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400021c0
cmp rbx, r11
jb 0x1400021db
xor eax, eax
jmp 0x1400021e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015280
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0x48
test rcx, rcx
mov rbp, r8
mov rdi, rdx
jne 0x1400152ba
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400152b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x48
pop rdi
pop rbp
ret
test r8, r8
je 0x140015292
xor eax, eax
mov rdx, rcx
mov qword [rsp + 0x40], rsi
mov qword [r8], rax
mov qword [r8 + 8], rax
xor esi, esi
mov qword [r8 + 0x10], rax
lea rax, [rsp + 0x38]
lea r9d, [rsi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001540e
mov rdx, qword [rdi]
mov qword [rsp + 0x68], rbx
mov rbx, qword [rsp + 0x38]
lea r9, [rsp + 0x60]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140015338
test rbx, rbx
je 0x14001534d
jmp 0x140015344
cmp dword [rsp + 0x60], 4
je 0x14001537f
test rbx, rbx
je 0x14001534d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001536c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x78]
mov word [rbp], SafeArrayUnaccessData
mov rdx, qword [rdi]
mov qword [rsp + 0x28], rcx
lea rax, [rbp + 8]
lea r9, [rsp + 0x30]
mov rcx, rbx
xor r8d, r8d
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400153c7
cmp dword [rsp + 0x30], 4
mov eax, esi
mov ecx, SafeArrayGetDim
cmovne eax, ecx
test eax, eax
sete sil
test rbx, rbx
je 0x1400153db
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400153fb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x48
pop rdi
pop rbp
ret
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001542d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x140015740
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor edi, edi
sub r8d, 3
mov r10, rdx
mov rsi, rcx
je 0x140015802
sub r8d, 1
je 0x1400157da
sub r8d, 7
je 0x1400157b7
cmp r8d, 8
jne 0x14001587b
cmp qword [rcx], rdi
mov ebx, dword [r9]
mov qword [rsp + 0x30], rdi
je 0x14001587b
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.140015590
test eax, eax
js 0x14001587b
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
lea r9d, [rdi + 4]
jmp 0x14001584f
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
movzx eax, word [r9]
mov word [rsp + 0x38], VariantTimeToDosDateTime
mov word [rsp + 0x40], ax
jmp 0x140015821
movss xmm0, dword [r9]
xor eax, eax
cmp qword [rcx], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
movss dword [rsp + 0x40], xmm0
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], 4
jmp 0x140015824
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov eax, dword [r9]
mov word [rsp + 0x38], 3
mov dword [rsp + 0x40], eax
cmp qword [rcx], rdi
mov qword [rsp + 0x30], rdi
je 0x14001587b
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.140015590
test eax, eax
js 0x14001587b
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rax, [rsp + 0x38]
mov r9d, 3
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret