joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb33733
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb337a3
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 0xb337a3
push dword [ebp + 0x18]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0x14]
call fcn.00b26cf2
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
push dword [ebp + 0xc]
call fcn.00b26d77
mov al, 1
jmp 0xb337a5
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xb337aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0xb337fa
push esi
lea ecx, [ebp + 0xc]
call fcn.00b2247c
push eax
lea ecx, [ebp + 0xc]
call fcn.00b21fab
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 0xb337fc
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00b21fd8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb3380b
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 0xb33849
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 0xb3384b
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0xb3384f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0xb338a1
push esi
lea ecx, [ebp + 0xc]
call fcn.00b2247c
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00b21f04
push eax
push 1
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 bl
jmp 0xb338a3
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00b21f09
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb338b2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0xb338f4
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 0xb338f6
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0xb338fa
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 0xb33938
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 0xb3393a
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0xb3393e
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 0xb3397c
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 0xb3397e
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0xb33a5e
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 0xb33a7a
xor al, al
jmp 0xb33a8c
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 0xb33a90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.00b77730
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.00b56f10
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 0xb33b6e
test eax, eax
je 0xb33b6e
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 0xb33b68
push 0xb87140
lea ecx, [ebp - 0x34]
call fcn.00b2417e
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.00b242fc
pop ecx
push eax
mov ecx, 0xb954b0
call fcn.00b2325d
lea ecx, [ebp - 0x68]
call fcn.00b21f09
lea ecx, [ebp - 0x34]
call fcn.00b21f09
inc esi
cmp esi, dword [ebp - 4]
jb 0xb33b08
mov eax, dword [ebp - 0x10]
test eax, eax
je 0xb33cb0
xor esi, esi
test eax, eax
je 0xb33cb0
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 0xb33ca6
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.00b61ed1
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0xb87140
call fcn.00b2417e
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.00b242fc
pop ecx
push eax
mov ecx, 0xb954c8
call fcn.00b2325d
lea ecx, [ebp - 0x34]
call fcn.00b21f09
lea ecx, [ebp - 0x80]
call fcn.00b21f09
push 0xb860d0
lea ecx, [ebp - 0x34]
call fcn.00b22093
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.00b252fd
pop ecx
push eax
mov ecx, 0xb954e0
call fcn.00b23376
lea ecx, [ebp - 0x80]
call fcn.00b21fd8
lea ecx, [ebp - 0x34]
call fcn.00b21fd8
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.00b22093
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.00b220b7
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00b22ea1
pop ecx
push eax
mov ecx, 0xb95578
call fcn.00b23376
lea ecx, [ebp - 0x80]
call fcn.00b21fd8
lea ecx, [ebp - 0x34]
call fcn.00b21fd8
lea ecx, [ebp - 0x98]
call fcn.00b21fd8
inc esi
cmp esi, dword [ebp - 0x10]
jb 0xb33b83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb3470f
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0xb3478d
cmp word [esi + 8], 2
jne 0xb3476f
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0xb3476f
mov edi, dword [esi + 0xc]
jmp 0xb34769
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00b346a8
mov dword [ebp], eax
test eax, eax
je 0xb34788
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0xb34749
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00b61a83
add esp, 0x10
xor eax, eax
jmp 0xb347ab
push 8
pop eax
jmp 0xb347ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0xb347a9
sub eax, 1
je 0xb347ba
sub eax, 1
je 0xb347b3
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x2afb
jmp 0xb347ab
mov eax, 0x2afa
jmp 0xb347ab

Function at 0xb34dc1
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0xb96b4c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0xb34945
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0xb34beb
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00b3490a
jne 0xb34f18
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0xb34f0e
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00b61a8e
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00b61ae8
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test esi, esi
je 0xb34e81
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0xb34e7d
push esi
call ebp
mov esi, edi
test esi, esi
jne 0xb34ed2
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00b61a8e
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00b61ae8
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0xb34f0a
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0xb34ece
push esi
call ebp
mov esi, edi
test esi, esi
je 0xb34f0a
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0xb34eef
inc ebx
cmp ebx, 3
jl 0xb34ed4
jmp 0xb34ef4
push esi
call ebp
mov esi, edi
test esi, esi
je 0xb34f0a
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0xb919f8], eax
add edi, 8
cmp edi, 0x18
jl 0xb34ef8
pop edi
pop esi
pop ebp
pop ebx
mov dword [0xb96b4c], 1
mov eax, dword [0xb919f8]
add esp, 0x22c
ret
Function at 0xb374d0
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.00b5c11f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00b2417e
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00b23014
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00b21f09
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0xb8c7b8
lea ecx, [ebp - 0x30]
call fcn.00b2b9b7
pop ecx
mov ecx, eax
call fcn.00b21f04
push eax
push str.dxdiag
push 0xb86118
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.00b21f09
lea ecx, [ebp - 0x18]
call fcn.00b220df
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00b21f04
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00b3c516
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00b26b63
test al, al
je 0xb37577
cmp esi, 0x4b0
jl 0xb37548
lea ecx, [ebp - 0x18]
call fcn.00b26b63
test al, al
jne 0xb37607
lea ecx, [ebp - 0x48]
call fcn.00b21f04
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.00b246f7
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00b248c8
test al, al
je 0xb375fc
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
push 0xb94ee0
call fcn.00b22f31
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00b22f10
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.00b24aa1
lea ecx, [ebp - 0x30]
call fcn.00b21fd8
lea ecx, [ebp - 0xc8]
call fcn.00b24e26
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.00b24ee2
lea ecx, [ebp - 0x18]
call fcn.00b21fd8
lea ecx, [ebp - 0x48]
call fcn.00b21f09
lea ecx, [ebp + 8]
call fcn.00b21fd8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb37d1a
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 0xb860cc
call fcn.00b22093
push eax
push str.Temp
call fcn.00b5c12a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00b252fd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00b22f10
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00b21fd8
lea ecx, [ebp - 0x84]
call fcn.00b21fd8
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00b21fab
push eax
lea ecx, [ebp - 0x138]
call fcn.00b2fbee
lea ecx, [ebp - 0x138]
call fcn.00b37f57
test al, al
je 0xb37e4b
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.00b37f67
lea ecx, [ebp - 0x138]
call fcn.00b2fb9f
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.00b21fab
movaps xmm0, xmmword [0xb8d290]
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, 0xb860b4
mov edi, 0xb95630
setne bl
cmp dword [ebp - 0x1c], 0
je 0xb37e35
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00b22093
push 0x70
mov ecx, edi
call fcn.00b24aa1
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.00b21fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0xb37e66
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00b22093
push 0x6e
mov ecx, edi
jmp 0xb37e61
sub esp, 0x18
mov ecx, esp
push 0xb860b4
call fcn.00b22093
push 0x6f
mov ecx, 0xb95630
call fcn.00b24aa1
lea ecx, [ebp - 0x138]
call fcn.00b2f3eb
lea ecx, [ebp - 0x18]
call fcn.00b21fd8
lea ecx, [ebp + 8]
call fcn.00b21fd8
lea ecx, [ebp + 0x20]
call fcn.00b21fd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb3ab37
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.00b21f04
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xb3ab6f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0xb3ab8d
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.00b21f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb3ab9e
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.00b21f04
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xb3abd9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0xb3ac2a
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0xb3abfa
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0xb3ac2a
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0xb3abfa
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.00b21f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb3ac3b
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.00b21f04
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xb3ac73
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0xb3ac91
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.00b21f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb3aca2
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.00b21f04
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xb3acda
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0xb3acf8
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.00b21f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb3ad09
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.00b21f04
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xb3ad42
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0xb3ad86
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0xb3ad5f
sub eax, 1
je 0xb3ad5b
sub eax, 1
jne 0xb3ad62
push 3
jmp 0xb3ad61
push 2
jmp 0xb3ad61
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.00b21f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xb3ada8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea ecx, [esp + 4]
mov dl, 0x30
push esi
push str.alarm.wav
call fcn.00b2da23
pop ecx
lea ecx, [esp + 8]
call fcn.00b21f04
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0xb3ae33
mov esi, 0xb95968
mov edx, 0xb860b4
mov ecx, esi
call fcn.00b25b05
test al, al
je 0xb3ae21
sub esp, 0x18
cmp byte [0xb94ad2], 0
mov ecx, esp
push 0xb8c93c
je 0xb3ae0b
call fcn.00b22093
mov ecx, 0xb95980
jmp 0xb3ae15
call fcn.00b22093
mov ecx, 0xb95598
push 0xa1
call fcn.00b24aa1
jmp 0xb3ae43
lea ecx, [esp + 8]
call fcn.00b21f04
mov edx, eax
mov ecx, esi
call fcn.00b3c583
lea ecx, [esp + 8]
call fcn.00b21f04
mov ecx, eax
call fcn.00b3ae51
lea ecx, [esp + 8]
call fcn.00b21f09
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xb3aea6
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0xb95968
mov bl, dl
call fcn.00b21fc0
test bl, bl
je 0xb3aebe
pop ebx
jmp fcn.00b3ada8
mov byte [0xb94ad3], 1
pop ebx
ret
Function at 0xb3b0d8
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
push ecx
lea ecx, [esp + 0x98]
call fcn.00b3b32d
cmp eax, 0xffffffff
jne 0xb3b125
lea ecx, [esp + 0x90]
call fcn.00b21f04
push eax
mov dl, 0x30
lea ecx, [esp + 0x14]
call fcn.00b2da6f
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00b21f13
lea ecx, [esp + 0x10]
call fcn.00b21f09
mov ecx, esi
call fcn.00b2247c
lea ecx, [esp + 0x90]
test eax, eax
je 0xb3b219
call fcn.00b21f04
mov edx, eax
mov ecx, esi
call fcn.00b3c583
push str._alias_audio
mov edx, edi
lea ecx, [esp + 0x74]
call fcn.00b3bcef
push eax
lea eax, [esp + 0x98]
mov edx, str.open__
push str.__type
push eax
lea ecx, [esp + 0x68]
call fcn.00b2b9b7
pop ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00b23014
pop ecx
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.00b22fa5
pop ecx
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00b23014
pop ecx
lea ecx, [esp + 0x10]
call fcn.00b21f09
lea ecx, [esp + 0x40]
call fcn.00b21f09
lea ecx, [esp + 0x58]
call fcn.00b21f09
lea ecx, [esp + 0x70]
call fcn.00b21f09
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push ebx
push ebx
call fcn.00b21f04
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 edi, 0xb860b4
mov ecx, esp
push edi
call fcn.00b22093
mov ebp, 0xb95980
push 0xa9
mov ecx, ebp
call fcn.00b24aa1
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0xb94ad4], eax
jmp 0xb3b2dd
call fcn.00b21f04
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0xb3b149
sub esp, 0x18
mov ecx, esp
push 0xb860b4
call fcn.00b22093
push 0xa8
mov ecx, 0xb95980
call fcn.00b24aa1
jmp 0xb3b319
cmp byte [0xb94ad1], bl
je 0xb3b268
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0xb94ad1], bl
cmp byte [0xb94ad0], bl
je 0xb3b280
push ebx
push ebx
push ebx
push str.resume_audio
call esi
mov byte [0xb94ad0], bl
push ebx
push 0x14
lea eax, [esp + 0x18]
push eax
push str.status_audio_mode
call esi
lea eax, [esp + 0x10]
push str.stopped
push eax
call fcn.00b5fd50
pop ecx
pop ecx
test eax, eax
jne 0xb3b2b0
push dword [0xb94ad4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0xb94ad4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xb3b2d8
push dword [0xb94ad4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0xb3b20f
mov eax, dword [0xb94ad4]
test eax, eax
jne 0xb3b250
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 edi
call fcn.00b22093
push 0xaa
mov ecx, ebp
call fcn.00b24aa1
lea ecx, [esp + 0x28]
call fcn.00b21f09
lea ecx, [esp + 0x90]
call fcn.00b21f09
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret