joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6339e9f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x6343f2a0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x6339d19b
je 0x6339d1ee
cmp ebx, 0x20
jbe 0x6339d1f4
cmp ebx, 0x40
jbe 0x6339d23a
jmp 0x6339d2db
test ebx, ebx
je 0x6339d1e4
add eax, 0x10
test ax, 0xff0
je 0x6339d1d0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x633ceac0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x633cebc0]
jmp 0x6339d1b8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x6339d1b8
pxor xmm1, xmmword [0x6343f2b0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x6343f2b0]
pxor xmm2, xmmword [0x6343f2c0]
pxor xmm3, xmmword [0x6343f2d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x6343f2b0]
pxor xmm2, xmmword [0x6343f2c0]
pxor xmm3, xmmword [0x6343f2d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x6339d33a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x6343f004], 0
je 0x6339ea0a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x6339d160
jmp fcn.63348df0
Function at 0x633b03f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.633b1a10
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.633b1a10
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x633b0450
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x634456e4]
test esi, esi
jle 0x633b0570
mov eax, dword [0x634456e8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x633b0484
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x633b0507
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x633b0470
mov dword [esp], ebx
call fcn.633b0b90
mov edi, eax
test eax, eax
je 0x633b0597
mov eax, dword [0x634456e8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.633b0cd0
mov edx, dword [0x634456e8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x633b0577
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x633b0500
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x633b0510
add dword [0x634456e4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x634456e8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x633b0500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.633b03f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x633b048e
mov eax, dword [0x634456e8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.633b03f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.633b03f0
lea esi, [esi]
nop
Function at 0x633b0810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x634456f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x634456ec]
sub esp, 4
test ebx, ebx
je 0x633b0865
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x633b085e
test esi, esi
je 0x633b085e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x633b0840
mov dword [esp], 0x634456f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x633b0b90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x63340000], 0x5a4d
jne 0x633b0bb5
mov ecx, dword [0x6334003c]
cmp dword [ecx + 0x63340000], 0x4550
lea edx, [ecx + 0x63340000]
je 0x633b0bc0
ret
cmp word [ecx + 0x63340018], 0x10b
jne 0x633b0bb5
push esi
movzx eax, word [ecx + 0x63340014]
push ebx
movzx esi, word [ecx + 0x63340006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x63340000
test esi, esi
je 0x633b0c08
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x633b0bfe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x633b0c0a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x633b0bf0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100034f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x100034ff
pop dword [ebp - 0x14]
mov eax, 0x9bb077af
sub eax, 0x8bb042b0
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3b970
push 0
mov eax, 0xc4c682ed
add eax, 0x4b3b5e6f
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4b0fc0d9
add ecx, 0xb4f0899a
mov esi, eax
mov edx, 0x7c6a6699
add edx, 0x93987b67
add edx, dword [ebp - 0x14]
mov ebx, 0xb0ca8a48
sub ebx, 0x4ed4b127
sub dword [ebp - 8], edi
mov edi, dword [edx]
add dword [ebp - 0xc], 0xd0afaf9a
xor edi, ebx
add dword [ebp - 0xc], 0x84415682
mov dword [esi], edi
add esi, 0x314846c5
add esi, 0xceb7b93f
add edx, 0x7a7632c
sub edx, 0x7a76328
loop 0x1000355e
add eax, 0xf94524b4
sub eax, 0xf9440815
mov ebx, eax
add eax, 0xb8d251c2
sub eax, 0xb8d251bd
mov ecx, 0xbb425386
sub ecx, 0xab425386
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10008880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov edx, dword [ebp + 0x3a8]
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x10008a43
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x10008977
jl 0x100088fe
cmp edi, 0x7fffffff
ja 0x10008977
cmp edx, 0xffffffff
jl 0x10008977
jg 0x1000890d
cmp edi, 0x80000000
jb 0x10008977
cmp edi, 0x400
jg 0x1000892d
push edi
call fcn.100034f0
add esp, 4
test al, al
je 0x1000892d
mov eax, edi
call fcn.1000bf00
mov ebx, esp
jmp 0x10008951
mov eax, edi
not eax
cmp eax, 8
jb 0x10008a91
lea eax, [edi + 8]
push eax
call fcn.100034f0
add esp, 4
test eax, eax
je 0x10008977
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x10008977
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x74]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x10008979
xor edi, edi
test edi, edi
je 0x10008a43
push 0x60
push 0
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
push 2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
call fcn.10003920
mov edi, eax
jmp 0x10008a48
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100089c8
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100089de
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x100089f6
mov edi, 0x8007000e
jmp 0x10008a36
push eax
lea ecx, [ebp - 0x6c]
call fcn.100033c0
cmp dword [ebp - 0x6c], 0
jne 0x10008a0c
mov edi, 0x8007000e
jmp 0x10008a36
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call fcn.1000aa30
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
add esp, 0x10
mov byte [eax + edi], 0
push dword [ebp + 0x3b0]
push dword [ebp - 0x6c]
call fcn.100086f0
mov edi, eax
test ebx, ebx
je 0x10008a48
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10008a48
mov edi, 0x8007000e
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x10008a58
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x10008a6f
nop dword [eax]
push esi
mov esi, dword [esi]
call fcn.100034f0
add esp, 4
test esi, esi
jne 0x10008a60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x39c]
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3
Function at 0x4014e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4014e9
xor ecx, ecx
jne 0x4014e9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401530
mov eax, dword [ebp - 0xc]
jmp 0x40158d
cmp dword [ebp - 4], 1
je 0x401543
cmp dword [ebp - 4], 2
je 0x401543
mov eax, 0xd
jmp 0x40158d
cmp dword [ebp + 0xc], 0
je 0x401581
cmp dword [ebp - 8], 0
je 0x401579
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x401570
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x401577
mov eax, 0xd
jmp 0x40158d
jmp 0x401581
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405b1d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c06c]
jne 0x405b27
repz ret
jmp fcn.00408d1c
Function at 0x4118f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a127
and dword [ebp - 4], 0
cmp dword [0x43e2e8], 0
mov ebx, eax
jne 0x4119a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411a52
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x411a52
push eax
call fcn.0040a0b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e2e8], eax
call esi
push eax
call fcn.0040a0b5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e2ec], eax
call esi
push eax
call fcn.0040a0b5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e2f0], eax
call esi
push eax
call fcn.0040a0b5
pop ecx
mov dword [0x43e2f8], eax
test eax, eax
je 0x4119a1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a0b5
pop ecx
mov dword [0x43e2f4], eax
mov eax, dword [0x43e2f4]
cmp eax, ebx
je 0x4119f9
cmp dword [0x43e2f8], ebx
je 0x4119f9
push eax
call fcn.0040a130
push dword [0x43e2f8]
mov esi, eax
call fcn.0040a130
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4119f9
test edi, edi
je 0x4119f9
call esi
test eax, eax
je 0x4119f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4119f0
test byte [ebp - 0xc], 1
jne 0x4119f9
or dword [ebp + 0x10], 0x200000
jmp 0x411a32
mov eax, dword [0x43e2ec]
cmp eax, ebx
je 0x411a32
push eax
call fcn.0040a130
pop ecx
test eax, eax
je 0x411a32
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411a32
mov eax, dword [0x43e2f0]
cmp eax, ebx
je 0x411a32
push eax
call fcn.0040a130
pop ecx
test eax, eax
je 0x411a32
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e2e8]
call fcn.0040a130
pop ecx
test eax, eax
je 0x411a52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411a54
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x41955e
mov eax, dword [ebp - 4]
push eax
push 0x42b034
push 0x5e
push 0x42b118
call fcn.00405550
add esp, 0x10
jmp 0x419637
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
jne 0x4195ad
mov edx, dword [ebp - 0x10]
add edx, 0x20
push edx
push 0x438bcc
push 0x17
push 0
push 0x438bbc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4195ad
mov eax, dword [ebp - 4]
push eax
push 0x42b0ec
push 0x65
push 0x42b1c0
call fcn.00405550
add esp, 0x10
jmp 0x419637
mov dword [ebp - 8], 0
jmp 0x4195bf
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
jge 0x4195df
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + edx*4 + 4], eax
jmp 0x4195b6
mov dword [ebp - 0xc], 0
jmp 0x4195f1
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 2
jge 0x419611
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 0x14], eax
jmp 0x4195e8
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x419220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov al, 1
jmp 0x419673
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20], 0
je 0x41965e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x42b240
call fcn.00405550
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x419e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00419520
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
call fcn.00419700
movzx eax, byte [ebp - 1]
test eax, eax
je 0x419e96
mov ecx, dword [ebp - 8]
add ecx, 0x5c
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x4197b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x41e2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43c06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0
push 0x44
call fcn.00408107
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x41e32a
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0041e820
mov dword [ebp - 0x2c], eax
jmp 0x41e331
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x430], eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x430]
call fcn.0041e9d0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
push str.m_pSensorManagerEvents__Initialize___08x___n
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWARERealtekAudio
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e3ae
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push str.InitSensorAPI_HRESULT_
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jl 0x41e3bb
mov eax, 1
jmp 0x41e3fd
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x430]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41e3e7
push 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x30], eax
jmp 0x41e3ee
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x430], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41ecd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWARERealtekRealtekEffectsAP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ed34
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.AutoRotationState
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.SensorIndex
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41ed40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push 0x11
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41edde
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Enable
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov dword [edx], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.LastOrientation
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x41edf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x11
push 0
push 0x431ba8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ee65
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.ConvertibleSlateMode
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x41ee70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x11
push 0
push str.SOFTWARELenovoMultiMode
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41eef7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.CameraAudio
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41eeea
xor edx, edx
cmp dword [ebp - 8], 0
sete dl
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret