joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4691fa
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00469279
jae 0x469206
xor ecx, ecx
call fcn.00469279
jae 0x469230
xor eax, eax
call fcn.00469279
jae 0x469241
mov al, 0x10
call fcn.00469279
adc al, al
jae 0x469222
jne 0x46926e
stosb byte es:[edi], al
jmp 0x469207
call fcn.00469285
dec ecx
loop 0x46924d
mov eax, ebp
call fcn.00469283
jmp 0x46926f
lodsb al, byte [esi]
shr eax, 1
je 0x469295
adc ecx, 2
mov ebp, eax
jmp 0x46926f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00469283
cmp eax, 0x7d00
jae 0x46926d
cmp eax, 0x500
jae 0x46926e
cmp eax, 0x7f
ja 0x46926f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x469207
pop ebp
ret 8

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret
Function at 0x401409
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4807e8
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 0x480a28
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 0x4a0204
mov ecx, edi
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::TrimLeft
push 0x4a0200
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 [0x51651c]
mov eax, dword [0x516520]
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 0x4a021c
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 [0x516520]
add esi, 4
cmp eax, esi
jne 0x402774
jmp 0x4027c3
mov edx, dword [esp + 0xc]
push edx
push 0x4a01d8
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 0x48ae10
push 0x47fe4c
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 [0x516574]
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 0x48ae20
push 0x47fe4c
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 0x480a7c
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 0x516530
mov dword [0x51658c], 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 [0x516590], 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 [0x516594], eax
je 0x403417
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [0x516594]
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 [0x516588], 0x90000
jne 0x403436
test edi, edi
jne 0x40345a
mov dword [0x516588], 0x70000
jmp 0x40345a
cmp esi, 6
jne 0x40345a
test edi, edi
jne 0x40344b
mov dword [0x516588], 0xa0000
jmp 0x40345a
cmp edi, 1
jne 0x40345a
mov dword [0x516588], 0xd0000
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
mov dword [0x516584], eax
test eax, eax
pop esi
je 0x4034bb
mov eax, dword [0x516578]
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 [0x516578], eax
mov dword [0x51657c], edx
call fcn.004030d0
mov dword [0x516580], eax
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x4049a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404a91
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404a0c
push edi
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], ebx
cmp eax, ebx
jne 0x404a7e
push ebx
push esi
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, ebx
je 0x404a7e
push esi
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x404a77
lea edx, [esp + 0x14]
push edx
call fcn.0047a610
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0047a660
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0047a740
add esp, 0x18
mov dword [esp + 0x70], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x70]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x407dc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x480d36
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 0x407e66
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 0x407e66
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 0x4a021c
push ecx
mov word [esp + 0x22e], bx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407f27
cmp edi, 0xc
jbe 0x407ed0
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 0x407ed0
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 0x4a021c
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407f27
cmp edi, 4
jbe 0x407f27
mov ecx, dword [esi]
push 4
push 0x4a11e0
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 0x407f27
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 0x4a01d8
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 0x40ec40
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48123b
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 0x40ed5c
cmp eax, 4
jle 0x40ecca
push 4
push 0x4a11e0
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 0x40ecca
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 0x40ed21
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x40ed21
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 0x40ed21
cmp eax, 0x103
jae 0x40ed21
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x4a01d8
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 0x40ed5c
cmp eax, 0x103
jae 0x40ed5c
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x4a01d8
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 0x4105d0
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x4813a0
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.0042f370
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 0x410658
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41064d
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.0042f4a0
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.0042f5b0
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410756
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x4106c8
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040c130
mov eax, dword [0x5166dc]
cmp eax, 1
jne 0x4106ff
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 0x4a1fc4
jmp 0x41073c
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x410729
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x4a1fa0
jmp 0x41073c
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.0042f420
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 0x4105ea
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x4813a0
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.0042f370
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 0x410658
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41064d
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.0042f4a0
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.0042f5b0
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410756
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x4106c8
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040c130
mov eax, dword [0x5166dc]
cmp eax, 1
jne 0x4106ff
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 0x4a1fc4
jmp 0x41073c
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x410729
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x4a1fa0
jmp 0x41073c
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.0042f420
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 0x4126f0
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 0x412720
mov dword [edi + 0xe8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x412758
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
push esi
call edi
cmp eax, 0x102
jne 0x412751
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 0x418670
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x481eb1
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 0x4a01d8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push str.BootExecute
push 0x4a01d8
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.0042f3b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
push ecx
push 0x20019
lea ecx, [esp + 0x24]
call fcn.0042f450
push eax
lea ecx, [esp + 0x28]
call fcn.0042f460
push eax
call fcn.0041f4e0
add esp, 0x10
cmp al, 1
jne 0x41879d
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.0041f750
add esp, 0x14
cmp al, 1
jne 0x418792
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.0042f420
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