joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4903b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
inc eax
push ebx
push edi
mov dword [ebp - 0x214], eax
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
inc ecx
inc edx
inc eax
cmp dword [esi], 4
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], eax
jne 0x4904de
cmp dword [esi + 0xc], 1
jne 0x4904de
mov edx, dword [esi + 0x14]
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [0x4cbe2c]
test eax, eax
je 0x490439
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, 0x4b5db0
lea ecx, [ebp - 0x208]
call fcn.0047dee0
mov edx, dword [esi + 0x18]
test eax, eax
je 0x490498
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xc0c0c0
push edx
call ebx
mov edx, dword [esi + 0x18]
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [0x4cbe24]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x18]
push 0x10
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x208]
push edx
push eax
jmp 0x4904b9
mov ecx, dword [0x4cbe24]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x18]
push 0x1126
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov dword [0x4cbe24], 0x404040
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x490620
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x1c8]
push eax
mov dword [0x4d2aa0], 0
mov dword [ebp - 0x1c8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1b8], 1
jne 0x490725
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4907bd
push 0x44
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004a3190
add esp, 0xc
lea edx, [ebp - 0x1cc]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0
push str.mstask.exe
push 0
mov dword [ebp - 0x228], 0x44
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x490769
lea ecx, [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x490769
mov ecx, dword [ebp - 0x1dc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [0x4d2aa0], 1
call esi
mov edx, dword [ebp - 0x1d8]
push edx
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x490769
push 0x14
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x490769
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x49077f
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x128], 4
je 0x4907ba
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4907ba
push esi
call edi
mov dword [0x4d2aa0], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x4907d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 1
jne 0x490827
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x490849
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push esi
push 0x14
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x490897
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x490894
cmp dword [ebp - 0x1c], 4
jne 0x490894
push esi
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x4908b0
Capabilities:
Find taskbar
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x148]
mov esi, 1
push eax
mov dword [ebp - 0x14c], esi
mov dword [0x4d2aa0], 0
mov dword [ebp - 0x148], 0x94
call edi
cmp dword [ebp - 0x138], esi
jne 0x4909d4
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call ebx
test eax, eax
je 0x4909c1
lea ecx, [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x4909a4
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4909a4
lea edx, [ebp - 0x150]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x490966
mov eax, dword [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb4]
push ecx
mov dword [ebp - 0xb4], 0x94
call edi
cmp dword [ebp - 0xa4], 2
je 0x4909a4
push 0x4b17de
push str.Shell_TrayWnd
call ebx
test eax, eax
je 0x4909a4
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
pop edi
mov dword [0x4d2aa0], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x490a14
push 0x24
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x490a14
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x490a2a
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 4
jne 0x490a5b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
test eax, eax
jne 0x490a59
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x491380
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x80000000
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 0x130], 0x100
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x491442
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameA]
test eax, eax
jne 0x4913ec
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push 0x80000000
lea edx, [ebp - 0x104]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x49143b
lea eax, [ebp - 0x12c]
push eax
push 0x24
lea ecx, [ebp - 0x128]
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x491434
movzx ebx, word [ebp - 0x124]
movzx edx, word [ebp - 0x128]
shl ebx, 0x10
or ebx, edx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret

Function at 0x491560
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80000000
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 0x124], 0x100
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x491602
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameA]
test eax, eax
jne 0x4915c2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push 0xf01ff
lea edx, [ebp - 0x104]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4915fb
lea eax, [ebp - 0x120]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4915f4
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x491ef0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.SoftwareBillP_StudiosWinPatrolSysfiles
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x128]
call fcn.00401000
mov edx, 0xff
lea eax, [ebp - 0x128]
lea ebx, [ebx]
cmp byte [eax], 0
je 0x491f3b
inc eax
dec edx
jne 0x491f30
jmp 0x491f63
test edx, edx
je 0x491f63
mov ecx, 0xff
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push 0x4b17dc
lea ecx, [ebp + ecx - 0x128]
mov edx, 0x7fffffff
call fcn.00401000
mov edx, 0xff
lea eax, [ebp - 0x128]
mov edi, edi
cmp byte [eax], 0
je 0x491f7b
inc eax
dec edx
jne 0x491f70
jmp 0x491fa3
test edx, edx
je 0x491fa3
mov ecx, 0xff
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push str.HOSTS
lea ecx, [ebp + ecx - 0x128]
mov edx, 0x7fffffff
call fcn.00401000
mov edx, dword [0x4c6448]
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x491fe3
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0047d280
test eax, eax
je 0x49216c
push esi
lea edi, [ebp - 0x430]
lea ecx, [ebp - 0x330]
call fcn.004800d0
add esp, 4
lea edx, [ebp - 0x128]
push str.Date
push edx
lea ecx, [ebp - 0x330]
mov edx, 0x80000002
call fcn.0048e390
lea eax, [ebp - 0x128]
push str.Size
push eax
mov ecx, edi
mov edx, 0x80000002
call fcn.0048e390
push 0
push 0x4b7c94
lea ecx, [ebp - 0x24]
push 0x20
push ecx
call fcn.00402830
lea edx, [ebp - 0x128]
push str.Type
push edx
lea ecx, [ebp - 0x24]
mov edx, 0x80000002
call fcn.0048e390
add esp, 0x28
push str.HOST_file_can_be_used_to_protect_or_redirect_domain_access.
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x492096
lea eax, [ebp - 0x128]
push str.Comment
push eax
mov ecx, str.HOST_file_can_be_used_to_protect_or_redirect_domain_access.
mov edx, 0x80000001
call fcn.0048e390
add esp, 8
lea ecx, [ebp - 0x128]
push 0x4beae4
push ecx
mov ecx, esi
mov edx, 0x80000002
call fcn.0048e390
add esp, 8
lea ebx, [ebp - 0x230]
call fcn.0047ea60
test eax, eax
je 0x49216c
mov eax, 0x104
mov ecx, ebx
jmp 0x4920d0
cmp byte [ecx], 0
je 0x4920db
inc ecx
dec eax
jne 0x4920d0
jmp 0x492103
test eax, eax
je 0x492103
mov ecx, 0x104
sub ecx, eax
mov eax, 0x104
sub eax, ecx
push 0x4b17dc
lea ecx, [ebp + ecx - 0x230]
mov edx, 0x7fffffff
call fcn.00401000
mov eax, 0x104
lea ecx, [ebp - 0x230]
mov edi, edi
cmp byte [ecx], 0
je 0x49211b
inc ecx
dec eax
jne 0x492110
jmp 0x492143
test eax, eax
je 0x492143
mov ecx, 0x104
sub ecx, eax
mov eax, 0x104
sub eax, ecx
push str.HOSTS
lea ecx, [ebp + ecx - 0x230]
mov edx, 0x7fffffff
call fcn.00401000
push 0
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x49216c
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x496380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.004a3190
add esp, 0xc
push str.SoftwareBillP_StudiosWinPatrolSysfiles
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x424], 0x104
mov dword [ebp - 0x41c], ebx
call fcn.00401000
lea ecx, [ebp - 0x420]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x108]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4965a8
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x420]
push ebx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x310]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x41c], ebx
je 0x4965a8
xor esi, esi
xor edi, edi
jmp 0x496470
mov eax, dword [ebp - 0x420]
push 0xff
lea edx, [ebp - 0x208]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, edi
inc esi
inc edi
cmp ecx, dword [ebp - 0x41c]
ja 0x49659b
cmp eax, 0x103
je 0x49659b
test eax, eax
jne 0x496470
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x496470
push str.SoftwareBillP_StudiosWinPatrolSysfiles
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x108]
call fcn.00401000
mov eax, 0xff
lea ecx, [ebp - 0x108]
nop
cmp byte [ecx], 0
je 0x4964eb
inc ecx
dec eax
jne 0x4964e0
jmp 0x496513
test eax, eax
je 0x496513
mov ecx, 0xff
sub ecx, eax
mov eax, 0xff
sub eax, ecx
push 0x4b17dc
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.00401000
mov edx, 0xff
lea eax, [ebp - 0x108]
mov edi, edi
cmp byte [eax], 0
je 0x49652b
inc eax
dec edx
jne 0x496520
jmp 0x496555
test edx, edx
je 0x496555
lea eax, [ebp - 0x208]
push eax
mov ecx, 0xff
sub ecx, edx
mov eax, 0xff
sub eax, ecx
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.00401000
push 0x104
lea ecx, [ebp - 0x108]
push 0x4beae4
push ecx
lea ecx, [ebp - 0x418]
mov edx, 0x80000002
call fcn.0048e050
add esp, 0xc
test eax, eax
je 0x496470
lea edx, [ebp - 0x208]
push edx
lea ebx, [ebp - 0x418]
call fcn.00496080
add esp, 4
jmp 0x496470
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x499cb0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x20
lea edx, [ebp - 0x28]
mov ecx, 2
call fcn.00499890
add esp, 4
cmp dword [ebp + 8], 0
push 1
je 0x499ddc
call fcn.0049bdc0
add esp, 4
lea edi, [ebp - 0x134]
call fcn.0047e3e0
mov edx, 0x104
mov eax, edi
mov edi, edi
cmp byte [eax], 0
je 0x499d0b
inc eax
dec edx
jne 0x499d00
jmp 0x499d33
test edx, edx
je 0x499d33
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.winpatrol.exe
lea ecx, [ebp + ecx - 0x134]
mov edx, 0x7fffffff
call fcn.00401000
cmp dword [0x4d2afc], 0
je 0x499d5e
mov edi, dword [0x4c6444]
mov ebx, dword [0x4c6448]
mov dword [0x4c6444], 0x20019
mov dword [0x4c6448], 0x20106
jmp 0x499d6a
mov edi, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x138]
lea eax, [ebp - 0x28]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x134]
mov edx, 0x80000001
call fcn.0048e390
mov esi, eax
add esp, 8
test esi, esi
je 0x499d96
mov dword [0x4d2a80], 1
lea ecx, [ebp - 0x134]
push ecx
push str.SoftwareBillP_StudiosWinPatrolRun
mov ecx, 0x4b1c74
mov edx, 0x80000001
call fcn.0048e390
add esp, 8
cmp dword [0x4d2afc], 0
mov eax, esi
je 0x499dee
mov dword [0x4c6444], edi
mov dword [0x4c6448], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
call fcn.0049bdc0
add esp, 4
mov dword [0x4d2a80], 0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x49ae50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.Cleanup_and_Initialize_Registry
mov esi, str.winpatrol.c
call fcn.0047fb10
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 4
push str.SoftwareBillP_StudiosWinPatrolRun
push 0x80000001
call esi
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
push 0x80000001
call esi
push str.SoftwareBillP_StudiosWinPatrolTasks
push 0x80000001
call esi
mov edx, dword [0x4c6448]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolRun
push 0x80000001
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x49aecd
mov eax, dword [ebp - 4]
push eax
call edi
mov eax, dword [0x4c6448]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push eax
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolIEHelpers
push 0x80000001
call esi
test eax, eax
jne 0x49aef9
mov ecx, dword [ebp - 4]
push ecx
call edi
mov ecx, dword [0x4c6448]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolTasks
push 0x80000001
call esi
test eax, eax
jne 0x49af26
mov edx, dword [ebp - 4]
push edx
call edi
call fcn.0049a270
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49af40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
push 0x4b17de
push str.SoftwareBillP_StudiosWinPatrolServices
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e050
add esp, 0xc
cmp byte [ebp - 0x24], 0x50
je 0x49b0fe
test eax, eax
jle 0x49af90
push str.SoftwareBillP_StudiosWinPatrolServices
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [0x4c6448]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0
push edx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolServices
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49afce
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4c0040
lea ecx, [ebp - 0x130]
push 0x104
push ecx
call fcn.00402830
add esp, 0xc
push 0x4b17de
push str.SoftwareBillP_StudiosWinPatrolServices
lea ecx, [ebp - 0x130]
mov edx, 0x80000001
call fcn.0048e390
add esp, 8
cmp dword [0x4cd38c], 0
je 0x49b012
call fcn.0048fcc0
push 0
call fcn.0048a810
xor edi, edi
add esp, 4
cmp dword [0x4cd38c], edi
jle 0x49b0fe
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [edi*4 + 0x4cd390]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x49b083
push esi
call ebx
test eax, eax
mov edx, 0x7ffffffe
lea ecx, [ebp - 0x130]
mov eax, 0x80
jne 0x49b06c
push str.Title_Not_Found
call fcn.00401000
push str.Title_Not_Found
jmp 0x49b073
push esi
call fcn.00401000
push esi
call ebx
mov eax, dword [edi*4 + 0x4cd390]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi*4 + 0x4cd390]
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49b0ab
mov edx, dword [edi*4 + 0x4cd390]
mov esi, dword [eax + 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x4b7c94
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00402830
lea ecx, [ebp - 0x130]
push ecx
push str.SoftwareBillP_StudiosWinPatrolServices
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e390
lea esi, [ebp - 0x130]
call fcn.0048fb30
lea edx, [ebp - 0x238]
push edx
mov ecx, esi
call fcn.0047f1b0
inc edi
add esp, 0x1c
cmp edi, dword [0x4cd38c]
jl 0x49b030
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x49b110
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20
push 0x4b17de
push str.SoftwareBillP_StudiosWinPatrolHidden
lea ecx, [ebp - 0x24]
mov edx, 0x80000001
call fcn.0048e050
add esp, 0xc
cmp byte [ebp - 0x24], 0x50
je 0x49b283
test eax, eax
jle 0x49b15f
push str.SoftwareBillP_StudiosWinPatrolHidden
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [0x4c6448]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x24c]
push ecx
push 0
push edx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolHidden
push 0x80000001
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x49b1a1
mov eax, dword [ebp - 0x24c]
push eax
call edi
mov eax, dword [0x4c6448]
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0
push eax
push 0
push 0
push 0
push str.SoftwareBillP_StudiosDetected
push 0x80000001
call esi
test eax, eax
jne 0x49b1d6
mov ecx, dword [ebp - 0x24c]
push ecx
call edi
push 0x4c0040
lea edx, [ebp - 0x130]
push 0x104
push edx
call fcn.00402830
add esp, 0xc
push 0x4b17de
push str.SoftwareBillP_StudiosWinPatrolHidden
lea ecx, [ebp - 0x130]
mov edx, 0x80000001
call fcn.0048e390
add esp, 8
cmp dword [0x4cd38c], 0
je 0x49b21a
call fcn.0048fcc0
call fcn.00487c80
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x248]
call fcn.004807a0
xor edi, edi
add esp, 4
cmp dword [0x4cd38c], edi
jle 0x49b283
jmp 0x49b250
lea esi, [ebp - 0x238]
call fcn.0048fb30
test eax, eax
je 0x49b27a
mov edx, esi
push edx
push str.SoftwareBillP_StudiosWinPatrolHidden
lea ecx, [ebp - 0x130]
mov edx, 0x80000001
call fcn.0048e390
add esp, 8
inc edi
cmp edi, dword [0x4cd38c]
jl 0x49b250
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret