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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49c588
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x45f839
inc eax
mov dword [esi + 0x10], eax
jmp 0x45f94c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45f84d
mov eax, 0xffffffc7
jmp 0x45f94e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45f85e
cmp dword [esi + 8], eax
jne 0x45f84d
cmp dword [esi + 8], eax
jne 0x45f877
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x45f877
mov eax, 0xffffffc7
jmp 0x45f94e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x45f88b
push eax
mov ecx, ebx
call fcn.0045f030
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00424df0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45f8bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00424e10
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0045e7a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x45f8ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4cc6b8
call fcn.00424ff0
mov eax, dword [esp + 0x38]
jmp 0x45f94e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0045f660
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x45f933
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0045f680
mov esi, eax
test esi, esi
jne 0x45f963
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0045f660
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x45f905
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4cc6b8
call fcn.00424ff0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4cc6b8
call fcn.00424ff0
mov eax, esi
jmp 0x45f94e

Function at 0x462c50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x462cb0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x462cb0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x462cb0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x462cb0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x462cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x468c30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cbf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00494a4b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004685d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00494979
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049123d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049123d
push 1
push 0
push 0
mov ecx, esi
call fcn.004911e5
push 1
push 0
push 1
mov ecx, esi
call fcn.004911e5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00494abd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x468db0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00494a4b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004685d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00494979
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x468e74
cmp dword [esp + 0x40], 1
jne 0x468e72
cmp ecx, eax
jge 0x468e74
mov eax, ecx
cmp eax, 0xc8
jge 0x468e80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00468c30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00494abd
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x469600
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048f65d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00494cf3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00496252
test eax, eax
je 0x46971c
mov ecx, dword [esp + 0x3c]
call fcn.00494d20
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4696e0
push edi
mov ecx, esi
call fcn.00492388
mov ecx, esi
call fcn.00469880
cmp dword [esp + 0x38], 1
jne 0x469715
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004924c3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46c140
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46c173
push esi
call fcn.0046f230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46c16c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46c1f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46c1e2
mov eax, dword [esi + 8]
test eax, eax
je 0x46c197
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46c1de
cmp eax, 2
je 0x46c1e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46c18a
cmp eax, 3
je 0x46c1bd
cmp eax, 1
jne 0x46c18a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46c18a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46c18a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046c220
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46c208
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046c220
add esp, 4
pop esi
ret

Function at 0x479fd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47a073
test eax, eax
jbe 0x47a073
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47a073
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47a01e
xor esi, esi
jmp 0x47a024
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47a04f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004257f0
add esi, eax
push esi
mov ebx, esi
call fcn.004257f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47a030
pop ebp
test edi, edi
pop edi
jne 0x47a073
test ebx, ebx
je 0x47a073
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047ec40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47a415
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47a52d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47a52d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048faaf
mov esi, eax
test esi, esi
je 0x47a52d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47a52d
mov ecx, esi
call fcn.0047a2b0
cmp edi, eax
jge 0x47a52d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47a4b3
mov dword [esp + 0x34], 1
jmp 0x47a50e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47a52d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00477880
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x490453
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49048b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e507
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e4df
jmp 0x490497
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x491b45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x491b87
call fcn.0049765c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x491b87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491b7e
xor eax, eax
jmp 0x491b8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00491b95
pop edi
pop esi
pop ebx
ret 4
Function at 0x497b8c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x497bba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497bd8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497af2
jmp 0x497bd8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497bd8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497af2
test edi, edi
mov eax, edi
jne 0x497bc2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004018d4
push 0x404004
push section..data
call fcn.004018ba
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401123
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402050
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [str.CPLUtl64.exe__x]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x164]
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [0x40bc84]
mov dword [esp + 0x18], eax
mov eax, dword [0x40bc80]
mov edx, dword [0x40bc7c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dword [esp + 0x64], edx
mov dl, byte [0x40bc88]
not ecx
mov byte [esp + 0x70], dl
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x44
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40211a
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 0x154
ret
Function at 0x402520
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 0x202
push esi
jne 0x402564
mov eax, dword [0x40bbb4]
test eax, eax
je 0x4025e5
push 5
push str.RTLCPL.EXE
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x40cbc4]
test eax, eax
je 0x4025e5
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
add esp, 8
ret
cmp eax, 0x205
jne 0x4025e5
call fcn.004025f0
mov esi, eax
test esi, esi
je 0x4025e5
mov eax, dword [0x40cbbc]
push 0
push 1
push 0x212
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x40cbbc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x40cbbc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push 0
push ecx
push edx
push 0x28
push esi
mov dword [0x40cbc8], 1
mov dword [0x40e220], 0
mov dword [0x40e228], 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x403090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
mov byte [esp + 3], 1
cmp eax, 7
jne 0x40319e
mov eax, dword [0x40cbdc]
test eax, eax
jne 0x4030b3
call fcn.00402f50
mov ax, word [0x40cbce]
mov ecx, dword [0x40cbcc]
cmp ax, 0x104d
jne 0x4030e9
cmp cx, 0x8176
je 0x4030d3
cmp cx, 0x818b
jne 0x4030e9
cmp word [0x40cbd0], 0x8086
jne 0x4030e9
cmp word [0x40cbd2], 0x24c5
je 0x40310e
cmp word [0x40e41a], 0x10
jne 0x403113
cmp ax, 0x104d
jne 0x403113
cmp cx, 0x81a0
je 0x40310e
cmp cx, 0x81a9
je 0x40310e
cmp cx, 0x81df
jne 0x403113
mov byte [esp + 3], 0
lea eax, [esp + 0xc]
push eax
call fcn.00404950
add esp, 4
test eax, eax
je 0x403194
lea ecx, [esp + 0x1c]
push ecx
push str.SoftwareAvanceAC97_AudioALSMTray
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403179
lea edx, [esp + 4]
lea eax, [esp + 3]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.ShowIcon
push edx
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 3]
test al, al
je 0x40319e
push 1
call fcn.00402500
add esp, 4
mov eax, 1
add esp, 0x14
ret
push 0
call fcn.00402500
add esp, 4
mov eax, 1
add esp, 0x14
ret
Function at 0x403510
Capabilities:
Set registry value

Disassembly:
sub esp, 0x34
push esi
push edi
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
lea edi, [esp + 0x10]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push eax
xor edi, edi
push ecx
push 0x80000001
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4035c0
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x2b
push str.Realtek_HD_Front_Pink_Jack
push 1
push edi
push str.Record
push edx
call esi
mov eax, dword [esp + 8]
push 0x2b
push str.Realtek_HD_Audio_rear_output
push 1
push edi
push str.Playback
push eax
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push edi
push str.PreferredOnly
push edx
mov dword [esp + 0x24], edi
call esi
mov dword [esp + 0xc], 2
call fcn.00403750
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov dword [0x40cbb0], 1
mov eax, 1
pop esi
add esp, 0x34
ret
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret

Function at 0x4035d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x34
push esi
push edi
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
lea edi, [esp + 0x10]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push eax
xor edi, edi
push ecx
push 0x80000001
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403680
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x2b
push str.Back_Line_in_Mic
push 1
push edi
push str.Record
push edx
call esi
mov eax, dword [esp + 8]
push 0x2b
push str.Realtek_HD_Audio_rear_output
push 1
push edi
push str.Playback
push eax
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push edi
push str.PreferredOnly
push edx
mov dword [esp + 0x24], edi
call esi
mov dword [esp + 0xc], 2
call fcn.00403750
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov dword [0x40cbb0], 1
mov eax, 1
pop esi
add esp, 0x34
ret
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret
Function at 0x403690
Capabilities:
Set registry value

Disassembly:
sub esp, 0x34
push esi
push edi
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
lea edi, [esp + 0x10]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push eax
xor edi, edi
push ecx
push 0x80000001
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403740
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x2b
push str.Realtek_HD_Audio_Rear_Input
push 1
push edi
push str.Record
push edx
call esi
mov eax, dword [esp + 8]
push 0x2b
push str.Realtek_HD_Audio_rear_output
push 1
push edi
push str.Playback
push eax
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push edi
push str.PreferredOnly
push edx
mov dword [esp + 0x24], edi
call esi
mov dword [esp + 0xc], 2
call fcn.00403750
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov dword [0x40cbb0], 1
mov eax, 1
pop esi
add esp, 0x34
ret
pop edi
xor eax, eax
pop esi
add esp, 0x34
ret

Function at 0x403750
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x88
push esi
push edi
mov ecx, 0x12
mov esi, str.SYSTEMCurrentControlSetControlMediaResourcesSetupPreferredAudioDevices
lea edi, [esp + 0x44]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
lea edi, [esp + 0x18]
push eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
mov edi, 4
push ecx
push 0x80000002
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403821
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.SetupPreferredAudioDevicesCount
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403821
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edi
push eax
push edi
push 0
push str.SetupPreferredAudioDevicesCount
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x88
ret
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret