joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e30
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xe4
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0xe0], eax
cmp dword [0x446fec], 0
jne 0x406eb9
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CTAudSvcService
push 0
mov dword [0x446fe8], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
mov eax, dword [0x446fe8]
push eax
push str.CTAudSvcService
push str._s_error:__d
lea ecx, [esp + 0x18]
push 0x6c
push ecx
call fcn.004221c5
add esp, 0x14
test esi, esi
lea edx, [esp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
je 0x406eb8
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.004217dd
add esp, 0xe4
ret

Function at 0x406ed0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x20c
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x406f27
call fcn.00407210
push eax
push 0x43b800
push str.Unable_to_install__s____s_n
call fcn.00421ef9
add esp, 0xc
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004217dd
add esp, 0x20c
ret
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x406fd8
push ebx
push esi
push 0
push 0
push str.Audiosrv
push 0
push str.AudioGroup
lea ecx, [esp + 0x20]
push ecx
push 1
push 2
push 0x10
push 4
push 0x43b800
push str.CTAudSvcService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x406faa
push 0x43b800
push str._s_installed._n
call fcn.00421ef9
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004217dd
add esp, 0x20c
ret
call fcn.00407210
push eax
push str.CreateService_failed____s_n
call fcn.00421ef9
add esp, 8
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004217dd
add esp, 0x20c
ret
call fcn.00407210
push eax
push str.OpenSCManager_failed____s_n
call fcn.00421ef9
mov ecx, dword [esp + 0x214]
add esp, 8
pop edi
xor ecx, esp
call fcn.004217dd
add esp, 0x20c
ret
Function at 0x407010
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x40714c
push esi
push 0x10024
push str.CTAudSvcService
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40712f
push 0x449b80
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4070dd
push ebx
push edi
push 0x43b800
push str.Stopping__s.
call fcn.00421ef9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x449b80
push esi
call ebx
test eax, eax
je 0x4070b9
lea esp, [esp]
cmp dword [0x449b84], 3
jne 0x4070b9
push 0x43b944
call fcn.00421ef9
add esp, 4
push 0x3e8
call edi
push 0x449b80
push esi
call ebx
test eax, eax
jne 0x407090
cmp dword [0x449b84], 1
pop edi
pop ebx
push 0x43b800
jne 0x4070d0
push 0x43b948
jmp 0x4070d5
push str._n_s_failed_to_stop._n
call fcn.00421ef9
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40710b
push 0x43b800
push str._s_removed._n
call fcn.00421ef9
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00407210
push eax
push str.DeleteService_failed____s_n
call fcn.00421ef9
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00407210
push eax
push str.OpenService_failed____s_n
call fcn.00421ef9
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00407210
push eax
push str.OpenSCManager_failed____s_n
call fcn.00421ef9
add esp, 8
pop ebp
ret

Function at 0x407170
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x40719a
push str.CmdDebugService_CommandLineToArgvW_returned_NULL_n
call fcn.00421ef9
add esp, 4
pop esi
pop ecx
ret
push 0x43b800
push str.Debugging__s._n
call fcn.00421ef9
add esp, 8
push 1
push 0x4071e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00405cc0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ecx
ret
Function at 0x4076e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x104], eax
test esi, esi
mov eax, dword [esp + 0x10c]
je 0x407743
push ecx
push eax
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004217dd
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004217dd
add esp, 0x108
ret

Function at 0x407880
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x620
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push edi
push 0x104
lea eax, [esp + 0x10]
push eax
mov ebx, ecx
push 0
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407938
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x420]
push eax
call edi
push str.CTAudMon.ini
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x214]
push eax
push 0
push str.UseSideBySideCODEC
push str.CODEC
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x407938
lea ecx, [esp + 0x41c]
push ecx
push esi
call edi
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.004217dd
add esp, 0x620
ret
push ebp
push str.SHFolder.dll
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x40799d
push str.SHGetFolderPathW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40798f
push esi
push 0
push 0
push 0x26
push 0
call eax
mov edi, eax
test edi, edi
jne 0x407994
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CreativeShared_Files
push esi
call ebx
mov edx, dword [esp + 0xc]
push edx
push esi
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4079a2
mov edi, 0x80004005
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4079a2
mov edi, 0x80004005
mov ecx, dword [esp + 0x628]
pop ebp
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x620
ret
Function at 0x40dd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40dd39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dd74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40dd70
lea ebx, [ebx]
cmp esi, eax
jae 0x40dd74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40dd60
cmp esi, eax
jb 0x40dd7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x412070
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1864
call fcn.00423810
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x1860], eax
mov eax, dword [esp + 0x1868]
push ebp
push esi
push edi
push 0x43b4f0
push eax
mov dword [esp + 0x20], eax
call section..text
add esp, 8
test eax, eax
je 0x4120c8
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1860]
xor ecx, esp
call fcn.004217dd
add esp, 0x1864
ret
xor edi, edi
push 0x802
lea eax, [esp + 0x1066]
push edi
push eax
mov dword [ebx], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x106c], di
call fcn.00422e90
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push str.SOFTWAREASIO
push 0x80000002
mov dword [esp + 0x34], 0x402
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x412277
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1088]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
je 0x412170
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412275
cmp dword [esp + 0x1c], edi
jbe 0x41224c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
push edx
mov dword [esp + 0x44], 0x402
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x412160
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.SOFTWAREASIO
lea eax, [esp + 0x864]
push eax
call esi
push 0x43b4b0
lea ecx, [esp + 0x864]
push ecx
call ebp
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x864]
push eax
call ebp
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x864]
push edx
call fcn.00411f40
add esp, 8
test eax, eax
jne 0x41222d
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
call section..text
add esp, 8
test eax, eax
je 0x41222d
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
mov dword [ebx], eax
jne 0x41223c
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x412180
jmp 0x41224c
lea edx, [esp + 0x58]
push edx
push eax
call esi
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 0
jne 0x412273
mov ecx, dword [esp + 0x18]
push ebx
push ecx
mov esi, 0xd
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x412275
xor esi, esi
mov eax, esi
mov ecx, dword [esp + 0x186c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004217dd
add esp, 0x1864
ret
Function at 0x412cb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x838
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [esp + 0x83c]
push ebp
push esi
push edi
push 0x104
lea edx, [esp + 0x42c]
push edx
xor edi, edi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x412d1b
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edi, [esp + 0x630]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, 1
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esp + 0x84c], 0
jne 0x412d87
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412d87
add esi, 1
push esi
lea ecx, [esp + 0x1c]
push ebx
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x412d50
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x224]
call fcn.0040de50
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004217dd
add esp, 0x838
ret

Function at 0x412e30
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x688
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x684], eax
test byte [0x448690], 2
je 0x412e58
push str.Entry:_CheckWhetherASIOChannelInfoHasTopCenterChannelForWUH___r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
xor edi, edi
cmp dword [esp + 0x694], edi
mov dword [esp + 8], edi
jle 0x412ed9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [esp + 0x20]
mov ecx, dword [0x446ff4]
test ecx, ecx
lea eax, [esi - 0x10]
mov dword [eax], edi
mov dword [esi - 0xc], 1
jne 0x412ea0
push str.None
lea eax, [esi + 4]
push eax
mov dword [esi - 4], 0xffffffff
mov dword [esi], ecx
call ebp
jmp 0x412ebf
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x48]
call eax
test eax, eax
jne 0x412ebf
mov eax, dword [esi - 4]
test eax, eax
jns 0x412ebf
and eax, 0x7fffffff
cmp eax, 0x800
je 0x412ed0
add edi, 1
add esi, 0x34
cmp edi, dword [esp + 0x698]
jl 0x412e74
jmp 0x412ed8
mov dword [esp + 0xc], 1
pop ebp
test byte [0x448690], 2
je 0x412f04
cmp dword [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x412ef6
push str.TRUE:_ASIOChannelInfoHasTopCenterChannelForWUH_r_n
jmp 0x412efb
push str.FALSE:_ASIOChannelInfoHasTopCenterChannelForWUH_r_n
call esi
push str.Exit:_CheckWhetherASIOChannelInfoHasTopCenterChannelForWUH___r_n
call esi
mov ecx, dword [esp + 0x68c]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.004217dd
add esp, 0x688
ret
Function at 0x417ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebp
mov ebp, dword [esp + 0x2b4]
push esi
or esi, 0xffffffff
mov eax, ebp
push edi
mov dword [esp + 0x18], esi
xor edi, edi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x417ef0
sub eax, ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0xc]
push eax
push str.clsid
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4180a2
xor esi, esi
jmp 0x417f28
mov esi, dword [esp + 0x1c]
test edi, edi
jne 0x41807b
mov edx, dword [esp + 0xc]
push 0x200
lea ecx, [esp + 0xb4]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esi, 1
test eax, eax
mov dword [esp + 0x1c], esi
jne 0x41807b
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417f62
sub eax, edx
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov ecx, ebp
lea eax, [esp + 0xb0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417fa5
test dl, dl
je 0x417fa1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417fa5
add eax, 2
add ecx, 2
test dl, dl
jne 0x417f85
xor eax, eax
jmp 0x417faa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x417f28
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xbc]
push edx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41806e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push eax
push str.InprocServer32
push edx
call edi
mov esi, eax
test esi, esi
jne 0x418063
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x418058
push 0x88
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00422e90
add esp, 0xc
push 0x4000
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov byte [esp + 0x34], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x418058
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov edi, 1
je 0x417f24
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.004217dd
add esp, 0x2ac
ret
mov ecx, dword [esp + 0x2b4]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.004217dd
add esp, 0x2ac
ret
Function at 0x4180c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3f4
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov eax, dword [esp + 0x3f8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x410]
test esi, esi
push edi
mov edi, dword [esp + 0x40c]
jne 0x41823e
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418260
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.clsid
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x418231
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x1fc]
call fcn.00417ec0
add esp, 4
test eax, eax
jne 0x418231
push 0x29c
call fcn.00418905
mov esi, eax
add esp, 4
test esi, esi
je 0x418231
push 0x29c
push 0
push esi
call fcn.00422e90
mov ecx, dword [esp + 0x41c]
add esp, 0xc
push 0x64
lea edx, [esp + 0x134]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push eax
push 0
push 0
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x4181e4
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.description
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x418223
lea edx, [esp + 0x30]
push edx
lea eax, [esi + 0x214]
push eax
jmp 0x41822b
push edi
lea ecx, [esi + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418260
mov ecx, dword [esi + 0x298]
mov edx, dword [esp + 0x410]
push ecx
add edx, 1
push edx
push edi
push eax
call fcn.004180c0
add esp, 0x10
mov dword [esi + 0x298], eax
mov ecx, dword [esp + 0x3fc]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x3f4
ret
Function at 0x4182c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov esi, ecx
xor ebx, ebx
push str.software_asio
push 0x80000002
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x418347
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x418310
mov edx, dword [esp + 0x14]
push 0x80
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
call ebp
mov edi, eax
add ebx, 1
test edi, edi
jne 0x418347
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.004180c0
add esp, 0x10
test edi, edi
mov dword [esi], eax
je 0x418310
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418356
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x20]
mov dword [esp + 0x2c], 0x124
call fcn.004185b0
test eax, eax
jne 0x418489
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x418471
mov ebp, dword [esp + 0x28]
add ebp, 4
mov dword [esp + 0x1c], eax
mov edi, dword [esi]
or ebx, 0xffffffff
test edi, edi
je 0x4183a7
nop
mov eax, dword [edi + 0x298]
test eax, eax
mov ebx, dword [edi]
je 0x4183a2
mov edi, eax
test edi, edi
jne 0x418390
cmp ebx, 0xffffffff
jne 0x4183b3
push 0x29c
call fcn.00418905
jmp 0x4183c3
push 0x29c
call fcn.00418905
mov dword [edi + 0x298], eax
mov esi, eax
add esp, 4
test esi, esi
je 0x41845c
push 0x29c
push 0
push esi
call fcn.00422e90
lea eax, [esi + 4]
add ebx, 1
mov dword [esi], ebx
mov ecx, dword [ebp]
mov dword [eax], ecx
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
push 0x100
lea ecx, [esp + 0xb4]
push ecx
push eax
mov dword [eax + 0xc], edx
mov byte [esi + 0x14], 0
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ebx, [esp + 0xb0]
call fcn.00417e50
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x41844a
push edi
lea edx, [esi + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x418450
mov byte [esi + 0x214], bl
mov dword [esi + 0x294], ebx
mov dword [esi + 0x298], ebx
mov esi, dword [esp + 0x18]
add ebp, 0x124
sub dword [esp + 0x1c], 1
jne 0x418386
cmp dword [esp + 0x20], 0
jbe 0x418489
mov eax, dword [esp + 0x28]
test eax, eax
je 0x418489
push eax
call fcn.00418935
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x41849e
nop
add dword [esi + 4], 1
mov eax, dword [eax + 0x298]
test eax, eax
jne 0x418490
cmp dword [esi + 4], 0
je 0x4184ac
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x2b4]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0x2ac
ret

Function at 0x4217dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442abc]
jne 0x4217e7
repz ret
jmp fcn.00423eca