joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ae5
Capabilities:
Inspect section memory permissions

Disassembly:
pop ecx
add eax, esi
cmp dword [eax], ebx
je 0x436aec
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x436ae7
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x436ad1
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x436ad9
cmp edx, ebx
jne 0x436c27
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x436aa8
add eax, dword [eax + 4]
jmp 0x436a95
mov dword [ebp + 0xc], ebx
jmp 0x436af7

Function at 0x436aee
Capabilities:
Inspect section memory permissions

Disassembly:
or al, 0xeb
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x436b0f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x436b2d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x436b8b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x436b72
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x436b7b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x436b85
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x436b67
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x436af1
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x436bd8
dec eax
je 0x436bcf
sub eax, 3
je 0x436bc6
mov dword [ebp - 4], 0x40
jmp 0x436bf5
mov dword [ebp - 4], 4
jmp 0x436bdb
mov dword [ebp - 4], 0x20
jmp 0x436bdb
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x436c27
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x436ba7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00436438
invalid
Function at 0x401409
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ca08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CWnd::ScreenToClient
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push ebx
push edx
push 0x50000000
push eax
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Create
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
lea eax, [esp + 0xc]
lea ecx, [esi + 0x40]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x5c], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], edx
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x402710
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x47cc48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov edi, dword [esp + 0x20]
push 0x49b204
mov ecx, edi
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::TrimLeft
push 0x49b200
mov ecx, edi
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4027c3
mov esi, dword [0x50c99c]
mov eax, dword [0x50c9a0]
cmp eax, esi
je 0x4027c3
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
mov edx, dword [edi]
push edx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x14]
push 0x49b21c
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call ebx
test eax, eax
jne 0x4027b0
mov eax, dword [0x50c9a0]
add esi, 4
cmp eax, esi
jne 0x402774
jmp 0x4027c3
mov edx, dword [esp + 0xc]
push edx
push 0x49b1d8
push edi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486e10
push 0x47c06c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ecx], edx
mov al, byte [eax + 4]
mov byte [ecx + 4], al
lea edi, [ebp - 0x40]
lea ecx, [ebx + esi]
push ecx
call fcn.00402980
add esp, 4
test eax, eax
je 0x402f7e
mov dword [edi], ebx
add ebx, dword [0x50c9f4]
add edi, 4
cmp ebx, 5
jl 0x402e9f
mov dword [ebp - 0x50], ebx
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x40]
cmp ecx, 5
jg 0x402f0c
lea edx, [ebp - 0x40]
mov al, byte [ecx + ebx]
cmp al, 0xe8
je 0x402ef1
cmp al, 0xe9
jne 0x402efe
mov eax, dword [ecx + ebx + 1]
sub eax, ebx
add eax, dword [ebp + 8]
mov dword [ecx + ebx + 1], eax
add edx, 4
mov ecx, dword [edx]
test ecx, ecx
jle 0x402f0c
cmp ecx, 5
jle 0x402ee6
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
push 0x40
mov edi, dword [ebp - 0x50]
lea ecx, [edi + 5]
push ecx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea edx, [ebp - 0x4c]
push edx
push 0x40
push 5
mov eax, dword [ebp + 8]
push eax
call esi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, ebx
sub eax, 5
mov dword [ebp - 0x48], eax
add ebx, edi
mov dword [ebp - 0x54], ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
mov edx, dword [ebp + 0xc]
sub edx, ecx
sub edx, 5
mov dword [ebp - 0x64], edx
mov edi, dword [ebp + 8]
mov al, 0xe9
stosb byte es:[edi], al
mov eax, dword [ebp - 0x64]
stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x50], ebx
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486e20
push 0x47c06c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov al, byte [ecx + 4]
mov byte [esi + 4], al
jmp 0x403016
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Check os version
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47cc9c
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov esi, eax
mov cl, ah
and esi, 0xff
and ecx, 0xff
cmp esi, 6
mov edi, ecx
jne 0x403417
push 0x50c9b0
mov dword [0x50ca0c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 4
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x21c], 0
je 0x40338b
mov ecx, eax
call sub.MFC42u.DLL_CString::CString_4
jmp 0x40338d
xor eax, eax
test eax, eax
mov dword [esp + 0x21c], 0xffffffff
mov dword [0x50ca10], eax
je 0x4033a8
mov ecx, eax
call sub.MFC42u.DLL_CString::Empty
push 4
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x21c], 1
je 0x4033ce
mov ecx, eax
call sub.MFC42u.DLL_CString::CString_4
jmp 0x4033d0
xor eax, eax
test eax, eax
mov dword [esp + 0x21c], 0xffffffff
mov dword [0x50ca14], eax
je 0x403417
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [0x50ca14]
lea eax, [esp + 0xc]
push eax
push str._simageres.dll
push ecx
mov word [esp + 0x21e], 0
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
cmp esi, 5
mov dword [0x50ca08], 0x90000
jne 0x403436
test edi, edi
jne 0x40345a
mov dword [0x50ca08], 0x70000
jmp 0x40345a
cmp esi, 6
jne 0x40345a
test edi, edi
jne 0x40344b
mov dword [0x50ca08], 0xa0000
jmp 0x40345a
cmp edi, 1
jne 0x40345a
mov dword [0x50ca08], 0xd0000
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
mov dword [0x50ca04], eax
test eax, eax
pop esi
je 0x4034bb
mov eax, dword [0x50c9f8]
test eax, eax
jne 0x4034bb
push 0x44
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x40349f
push 0x4032e0
push str.LoadLibraryExW
push str.kernel32.dll
mov ecx, eax
call fcn.00403030
jmp 0x4034a1
xor eax, eax
lea edx, [eax + 0x1c]
mov ecx, eax
mov dword [0x50c9f8], eax
mov dword [0x50c9fc], edx
call fcn.004030d0
mov dword [0x50ca00], eax
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x407c80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47cf56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call sub.MFC42u.DLL_CString::Empty
mov esi, dword [esp + 0x230]
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
mov eax, dword [esi]
mov edi, dword [eax - 8]
cmp edi, 9
jbe 0x407d26
push 9
push str.system32_
push edi
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x407d26
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x49b21c
push ecx
mov word [esp + 0x22e], bx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407de7
cmp edi, 0xc
jbe 0x407d90
mov edx, dword [esi]
push 0xc
push str.SystemRoot_
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x407d90
lea eax, [esp + 0x18]
push 0x104
push eax
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
mov word [esp + 0x21e], bx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
add eax, 0x18
lea edx, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x18]
push 0x49b21c
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407de7
cmp edi, 4
jbe 0x407de7
mov ecx, dword [esi]
push 4
push 0x49c1e0
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x407de7
lea edx, [esp + 0x14]
push 4
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
push 0x49b1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x40eb00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47d45b
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 8]
test eax, eax
je 0x40ec1c
cmp eax, 4
jle 0x40eb8a
push 4
push 0x49c1e0
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40eb8a
lea ecx, [esp + 8]
push 4
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
mov ecx, esi
mov dword [esp + 0x224], 0
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x40ebe1
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x40ebe1
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x40ebe1
cmp eax, 0x103
jae 0x40ebe1
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x49b1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x40ec1c
cmp eax, 0x103
jae 0x40ec1c
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x49b1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x410490
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x47d5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call fcn.0042e3d0
push 0xf003f
push ebp
push ebp
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebp
je 0x410518
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41050d
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0042e500
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.0042e610
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410616
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x410588
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040bff0
mov eax, dword [0x50cb5c]
cmp eax, 1
jne 0x4105bf
mov edx, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49cfc4
jmp 0x4105fc
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x4105e9
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49cfa0
jmp 0x4105fc
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push str.Services:__d__Hidden_Services:__d
lea edx, [esp + 0x1c]
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x60]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e480
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4104aa
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x47d5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call fcn.0042e3d0
push 0xf003f
push ebp
push ebp
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebp
je 0x410518
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41050d
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0042e500
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.0042e610
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410616
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x410588
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040bff0
mov eax, dword [0x50cb5c]
cmp eax, 1
jne 0x4105bf
mov edx, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49cfc4
jmp 0x4105fc
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x4105e9
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49cfa0
jmp 0x4105fc
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push str.Services:__d__Hidden_Services:__d
lea edx, [esp + 0x1c]
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x60]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e480
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4124d0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x104], 1
lea ebx, [edi + 0xec]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0xe8]
test esi, esi
je 0x412500
mov dword [edi + 0xe8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x412538
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
push esi
call edi
cmp eax, 0x102
jne 0x412531
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x417d20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47e011
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebx, ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], ebx
call sub.MFC42u.DLL_CString::CString_4
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.autocheck_autochk_
mov byte [esp + 0x13c], 1
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ebp, [eax + eax + 2]
lea eax, [esp + 0x14]
push str.RegistryMachineSystemCurrentControlSetControlSession_Manager
push 0x49b1d8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push str.BootExecute
push 0x49b1d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov ecx, ebp
mov esi, str.autocheck_autochk_
mov edx, ecx
lea edi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0xc
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x20]
add ebp, 2
call fcn.0042e410
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
push ecx
push 0x20019
lea ecx, [esp + 0x24]
call fcn.0042e4b0
push eax
lea ecx, [esp + 0x28]
call fcn.0042e4c0
push eax
call fcn.0041e830
add esp, 0x10
cmp al, 1
jne 0x417e4d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push ebp
push eax
push 7
push ecx
call fcn.0041eaa0
add esp, 0x14
cmp al, 1
jne 0x417e42
mov ebx, 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 1
call fcn.0042e480
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x130]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x417ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
xor esi, esi
call sub.MFC42u.DLL_CString::CString_4
push str.AutoRun
lea eax, [esp + 8]
push 0x49b1d8
push eax
mov dword [esp + 0x34], esi
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x10]
call fcn.0042e410
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x20019
mov byte [esp + 0x30], 1
call fcn.0042e4b0
push eax
lea ecx, [esp + 0x18]
call fcn.0042e4c0
push eax
call fcn.0041e830
add esp, 0x10
cmp al, 1
jne 0x417f4f
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.0041ea20
add esp, 8
cmp al, 1
jne 0x417f44
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0042e480
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4