joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9dc0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x54be56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x1866b40]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00539ccc
mov edx, dword [0x1866b40]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4b9e1a
mov dword [esp + 0x1c], ebx
jmp 0x4b9e21
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.0053be31
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.00537982
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4b9e72
mov dword [esp + 0x14], ebx
jmp 0x4b9e79
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4b9e94
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4b9e8e
cmp eax, 2
jne 0x4b9e94
mov dword [esp + 0x18], edi
jmp 0x4b9e98
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4b9ea6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00539301
mov edi, eax
cmp edi, ebx
jne 0x4b9eb6
xor eax, eax
jmp 0x4b9eb9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4b9ee1
mov ecx, esi
call fcn.0053be31
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4b9efd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b9f1c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4b9f1c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.00537895
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.00537895
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4e1820
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4e184c
mov ecx, dword [esp + 8]
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [edx + 0x1831974]
lea edx, [eax*8]
xor ebx, edx
xor eax, ebx
inc ecx
dec esi
jne 0x4e1830
pop ebx
pop esi
ret
Function at 0x50ea30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x18c02b8]
xor edx, edx
cmp eax, edx
jne 0x50ea56
xor eax, eax
mov byte [eax + 0x18c01b8], al
inc eax
cmp eax, 0x100
jl 0x50ea3e
mov dword [0x18c02b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x18c01b8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x50eae7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x50eaba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x50ea88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x50eb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x50ebb3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x50eb9a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x515560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c2be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00515e80
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x183526c
call fcn.005375d6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5155f3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005375d6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5155ec
push 0
mov ecx, eax
call fcn.0050c660
mov dword [esi + 0xc], eax
jmp 0x5155f5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5155f5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x539ccc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x539d04
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.00537cf0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00537cc8
jmp 0x539d10
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x53b540
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 0x53b582
call fcn.00541e4c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53b582
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53b579
xor eax, eax
jmp 0x53b58a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0053b590
pop edi
pop esi
pop ebx
ret 4

Function at 0x54237c
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 0x5423aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5423c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005422e2
jmp 0x5423c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5423c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005422e2
test edi, edi
mov eax, edi
jne 0x5423b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x544c8a
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x544cb2
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x544cc3
push 2
call edi
test ax, ax
jge 0x544cc3
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00539301
cmp dword [esi + 0x30], ebx
jne 0x544d9d
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00539301
cmp eax, dword [esp + 0x34]
jne 0x544d9d
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x544d39
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x544d7e
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x544d9d
cmp eax, 0x205
je 0x544d9d
cmp eax, 0x201
je 0x544d9d
cmp eax, 0x204
je 0x544d9d
cmp eax, ebx
jne 0x544d64
cmp dword [esp + 0x1c], 0x1b
je 0x544d9d
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x18d1e0c]
jbe 0x544d93
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x544cf6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x404e81
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x406408
call fcn.004051d8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x408750
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x404c39
cmp eax, esi
jne 0x404c2c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x404c3c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404c13
xor esi, esi
inc esi
mov eax, dword [0x40874c]
cmp eax, esi
jne 0x404c4f
push 0x1f
call fcn.0051e000
pop ecx
jmp 0x404c7e
mov eax, dword [0x40874c]
test eax, eax
jne 0x404c78
mov dword [0x40874c], esi
push 0x4061c4
push 0x4061b8
call fcn.00404b82
pop ecx
pop ecx
test eax, eax
je 0x404c7e
jmp 0x404da6
mov dword [0x408344], esi
mov eax, dword [0x40874c]
cmp eax, esi
jne 0x404ca2
push 0x4061b4
push 0x40619c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40874c], 2
test ebx, ebx
jne 0x404cae
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x408754], 0
je 0x404cd2
push 0x408754
call fcn.004050c6
pop ecx
test eax, eax
je 0x404cd2
push 0
push 2
push 0
call dword [0x408754]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x404d2e
test al, al
je 0x404cec
cmp dword [ebp - 0x1c], 0
jne 0x404d2e
mov al, byte [esi]
test al, al
je 0x404cfc
cmp al, 0x20
ja 0x404cfc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x404cec
test byte [ebp - 0x3c], 1
je 0x404d08
movzx eax, word [ebp - 0x38]
jmp 0x404d0b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x408340], eax
cmp dword [0x408334], 0
jne 0x404d82
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x404d3d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x404d50
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x404cd9
cmp dword [0x408344], 0
jne 0x404d91
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x408340]
jmp 0x404db2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040521d
ret
call fcn.004053a0
jmp 0x404bd9

Function at 0x405050
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x405063
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40505f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x48c873
Capabilities:
Query environment variable

Disassembly:
jmp 0x58ccfc
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x58cd10
xor edi, edi
jmp 0x58cd54
push ebx
push esi
call fcn.0058cbf6
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.0048e74a
mov edi, eax
add esp, 0x14
test edi, edi
je 0x58cd41
push ebx
push esi
push edi
call fcn.0048e993
add esp, 0xc
push 2
push 0
call fcn.0048e0d3
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x48e24a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x5a46a0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5eee90], 1
jge 0x5a470f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x5a46e5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x5a46e5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5a46c2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5a46fb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x5a4702
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x5a47ff
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x5a47d0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x5a47c5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x5a47b9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x5a47c0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x5a47ff
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x5a47fa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5a47e3
mov eax, dword [ebx + 8]
jmp 0x5a47ff
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x5a47f1
xor eax, eax
jmp 0x5a47ff
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5a472f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001100
lea ebx, [ebx]
cmp esi, eax
jae 0x10001104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100010f0
cmp esi, eax
jb 0x1000110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10001290
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x230
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftMultimediaAudioWaveFormats
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100012d4
xor eax, eax
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100105af
add esp, 0x230
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
mov ebp, 0x12
mov ebx, 0x200
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x10001389
mov eax, 1
cmp word [esp + 0x28], ax
jne 0x1000134a
cmp word [esp + 0x2a], 2
jne 0x1000134a
cmp dword [esp + 0x2c], 0xac44
jne 0x1000134a
cmp word [esp + 0x36], 0x10
je 0x10001385
lea ecx, [esp + 0x1c]
push ecx
add esi, eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
push eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebx
call edi
test eax, eax
je 0x10001324
jmp 0x10001389
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
cmp dword [esp + 0x24], 0
je 0x100013fc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x18]
push edx
push str.SoftwareMicrosoftMultimediaAudio
push 0x80000001
call ebx
test eax, eax
jne 0x100013fc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebp, 1
push ebp
push 0
push str.DefaultFormat
push edx
mov dword [esp + 0x2c], ebp
call edi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
push str..DEFAULTSoftwareMicrosoftMultimediaAudio
push 0x80000003
call ebx
test eax, eax
je 0x10001400
xor eax, eax
jmp 0x10001426
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
push ebp
push 0
push str.DefaultFormat
push ecx
mov dword [esp + 0x2c], ebp
call edi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, ebp
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100105af
add esp, 0x230
ret
Function at 0x100016d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf023f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001743
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001738
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100105af
add esp, 0x110
ret

Function at 0x10001760
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf013f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100017d3
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x100017c8
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100105af
add esp, 0x110
ret

Function at 0x100017f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf023f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000001
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001863
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x10001858
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100105af
add esp, 0x110
ret
Function at 0x10001880
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1002ba4c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf013f
xor esi, esi
push esi
push str.SoftwareRealtek
push 0x80000001
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100018f3
mov eax, dword [esp + 4]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x100018e8
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100105af
add esp, 0x110
ret