joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474704
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x474768
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp + 8]
call fcn.00408980
push eax
mov eax, esi
call fcn.00408980
push eax
mov eax, ebx
call fcn.00408980
push eax
push 0x474778
push edi
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47476f
lea eax, [ebp + 8]
call fcn.00407aec
ret

Function at 0x474784
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x474843
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, 0x474858
mov dword [ebp - 0x34], eax
mov eax, ebx
call fcn.00408980
mov dword [ebp - 0x30], eax
mov eax, edi
call fcn.00408980
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
call fcn.00408980
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x40]
push ebx
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x47482d
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
sete bl
test bl, bl
je 0x47482d
test esi, esi
je 0x47482d
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47484a
lea eax, [ebp + 0x14]
call fcn.00407aec
ret

Function at 0x474864
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x4748c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp + 8]
call fcn.00408980
push eax
mov eax, esi
call fcn.00408980
push eax
mov eax, ebx
call fcn.00408980
push eax
push 0x4748d8
push edi
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4748cf
lea eax, [ebp + 8]
call fcn.00407aec
ret
Function at 0x4748e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x474983
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov eax, 0x474998
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.00408980
mov dword [ebp - 0x2c], eax
mov eax, esi
call fcn.00408980
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 8]
call fcn.00408980
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea ebx, [ebp - 0x3c]
push ebx
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x47496d
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47498a
lea eax, [ebp + 8]
call fcn.00407aec
ret

Function at 0x4762a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x476357
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x47632f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d498
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00407f14
cmp dword [ebp - 4], 0
jne 0x476303
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476339
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00408980
push eax
push 0x47636c
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476339
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47635e
lea eax, [ebp - 0xc]
call fcn.00407aec
lea eax, [ebp - 4]
call fcn.00407aec
ret

Function at 0x47aed4
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00405008
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x48223c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48237f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x482293
push 0x20a
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [0x50dc50]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20e]
mov eax, dword [ebp - 4]
call fcn.00407c74
jmp 0x482366
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
mov eax, ebx
call fcn.004821d8
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00482200
mov ebx, eax
test esi, esi
je 0x4822bb
dec esi
test esi, esi
jl 0x4822bb
cmp edi, ebx
jne 0x48229a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x214]
mov edx, edi
call fcn.004089d8
mov eax, dword [ebp - 0x214]
mov ecx, ebx
sub ecx, edi
sar ecx, 1
jns 0x4822dd
adc ecx, 0
mov edx, 1
call fcn.00408d4c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x482303
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jl 0x482366
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp word [eax], 0x22
jne 0x482366
mov eax, edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x48232a
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp word [ecx + eax*2 - 2], 0x22
jne 0x482366
mov eax, edx
mov dword [ebp - 0x218], eax
mov ebx, dword [ebp - 0x218]
test ebx, ebx
je 0x48234e
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
push eax
mov ecx, ebx
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00408d4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482386
lea eax, [ebp - 0x214]
call fcn.00407aec
ret

Function at 0x489558
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffee4
mov dword [esp], 0x11c
push esp
call sub.kernel32.dll_GetVersionExW
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x489595
mov al, 4
mov edx, dword [esp + 4]
cmp edx, 6
jne 0x489583
mov al, 7
jmp 0x4895ce
cmp edx, 5
jb 0x4895ce
mov al, 5
cmp dword [esp + 8], 1
jb 0x4895ce
mov al, 6
jmp 0x4895ce
cmp eax, 1
jne 0x4895cc
mov al, 1
cmp dword [esp + 4], 4
ja 0x4895b1
cmp dword [esp + 4], 4
jne 0x4895b3
cmp dword [esp + 8], 0xa
jb 0x4895b3
mov al, 2
cmp dword [esp + 4], 4
ja 0x4895c8
cmp dword [esp + 4], 4
jne 0x4895ce
cmp dword [esp + 8], 0x5a
jb 0x4895ce
mov al, 3
jmp 0x4895ce
xor eax, eax
add esp, 0x11c
ret
Function at 0x491bd8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x491cb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.004089a8
mov eax, dword [ebp - 0x18]
push eax
call fcn.00493d78
pop edx
call fcn.00491008
test al, al
je 0x491c20
mov ebx, 1
jmp 0x491c9e
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x491c4d
call sub.kernel32.dll_GetLastError_2
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x491c9e
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x491c81
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x491c81
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491cbb
lea eax, [ebp - 0x18]
call fcn.00407aec
ret

Function at 0x491cc8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x491d13
lea eax, [esp + 0x105]
push eax
push 0
push 0x491d44
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x491d13
lea eax, [esp + 0x105]
call fcn.00407ff4
cmp ebx, eax
setg al
jmp 0x491d15
xor eax, eax
mov ebx, eax
test bl, bl
je 0x491d2f
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0041f10c
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x50a7f8]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x492710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x492719
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x492896
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
inc dword [ebx + 0x18]
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00492590
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00408638
lea eax, [ebx + 0x22]
mov edx, dword [ebp - 4]
call fcn.0041f1ec
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.004923f0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00408638
lea eax, [ebx + 0x122]
mov edx, dword [ebp - 4]
call fcn.0041f1ec
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.004924d4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00408638
lea eax, [ebx + 0x222]
mov edx, dword [ebp - 4]
call fcn.0041f1ec
cmp word [esi + 0x4a], 0
je 0x4927d6
push edi
lea eax, [ebp - 9]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x4c]
call dword [esi + 0x48]
cmp byte [ebp - 9], 0
jne 0x492847
lea eax, [ebp - 8]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00408a14
mov eax, dword [ebp - 8]
call fcn.0041e64c
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00408a14
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x122]
mov ecx, pe_nt_image_headers32
call fcn.00408a14
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
mov edx, 1
call fcn.004915b0
mov eax, dword [ebp - 8]
call fcn.00408980
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
mov dword [esi + 0x3ac], eax
xor eax, eax
mov dword [esi + 0x3b0], eax
movzx ebx, byte [ebp - 9]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49289d
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00407b4c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00407b4c
lea eax, [ebp - 8]
call fcn.00407aec
lea eax, [ebp - 4]
call fcn.00407b10
ret
Function at 0x499a90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0
push 0x499b58
call sub.user32.dll_FindWindowW
mov ebx, eax
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x499ace
push 0
push 3
push 0x499b7c
call sub.user32.dll_RegisterWindowMessageW
push eax
push ebx
call sub.user32.dll_PostMessageW
jmp 0x499b51
push 0x499ba4
call sub.user32.dll_RegisterWindowMessageW
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4368a4]
call fcn.00405ed0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x499b4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push 0x49992c
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x499b34
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00441934
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_PostMessageW
inc edi
dec esi
jne 0x499b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499b51
mov eax, dword [ebp - 8]
call fcn.00405f00
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aca4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4acaff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x4acb18
call fcn.00407ecc
push 0xa
lea eax, [ebp - 0x14]
push eax
push 0x59
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
cmp eax, 3
sete bl
test bl, bl
je 0x4acaab
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0x5a
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
cmp eax, 3
je 0x4acaaf
xor eax, eax
jmp 0x4acab1
mov al, 1
mov ebx, eax
test bl, bl
je 0x4acae4
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004089d8
push dword [ebp - 0x18]
push 0x4acb30
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xa]
call fcn.004089d8
push dword [ebp - 0x1c]
mov eax, esi
mov edx, 3
call fcn.00408c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acb06
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00407b4c
ret

Function at 0x4acb40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4acca6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00407aec
lea eax, [ebp - 4]
call fcn.004aca4c
lea eax, [ebp - 0xc]
call fcn.0046e0a0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00424d38
lea eax, [ebp - 0x14]
call fcn.004aca4c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00424d38
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x4accc0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00408c64
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041e4e4
test al, al
je 0x4acc8b
mov eax, dword [ebp - 8]
call fcn.00408980
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4acc8b
xor eax, eax
push ebp
push 0x4acc84
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4acb34
xor ecx, ecx
mov edx, 0xa400
mov eax, dword [ebp - 0x1c]
call fcn.0040e280
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4acc66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x220]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00405008
push pe_nt_image_headers32
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, ebx
lea edx, [ebp - 0x220]
call fcn.004089d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acc6d
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_DestroyWindow
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4accad
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00407b4c
ret
Function at 0x4b533c
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x4b5468
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4b544b
xor eax, eax
push ebp
push 0x4b5444
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
mov eax, dword [ebp - 4]
call fcn.00408980
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b542d
xor eax, eax
push ebp
push 0x4b5426
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceW
test eax, eax
je 0x4b540f
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b540f
jmp 0x4b5409
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b540f
cmp ebx, dword [ebp - 0x18]
ja 0x4b540f
cmp dword [ebp - 0x28], 4
jne 0x4b53e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b542d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b544b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
cmp dword [ebp - 0x28], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b546f
lea eax, [ebp - 4]
call fcn.00407aec
ret
Function at 0x4b5478
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x4b559f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4b5582
xor eax, eax
push ebp
push 0x4b557b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x24
mov eax, dword [ebp - 4]
call fcn.00408980
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b5564
xor eax, eax
push ebp
push 0x4b555d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4b5546
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b5546
jmp 0x4b5540
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b5546
cmp ebx, dword [ebp - 0x14]
ja 0x4b5546
cmp dword [ebp - 0x24], 1
jne 0x4b5518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5564
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5582
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
cmp dword [ebp - 0x24], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b55a6
lea eax, [ebp - 4]
call fcn.00407aec
ret
Function at 0x4b5870
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4b5878
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x4b59ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b59da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4b58ce
lea eax, [ebp - 0x20]
call fcn.0047a024
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041ec70
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00424d38
lea eax, [ebp - 0x14]
mov ecx, 0x4b5a1c
mov edx, dword [ebp - 4]
call fcn.00408bdc
lea eax, [ebp - 0x18]
mov ecx, 0x4b5a38
mov edx, dword [ebp - 4]
call fcn.00408bdc
lea eax, [ebp - 0x10]
mov ecx, 0x4b5a5c
mov edx, dword [ebp - 4]
call fcn.00408bdc
push 2
mov eax, dword [ebp - 0x10]
call fcn.00408980
mov esi, eax
push esi
mov eax, dword [ebp - 0x14]
call fcn.00408980
mov ebx, eax
push ebx
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne 0x4b592c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b59e4
push 2
push ebx
mov eax, dword [ebp - 0x18]
call fcn.00408980
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
jne 0x4b5957
push 2
push ebx
push esi
call sub.kernel32.dll_MoveFileExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b59e4
mov eax, 0x4b5a80
call fcn.004b5478
lea eax, [ebp - 0x24]
call fcn.0046b624
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, 0x4b5a9c
call fcn.00408bdc
lea eax, [ebp - 0x28]
mov ecx, 0x4b5ac4
mov edx, dword [ebp - 0x14]
call fcn.00408bdc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.0041ef18
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4b5ae8
call fcn.00408bdc
lea eax, [ebp - 0x2c]
call fcn.0046b624
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x1388
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00474784
mov eax, 0x4b5a80
call fcn.004b533c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b59e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5a06
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00407b4c
ret
Function at 0x4b6cfc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407bd0
xor eax, eax
push ebp
push 0x4b6e2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0x4b6e3c
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
push ebp
push 0x4b6dfd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x4b6e74
call fcn.004b6ed4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0041d498
mov eax, dword [ebp - 0x10]
mov edx, 0x4b6e9c
call fcn.00408d14
je 0x4b6d8d
mov eax, dword [0x50ab20]
cmp dword [eax], 0
jne 0x4b6d97
mov dl, 1
mov eax, dword [0x4aa898]
call fcn.004ad340
mov edx, dword [0x50ab20]
mov dword [edx], eax
jmp 0x4b6d97
push 0x4b6ea0
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
push eax
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x4b62f0]
call fcn.004bd3f8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b6dec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0044c49c
mov eax, dword [ebp - 0xc]
call fcn.0044c564
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6df3
mov eax, dword [ebp - 0xc]
call fcn.00405f00
ret