joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d11a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
push ebx
mov esi, 0x459594
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d17a
cmp dword [ebp - 4], eax
jbe 0x40d17a
push dword [ebp - 4]
call fcn.00432316
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.0042ec70
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, edi
call fcn.00403509
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d18b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d1fb
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40d1fb
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.0040483c
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.004048c3
mov al, 1
jmp 0x40d1fd
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d202
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d252
push esi
lea ecx, [ebp + 0xc]
call fcn.00402020
push eax
lea ecx, [ebp + 0xc]
call fcn.00402028
push eax
push dword [ebp + 0x24]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x40d254
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00402091
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d263
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d2a1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40d2a3
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40d2a7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d2ff
push esi
lea ecx, [ebp + 0xc]
call fcn.00402020
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00404c42
push eax
push 1
push 0
push str.pth_unenc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete bl
jmp 0x40d301
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.004034ff
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d352
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40d354
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40d358
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d396
push esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40d398
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40d39c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d3da
push esi
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
jmp 0x40d3dc
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40d444
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d460
xor al, al
jmp 0x40d472
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret
Function at 0x40d476
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.0044ab00
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.0042ec70
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x3fff
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4a0]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d554
test eax, eax
je 0x40d554
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x298]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40d54e
push 0x459bd0
lea ecx, [ebp - 0x34]
call fcn.00403509
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.00409450
pop ecx
push eax
mov ecx, 0x468058
call fcn.004064c2
lea ecx, [ebp - 0x68]
call fcn.004034ff
lea ecx, [ebp - 0x34]
call fcn.004034ff
inc esi
cmp esi, dword [ebp - 4]
jb 0x40d4ee
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d696
xor esi, esi
test eax, eax
je 0x40d696
xor eax, eax
mov byte [ebp - 0x5c], 0
lea edi, [ebp - 0x5b]
mov dword [ebp - 0xc], 0x2710
stosd dword es:[edi], eax
mov dword [ebp - 8], 0x3fff
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xabb0], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2bb0]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xabb0]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40d68c
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.00437a48
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x459bd0
call fcn.00403509
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.00409450
pop ecx
push eax
mov ecx, 0x468070
call fcn.004064c2
lea ecx, [ebp - 0x34]
call fcn.004034ff
lea ecx, [ebp - 0x80]
call fcn.004034ff
push 0x4595b0
lea ecx, [ebp - 0x34]
call fcn.00402178
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.00402a6d
pop ecx
push eax
mov ecx, 0x468088
call fcn.0040206e
lea ecx, [ebp - 0x80]
call fcn.00402091
lea ecx, [ebp - 0x34]
call fcn.00402091
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.00402178
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040219f
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00406ae8
pop ecx
push eax
mov ecx, 0x468120
call fcn.0040206e
lea ecx, [ebp - 0x80]
call fcn.00402091
lea ecx, [ebp - 0x34]
call fcn.00402091
lea ecx, [ebp - 0x98]
call fcn.00402091
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40d569
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e0ed
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
push edi
push ecx
mov dword [ebp - 4], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40e16d
cmp word [esi + 8], 2
jne 0x40e14f
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40e14f
mov edi, dword [esi + 0xc]
jmp 0x40e149
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0040e084
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x40e168
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x40e125
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004356b3
add esp, 0x10
xor eax, eax
jmp 0x40e18b
push 8
pop eax
jmp 0x40e18b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x40e189
sub eax, 1
je 0x40e19b
sub eax, 1
je 0x40e194
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x40e18b
mov eax, 0x2afa
jmp 0x40e18b
Function at 0x40e783
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4696cc], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40e33b
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40e5bb
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040e2fd
jne 0x40e8e5
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e8db
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00437614
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0043766e
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x40e842
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e83e
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x40e89c
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00437614
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.0043766e
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40e8d8
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e898
push esi
call ebx
mov esi, edi
test esi, esi
je 0x40e8d8
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x40e8b9
inc ebx
cmp ebx, 3
jl 0x40e89e
jmp 0x40e8c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x40e8d8
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x4649d8], eax
add edi, 8
cmp edi, 0x18
jl 0x40e8c6
pop edi
pop esi
pop ebx
mov dword [0x4696cc], 1
mov eax, dword [0x4649d8]
mov esp, ebp
pop ebp
ret
Function at 0x410870
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
push str._sysinfo.txt
push str.temp
call fcn.004325a2
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403509
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407d1f
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ff
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x45f0c8
lea ecx, [ebp - 0x30]
call fcn.00409474
pop ecx
mov ecx, eax
call fcn.00404c42
push eax
push str.dxdiag
push 0x4595bc
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.004034ff
lea ecx, [ebp - 0x18]
call fcn.004021c9
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00404c42
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.004149e0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00406674
test al, al
je 0x410917
cmp esi, 0x4b0
jl 0x4108e8
lea ecx, [ebp - 0x18]
call fcn.00406674
test al, al
jne 0x41099f
lea ecx, [ebp - 0x48]
call fcn.00404c42
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.0040153a
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040170e
test al, al
je 0x410994
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.004047c1
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00404779
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.004018e7
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0xc8]
call fcn.00401c4f
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.00401d0d
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp - 0x48]
call fcn.004034ff
lea ecx, [ebp + 8]
call fcn.00402091
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4110ee
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x84]
push ebx
push esi
push edi
push eax
push str._nF2
call fcn.00402178
push eax
push str.Temp
call fcn.004325ad
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00402a6d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00404779
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00402091
lea ecx, [ebp - 0x84]
call fcn.00402091
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00402028
push eax
lea ecx, [ebp - 0x138]
call fcn.0040aa8b
lea ecx, [ebp - 0x138]
call fcn.0041132b
test al, al
je 0x41121f
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.0041133b
lea ecx, [ebp - 0x138]
call fcn.0040aa3c
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
call fcn.00402028
movaps xmm0, xmmword [0x45fab0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
mov esi, 0x459594
mov edi, 0x4681d8
setne bl
cmp dword [ebp - 0x1c], 0
je 0x411209
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402178
push 0x70
mov ecx, edi
call fcn.004018e7
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402028
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x41123a
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402178
push 0x6e
mov ecx, edi
jmp 0x411235
sub esp, 0x18
mov ecx, esp
push 0x459594
call fcn.00402178
push 0x6f
mov ecx, 0x4681d8
call fcn.004018e7
lea ecx, [ebp - 0x138]
call fcn.0040a5f9
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp + 8]
call fcn.00402091
lea ecx, [ebp + 0x20]
call fcn.00402091
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4131c6
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404c42
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4131fe
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41321c
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41322d
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x11
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf003f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404c42
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x413268
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4132b9
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x413289
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x4132b9
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x413289
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 3
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4132ca
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x40
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404c42
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x413302
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x413320
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413331
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x40
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404c42
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x413369
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x413387
lea eax, [ebp - 0x1c]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413398
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
mov byte [ebp - 1], cl
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 2
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00404c42
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4133d1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x413415
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0x4133ee
sub eax, 1
je 0x4133ea
sub eax, 1
jne 0x4133f1
push 3
jmp 0x4133f0
push 2
jmp 0x4133f0
push 4
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41343a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408fc5
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00404c42
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4134b9
mov esi, 0x468510
mov edx, 0x459594
mov ecx, esi
call fcn.00403f83
test al, al
je 0x4134a8
sub esp, 0x18
cmp byte [0x465caf], 0
mov ecx, esp
push 0x45f180
je 0x413492
call fcn.00402178
mov ecx, 0x468528
jmp 0x41349c
call fcn.00402178
mov ecx, 0x468140
push 0xa1
call fcn.004018e7
jmp 0x4134c8
lea ecx, [ebp - 0x18]
call fcn.00404c42
mov edx, eax
mov ecx, esi
call fcn.00414a52
lea ecx, [ebp - 0x18]
call fcn.00404c42
mov ecx, eax
call fcn.004134d5
lea ecx, [ebp - 0x18]
call fcn.004034ff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41352a
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0x468510
mov bl, dl
call fcn.00402077
test bl, bl
je 0x413542
pop ebx
jmp fcn.0041343a
pop ebx
ret
Function at 0x41370e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
push ecx
lea ecx, [ebp + 8]
call fcn.00413946
cmp eax, 0xffffffff
jne 0x41374f
lea ecx, [ebp + 8]
call fcn.00404c42
push eax
mov dl, 0x30
lea ecx, [ebp - 0x18]
call fcn.0040900f
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.004064d4
lea ecx, [ebp - 0x18]
call fcn.004034ff
mov ecx, esi
call fcn.00402020
lea ecx, [ebp + 8]
test eax, eax
je 0x41382e
call fcn.00404c42
mov edx, eax
mov ecx, esi
call fcn.00414a52
push str._alias_audio
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.00414225
push eax
lea eax, [ebp + 8]
mov edx, str.open__
push str.__type
push eax
lea ecx, [ebp - 0x60]
call fcn.00409474
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407d1f
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004093b6
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00407d1f
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004034ff
lea ecx, [ebp - 0x48]
call fcn.004034ff
lea ecx, [ebp - 0x60]
call fcn.004034ff
lea ecx, [ebp - 0x78]
call fcn.004034ff
xor ebx, ebx
lea ecx, [ebp - 0x30]
push ebx
push ebx
push ebx
call fcn.00404c42
push eax
call dword [sym.imp.WINMM.dll_mciSendStringW]
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
push ebx
push ebx
push ebx
push str.play_audio
call esi
sub esp, 0x18
mov ecx, esp
push 0x459594
call fcn.00402178
push 0xa9
mov ecx, 0x468528
call fcn.004018e7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4679ec], eax
jmp 0x4138f5
call fcn.00404c42
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41376f
sub esp, 0x18
mov ecx, esp
push 0x459594
call fcn.00402178
push 0xa8
mov ecx, 0x468528
call fcn.004018e7
jmp 0x413937
cmp byte [0x465cae], bl
je 0x41387d
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0x465cae], bl
cmp byte [0x465cad], bl
je 0x413895
push ebx
push ebx
push ebx
push str.resume_audio
call esi
mov byte [0x465cad], bl
push ebx
push 0x14
lea eax, [ebp - 0x14]
push eax
push str.status_audio_mode
call esi
lea edx, [ebp - 0x14]
mov edi, str.stopped
mov ecx, ebx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x4138c8
inc ecx
cmp ecx, 8
jne 0x4138ad
push dword [0x4679ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x4679ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4138f0
push dword [0x4679ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x413824
mov eax, dword [0x4679ec]
test eax, eax
jne 0x413865
push ebx
push ebx
push ebx
push str.stop_audio
call esi
push ebx
push ebx
push ebx
push str.close_audio
call esi
sub esp, 0x18
mov ecx, esp
push 0x459594
call fcn.00402178
push 0xaa
mov ecx, 0x468528
call fcn.004018e7
lea ecx, [ebp - 0x30]
call fcn.004034ff
lea ecx, [ebp + 8]
call fcn.004034ff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret