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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xabb4
call fcn.0044a0a0
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x4a0]
push esi
push eax
mov ebx, ecx
call fcn.0042e260
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 0x40cd6b
test eax, eax
je 0x40cd6b
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 0x40cd65
push 0x458bd0
lea ecx, [ebp - 0x34]
call fcn.00403509
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x68]
call fcn.00408c67
pop ecx
push eax
mov ecx, 0x467050
call fcn.00405cd9
lea ecx, [ebp - 0x68]
call fcn.004034ff
lea ecx, [ebp - 0x34]
call fcn.004034ff
inc esi
cmp esi, dword [ebp - 4]
jb 0x40cd05
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40cead
xor esi, esi
test eax, eax
je 0x40cead
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 0x40cea3
push 0xa
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x1c]
call fcn.00437038
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x458bd0
call fcn.00403509
push eax
lea edx, [ebp - 0xabb0]
lea ecx, [ebp - 0x34]
call fcn.00408c67
pop ecx
push eax
mov ecx, 0x467068
call fcn.00405cd9
lea ecx, [ebp - 0x34]
call fcn.004034ff
lea ecx, [ebp - 0x80]
call fcn.004034ff
push 0x4585b0
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, 0x467080
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.004062ff
pop ecx
push eax
mov ecx, 0x467118
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 0x40cd80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d964
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 0x40d9e4
cmp word [esi + 8], 2
jne 0x40d9c6
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40d9c6
mov edi, dword [esi + 0xc]
jmp 0x40d9c0
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0040d8fb
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x40d9df
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x40d99c
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00434ca3
add esp, 0x10
xor eax, eax
jmp 0x40da02
push 8
pop eax
jmp 0x40da02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x40da00
sub eax, 1
je 0x40da12
sub eax, 1
je 0x40da0b
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x40da02
mov eax, 0x2afa
jmp 0x40da02
Function at 0x40dffa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4686c4], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40dbb2
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40de32
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040db74
jne 0x40e15c
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e152
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.00436c04
push str.ws2_32
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00436c5e
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 0x40e0b9
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e0b5
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x40e113
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00436c04
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00436c5e
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40e14f
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e10f
push esi
call ebx
mov esi, edi
test esi, esi
je 0x40e14f
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 0x40e130
inc ebx
cmp ebx, 3
jl 0x40e115
jmp 0x40e139
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x40e14f
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x4639d8], eax
add edi, 8
cmp edi, 0x18
jl 0x40e13d
pop edi
pop esi
pop ebx
mov dword [0x4686c4], 1
mov eax, dword [0x4639d8]
mov esp, ebp
pop ebp
ret
Function at 0x40feb7
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.00431b92
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403509
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407536
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004034ff
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push ebx
push eax
mov edx, 0x45e0c8
lea ecx, [ebp - 0x30]
call fcn.00408c8b
pop ecx
mov ecx, eax
call fcn.00404459
push eax
push str.dxdiag
push 0x4585bc
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.00404459
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00413fdc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x18]
inc esi
call fcn.00405e8b
test al, al
je 0x40ff5e
cmp esi, 0x4b0
jl 0x40ff2f
lea ecx, [ebp - 0x18]
call fcn.00405e8b
test al, al
jne 0x40ffe6
lea ecx, [ebp - 0x48]
call fcn.00404459
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 0x40ffdb
sub esp, 0x18
lea eax, [ebp - 0x18]
mov esi, esp
lea edx, [ebp + 8]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403fd8
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403f90
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 0x410735
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.00431b9d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00402a6d
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00403f90
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.0040a2a2
lea ecx, [ebp - 0x138]
call fcn.00410972
test al, al
je 0x410866
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x138]
call fcn.00410982
lea ecx, [ebp - 0x138]
call fcn.0040a253
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 [0x45ea60]
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, 0x458594
mov edi, 0x4671d0
setne bl
cmp dword [ebp - 0x1c], 0
je 0x410850
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 0x410881
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00402178
push 0x6e
mov ecx, edi
jmp 0x41087c
sub esp, 0x18
mov ecx, esp
push 0x458594
call fcn.00402178
push 0x6f
mov ecx, 0x4671d0
call fcn.004018e7
lea ecx, [ebp - 0x138]
call fcn.00409e10
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 0x4127c2
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.00404459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4127fa
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412818
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 0x412829
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.00404459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x412864
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4128b5
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x412885
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov bl, 2
jmp 0x4128b5
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
jne 0x412885
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 0x4128c6
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.00404459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4128fe
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41291c
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 0x41292d
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.00404459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x412965
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412983
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 0x412994
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.00404459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4129cd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x412a11
movzx eax, byte [ebp - 1]
or ecx, 0xffffffff
sub eax, ebx
je 0x4129ea
sub eax, 1
je 0x4129e6
sub eax, 1
jne 0x4129ed
push 3
jmp 0x4129ec
push 2
jmp 0x4129ec
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 0x412a36
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.004087dc
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00404459
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412ab5
mov esi, 0x467508
mov edx, 0x458594
mov ecx, esi
call fcn.00403f83
test al, al
je 0x412aa4
sub esp, 0x18
cmp byte [0x464caf], 0
mov ecx, esp
push 0x45e180
je 0x412a8e
call fcn.00402178
mov ecx, 0x467520
jmp 0x412a98
call fcn.00402178
mov ecx, 0x467138
push 0xa1
call fcn.004018e7
jmp 0x412ac4
lea ecx, [ebp - 0x18]
call fcn.00404459
mov edx, eax
mov ecx, esi
call fcn.0041404e
lea ecx, [ebp - 0x18]
call fcn.00404459
mov ecx, eax
call fcn.00412ad1
lea ecx, [ebp - 0x18]
call fcn.004034ff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412b26
Capabilities:
Check if file exists

Disassembly:
push ebx
push ecx
mov ecx, 0x467508
mov bl, dl
call fcn.00402077
test bl, bl
je 0x412b3e
pop ebx
jmp fcn.00412a36
pop ebx
ret
Function at 0x412d0a
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.00412f42
cmp eax, 0xffffffff
jne 0x412d4b
lea ecx, [ebp + 8]
call fcn.00404459
push eax
mov dl, 0x30
lea ecx, [ebp - 0x18]
call fcn.00408826
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00405ceb
lea ecx, [ebp - 0x18]
call fcn.004034ff
mov ecx, esi
call fcn.00402020
lea ecx, [ebp + 8]
test eax, eax
je 0x412e2a
call fcn.00404459
mov edx, eax
mov ecx, esi
call fcn.0041404e
push str._alias_audio
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.00413821
push eax
lea eax, [ebp + 8]
mov edx, str.open__
push str.__type
push eax
lea ecx, [ebp - 0x60]
call fcn.00408c8b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00407536
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00408bcd
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00407536
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.00404459
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 0x458594
call fcn.00402178
push 0xa9
mov ecx, 0x467520
call fcn.004018e7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4669ec], eax
jmp 0x412ef1
call fcn.00404459
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412d6b
sub esp, 0x18
mov ecx, esp
push 0x458594
call fcn.00402178
push 0xa8
mov ecx, 0x467520
call fcn.004018e7
jmp 0x412f33
cmp byte [0x464cae], bl
je 0x412e79
push ebx
push ebx
push ebx
push str.pause_audio
call esi
mov byte [0x464cae], bl
cmp byte [0x464cad], bl
je 0x412e91
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 0x412ec4
inc ecx
cmp ecx, 8
jne 0x412ea9
push dword [0x4669ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x4669ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412eec
push dword [0x4669ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x412e20
mov eax, dword [0x4669ec]
test eax, eax
jne 0x412e61
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 0x458594
call fcn.00402178
push 0xaa
mov ecx, 0x467520
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
Function at 0x4135ce
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 0x413650
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 0x413650
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 0x413647
mov esi, dword [ebp - 0x4c]
inc esi
push esi
mov dword [ebp - 0x4c], esi
call fcn.00431906
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x413647
push esi
push edi
push eax
call fcn.0042e260
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 0x413659
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push esi
push 0x200
push 0
push eax
mov esi, ecx
call fcn.0042e260
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x100
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.00403509
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413724
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 0x41374c
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
Function at 0x413ab2
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0x105
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop edx
test eax, eax
jle 0x413b0c
mov ecx, edi
cmp word [ecx], dx
jne 0x413aef
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
je 0x413b0c
add ecx, 2
inc ebx
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jge 0x413b09
mov ecx, dword [ebp - 8]
push 0x5c
pop edx
jmp 0x413ade
mov ebx, dword [ebp - 4]
xor eax, eax
mov word [edi + ebx*2], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x413b39
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x413c21
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413b42
jmp 0x413bf2
cmp word [ebp - 0x212], cx
jne 0x413c0c
cmp word [ebp - 0x210], 0x3f
jne 0x413c0c
cmp word [ebp - 0x20e], cx
jne 0x413c0c
cmp word [ebp + eax*2 - 0x214], cx
jne 0x413c0c
xor ecx, ecx
mov word [ebp + eax*2 - 0x214], cx
lea eax, [ebp - 0x624]
push 0x64
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x413c88
push edi
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x413c37
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x413c28
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413be7
sub ecx, edx
sar ecx, 1
push 0x5c
lea eax, [ecx - 1]
pop ecx
mov dword [ebp - 4], eax
cmp word [ebp - 0x214], cx
je 0x413b52
mov esi, 0xa1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x413c11
jmp 0x413c0c
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x214], cx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x413c88
lea eax, [edi + 2]
lea eax, [eax + ebx*2]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x413c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x413c11