Function at 0x403050
Capabilities:
Create service
Disable system features via registry on windows
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40307a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
lea eax, [esp + 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov eax, dword [0x40ebd8]
push 0
push 0
push 0
lea ecx, [esp + 0x228]
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4030d3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSetServices_
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x40ebd8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push 0
push 2
rep movsb byte es:[edi], byte [esi]
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40319a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [0x40ebdc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push str.JVM_Library
push edx
call ebx
test eax, eax
je 0x4031df
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0x10]
push 4
push 0x40ebe0
push 4
push 0
push str.JVM_Option_Count
push ecx
call ebx
test eax, eax
je 0x403213
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [0x40ebe0]
xor esi, esi
test eax, eax
jle 0x40326e
push esi
lea eax, [esp + 0x11c]
push str.JVM_Option_Number__d
push eax
call fcn.00404daa
mov ecx, dword [0x40ebe4]
xor eax, eax
add esp, 0xc
mov edx, dword [ecx + esi*4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x128]
push edx
push eax
call ebx
test eax, eax
jne 0x403582
mov eax, dword [0x40ebe0]
inc esi
cmp esi, eax
jl 0x40321e
mov edx, dword [0x40ebe8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push str.Start_Class
push edx
call ebx
test eax, eax
je 0x4032ad
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [str.main]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
push str.Start_Method
push ecx
call ebx
test eax, eax
je 0x4032ec
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [esp + 0x10]
push 4
push 0x40ebec
push 4
push 0
push str.Start_Param_Count
push eax
call ebx
test eax, eax
je 0x403320
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [0x40ebec]
xor esi, esi
test eax, eax
jle 0x40337a
push esi
lea edx, [esp + 0x11c]
push str.Start_Param_Number__d
push edx
call fcn.00404daa
mov eax, dword [0x40ebf0]
or ecx, 0xffffffff
add esp, 0xc
mov edx, dword [eax + esi*4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x124]
push eax
push ecx
push edx
call ebx
test eax, eax
jne 0x4034fc
mov eax, dword [0x40ebec]
inc esi
cmp esi, eax
jl 0x40332b
mov edx, dword [0x40ebf4]
test edx, edx
je 0x40348f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
push str.Stop_Class
push ecx
call ebx
test eax, eax
je 0x4033c1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [str.main]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.Stop_Method
push eax
call ebx
test eax, eax
je 0x403400
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [esp + 0x10]
push 4
push 0x40ebf8
push 4
push 0
push str.Stop_Param_Count
push edx
call ebx
test eax, eax
je 0x403434
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [0x40ebf8]
xor esi, esi
test eax, eax
jle 0x40348f
push esi
lea ecx, [esp + 0x11c]
push str.Stop_Param_Number__d
push ecx
call fcn.00404daa
mov edx, dword [0x40ebfc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov edx, dword [edx + esi*4]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
lea eax, [esp + 0x128]
push eax
push ecx
call ebx
test eax, eax
jne 0x40353f
mov eax, dword [0x40ebf8]
inc esi
cmp esi, eax
jl 0x40343f
mov edx, dword [0x40ec00]
test edx, edx
je 0x4034d2
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.System.out_File
push eax
call ebx
test eax, eax
je 0x4034d2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [0x40ec04]
test edx, edx
je 0x403515
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push str.System.err_File
push edx
call ebx
test eax, eax
je 0x403515
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [0x40ec0c]
test edx, edx
je 0x403558
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
push str.Current_Directory
push ecx
call ebx
test eax, eax
je 0x403558
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [0x40ec08]
test edx, edx
je 0x40359b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.Path
push eax
call ebx
test eax, eax
je 0x40359b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
mov edi, str.SYSTEMCurrentControlSetServicesEventLogApplicationJavaService
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403601
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x218]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call ebx
test eax, eax
je 0x403643
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.TypesSupported
push ecx
mov dword [esp + 0x2c], 7
call ebx
test eax, eax
je 0x40367b
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [esp + 0x10]
push eax
call ebp
mov edi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x40ebd8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push 0
push 2
rep movsb byte es:[edi], byte [esi]
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403709
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 2
push eax
mov eax, dword [esp + 0x20]
push str.EventMessageFile
push eax
call ebx
test eax, eax
je 0x40374a
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x2c], 7
call ebx
test eax, eax
je 0x403782
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret