joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b439c
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
test dl, dl
je 0x4b43b5
add esp, 0xfffffff0
call fcn.004041d0
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4b4473
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403e7c
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
mov byte [ebx + 0xc], 0
cmp dword [ebx + 4], 0xffffffff
jne 0x4b43f7
push ebx
push 0x4b4604
call fcn.00422ad8
mov dword [ebx + 4], eax
mov byte [ebx + 0xc], 0
push 0
push 2
push 2
call sub.ws2_32.dll_socket
mov esi, eax
mov dword [ebx + 8], esi
cmp esi, 0xffffffff
jne 0x4b4426
mov ecx, 0x4b44a4
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
push 1
push 0x1a5a
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.ws2_32.dll_WSAAsyncSelect
test eax, eax
je 0x4b445d
cmp word [ebx + 0x1a], 0
je 0x4b445d
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 8]
call fcn.0040ce60
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b447a
lea eax, [ebp - 8]
call fcn.00404e8c
ret

Function at 0x4b44e8
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x65c], edx
mov dword [ebp - 0x658], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b45f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x640
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push ebx
lea eax, [ebp - 0x644]
push eax
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_recvfrom
mov ebx, eax
test ebx, ebx
jl 0x4b458f
cmp word [esi + 0x12], 0
je 0x4b45d9
push dword [ebp - 0x650]
call sub.ws2_32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x658]
call fcn.00405084
mov eax, dword [ebp - 0x658]
push eax
movzx eax, word [ebp - 0x652]
push eax
call sub.ws2_32.dll_ntohs
push eax
lea edx, [ebp - 0x644]
mov ecx, ebx
mov eax, dword [esi + 0x14]
call dword [esi + 0x10]
jmp 0x4b45d9
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x65c]
call fcn.00409a64
mov eax, dword [ebp - 0x65c]
call fcn.00405338
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp word [esi + 0x1a], 0
je 0x4b45d9
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x660]
call fcn.0040ce60
mov ecx, dword [ebp - 0x660]
mov edx, esi
mov eax, dword [esi + 0x1c]
call dword [esi + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b45fe
lea eax, [ebp - 0x660]
mov edx, 3
call fcn.00404eb0
ret
Function at 0x4b4678
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00405328
xor eax, eax
push ebp
push 0x4b46eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x10], 2
movzx eax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 0xc]
call fcn.00405338
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 8]
push eax
call sub.ws2_32.dll_sendto
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b46f2
lea eax, [ebp + 0xc]
call fcn.00404e8c
ret
Function at 0x4b5190
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
mov dword [esp], ecx
mov ebp, edx
mov esi, eax
mov dword [esp + 8], 0x1000
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403e7c
mov dword [esp + 4], eax
or ebx, 0xffffffff
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [esi + 4]
call fcn.00405338
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b5238
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp edi, 0xe7
je 0x4b520c
mov ecx, 0x4b5374
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
push 0xffffffffffffffff
mov eax, dword [esi + 4]
call fcn.00405338
push eax
call sub.kernel32.dll_WaitNamedPipeA
test eax, eax
jne 0x4b51c0
mov ecx, 0x4b538c
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
jmp 0x4b51c0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4b5349
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push ebp
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4b5349
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp edi, 0xea
je 0x4b529d
test edi, edi
je 0x4b529d
mov ecx, 0x4b53a4
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
jmp 0x4b5349
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4b5349
cmp dword [esp], 0
je 0x4b535c
mov eax, dword [esp + 4]
call fcn.0041d80c
mov dword [esp + 8], 0x1000
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 8]
call fcn.004036b8
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jbe 0x4b52f5
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4b5349
mov eax, dword [esp + 8]
sub dword [esp + 0xc], eax
lea edx, [esp + 0x10]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov dword [esp + 8], 0x1000
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 8]
call fcn.004036b8
cmp dword [esp + 0xc], 0
je 0x4b5349
jmp 0x4b52e3
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 4]
mov esi, dword [eax]
call dword [esi + 0x14]
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 4]
add esp, 0x1010
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b5bb0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405328
xor eax, eax
push ebp
push 0x4b5d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e8c
mov dword [ebp - 0x1c], 0x7d0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b5a10
push 0
push 0x4b5d4c
push 0x4b5d4c
push 0
push 0x4b5d50
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4b5d19
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, 0x400
call fcn.00402f44
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x418bec]
call fcn.0041d9d4
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push 0x401
lea eax, [ebp - 0x429]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4b5cbc
cmp dword [ebp - 0x28], 0
je 0x4b5cbc
lea edx, [ebp - 0x429]
mov ecx, dword [ebp - 0x28]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
jmp 0x4b5c87
mov eax, esi
mov edx, dword [ebx + 4]
call fcn.00404ee0
mov eax, ebx
call fcn.00403eac
mov eax, dword [ebp - 0x24]
call fcn.00402f60
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5d20
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x4b7060
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4b7069
mov eax, dword [ebp - 4]
add esp, 0xfffff794
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov eax, dword [ebp + 8]
call fcn.00404e8c
xor edx, edx
push ebp
push 0x4b71b5
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4b71ab
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.004036b8
mov dword [ebp - 0x5c], 0x44
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0x101
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00405338
push eax
mov eax, ebx
call fcn.00405338
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b7187
push 0x64
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4b7127
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x286d]
xor ecx, ecx
mov edx, 0x2801
call fcn.004036b8
push 0
lea eax, [ebp - 0xc]
push eax
push 0x2801
lea eax, [ebp - 0x286d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x286d]
mov ecx, 0x2801
call fcn.004050fc
cmp dword [ebp - 0xc], 0x2801
jae 0x4b7139
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b71c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7308
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4b7310
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b74cc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b74a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.00403390
push dword [ebp - 8]
push 0x4b74e4
push 0x4b74f0
push 0x4b74e4
lea edx, [ebp - 0xc]
movzx eax, byte [ebx + 8]
call fcn.00409978
push dword [ebp - 0xc]
push 0x4b7504
lea eax, [ebp - 0x10]
lea edx, [ebx + 9]
mov ecx, 0x201
call fcn.004050fc
push dword [ebp - 0x10]
push 0x4b7510
lea eax, [ebp - 0x14]
lea edx, [ebx + 0x20a]
mov ecx, 0x12c
call fcn.004050fc
push dword [ebp - 0x14]
push 0x4b74e4
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x3b0]
call fcn.00409978
push dword [ebp - 0x18]
push 0x4b74e4
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x3b4]
call fcn.00409978
push dword [ebp - 0x1c]
push 0x4b74e4
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x3b8]
call fcn.00409978
push dword [ebp - 0x20]
push 0x4b74e4
lea edx, [ebp - 0x24]
mov eax, dword [esi + 0x3bc]
call fcn.00409978
push dword [ebp - 0x24]
push 0x4b74e4
lea edx, [ebp - 0x28]
movzx eax, byte [ebx + 0x336]
call fcn.00409978
push dword [ebp - 0x28]
push 0x4b74e4
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x337]
call fcn.00409978
push dword [ebp - 0x2c]
push 0x4b74e4
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x33b]
call fcn.00409978
push dword [ebp - 0x30]
push 0x4b74e4
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x33f]
call fcn.00409978
push dword [ebp - 0x34]
push 0x4b74e4
lea eax, [ebp - 0x38]
lea edx, [ebx + 0x343]
mov ecx, 6
call fcn.004050fc
push dword [ebp - 0x38]
push 0x4b74e4
lea eax, [ebp - 0x3c]
lea edx, [ebx + 0x349]
mov ecx, 6
call fcn.004050fc
push dword [ebp - 0x3c]
lea eax, [ebp - 4]
mov edx, 0x1d
call fcn.0040523c
push 0
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b74b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b74d3
lea eax, [ebp - 0x3c]
mov edx, 0xf
call fcn.00404eb0
ret
Function at 0x4b7650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4b7733
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e8c
lea eax, [ebp - 8]
push eax
push 0x23
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4b76da
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4b76da
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.0040a5d8
push dword [ebp - 0x114]
push 0x4b7748
push 0x4b7754
push 0x4b7748
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040523c
mov eax, dword [ebp - 4]
call fcn.00409eec
test al, al
jne 0x4b7703
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.0040a134
mov eax, dword [ebp - 0x118]
call fcn.00409f10
test al, al
je 0x4b770d
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b773a
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00404eb0
lea eax, [ebp - 4]
call fcn.00404e8c
ret
Function at 0x4b8554
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b855c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b86e4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b86bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
lea edx, [ebx + 0x68]
mov ecx, 0x200
call fcn.004050fc
mov edx, dword [ebp - 0xc]
mov eax, 0x4b86fc
call fcn.00405484
test eax, eax
jle 0x4b85c7
mov eax, ebx
call fcn.004b89c0
lea edx, [ebp - 0x10]
call fcn.00409978
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0x4b8708
call fcn.004051c0
jmp 0x4b85e6
mov eax, ebx
call fcn.004b89c0
lea edx, [ebp - 0x14]
call fcn.00409978
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x4b8718
call fcn.004051c0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403390
push dword [ebp - 0x18]
push 0x4b8728
push 0x4b8734
push 0x4b8728
lea eax, [ebp - 0x1c]
lea edx, [ebx + 0x68]
mov ecx, 0x200
call fcn.004050fc
push dword [ebp - 0x1c]
push dword [ebp - 8]
push 0x4b8728
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x60]
call fcn.00409978
push dword [ebp - 0x20]
push 0x4b8728
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x64]
call fcn.00409978
push dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 0xa
call fcn.0040523c
push 0
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
call sub.kernel32.dll_WinExec
call fcn.0040b808
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004b5558
mov esi, eax
mov eax, dword [ebx + 0x698]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004b5558
cmp si, ax
je 0x4b869c
call fcn.0040b808
mov esi, dword [ebx + 0x698]
fstp qword [esi + 0x10]
wait
mov dword [esi + 0x18], 1
jmp 0x4b86ae
call fcn.0040b808
mov esi, dword [ebx + 0x698]
fstp qword [esi + 0x10]
wait
inc dword [esi + 0x18]
mov eax, ebx
call fcn.004b8f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b86c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b86eb
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00404eb0
ret
Function at 0x4b8740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4b8748
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8904
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b88e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
lea edx, [ebx + 0x68]
mov ecx, 0x200
call fcn.004050fc
mov edx, dword [ebp - 8]
mov eax, 0x4b891c
call fcn.00405484
test eax, eax
jle 0x4b87b2
mov eax, ebx
call fcn.004b89c0
lea edx, [ebp - 0xc]
call fcn.00409978
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x4b8928
call fcn.004051c0
jmp 0x4b87d1
mov eax, ebx
call fcn.004b89c0
lea edx, [ebp - 0x10]
call fcn.00409978
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 0x4b8938
call fcn.004051c0
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403390
push dword [ebp - 0x18]
push 0x4b8948
push 0x4b8954
push 0x4b8948
lea eax, [ebp - 0x1c]
lea edx, [ebx + 0x490]
mov ecx, 0x200
call fcn.004050fc
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 0x4b8948
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x488]
call fcn.00409978
push dword [ebp - 0x20]
push 0x4b8948
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x48c]
call fcn.00409978
push dword [ebp - 0x24]
push 0x4b8948
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x690]
call fcn.00409978
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 0xc
call fcn.0040523c
mov eax, dword [ebp - 0x14]
call fcn.00405338
push eax
call sub.kernel32.dll_WinExec
call fcn.0040b808
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004b5558
mov esi, eax
mov eax, dword [ebx + 0x698]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.004b5558
cmp si, ax
je 0x4b88a6
call fcn.0040b808
mov esi, dword [ebx + 0x698]
fstp qword [esi + 8]
wait
mov dword [esi + 0x1c], 1
jmp 0x4b88b8
call fcn.0040b808
mov esi, dword [ebx + 0x698]
fstp qword [esi + 8]
wait
inc dword [esi + 0x1c]
lea esi, [ebx + 0x484]
lea edi, [ebx + 0x272]
mov ecx, 0x84
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
call fcn.004b8f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b88e9
ret
Function at 0x4b9414
Capabilities:
Print debug messages
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4b9541
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b9526
xor eax, eax
push ebp
push 0x4b951f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0x4b9550
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b94b0
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00409a64
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x4b956c
call fcn.004051c0
mov eax, dword [ebp - 0x2c]
call fcn.00405338
push eax
call sub.kernel32.dll_OutputDebugStringA
call fcn.00404890
jmp 0x4b9526
xor eax, eax
push ebp
push 0x4b9501
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x24], 4
je 0x4b94ea
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceA
push 0x1f4
call sub.kernel32.dll_Sleep_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9508
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9548
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404eb0
ret
Function at 0x4b970c
Capabilities:
Modify service
Print debug messages
Query service configuration
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x4b9907
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b98e9
xor edx, edx
push ebp
push 0x4b98e2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xf01ff
push 0x4b9914
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b9773
call sub.kernel32.dll_GetLastError
xor eax, eax
push ebp
push 0x4b98c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x2c], 4
je 0x4b98ad
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x4b989e
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4b989e
mov eax, dword [ebp - 0x10]
push eax
call fcn.00406d18
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b9897
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
je 0x4b987e
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 2
je 0x4b987e
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x20]
push eax
push 0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x18]
push eax
push 0
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
push 2
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
jne 0x4b987e
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
call fcn.0040ce60
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x44]
mov ecx, 1
mov eax, 0x4b9930
call fcn.0040aac8
mov eax, dword [ebp - 0x34]
call fcn.00405338
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b989e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00402f60
ret
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b98cb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b990e
lea eax, [ebp - 0x48]
call fcn.00404e8c
lea eax, [ebp - 0x34]
call fcn.00404e8c
ret