Function at 0x404b75
Capabilities:
Create process on windows
Delete file
Enumerate files on windows
Persist via windows service
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523f79
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x56f470]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
push edi
mov eax, dword [0x56f470]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
push 9
mov ebx, ecx
pop ecx
xor eax, eax
push 0x20005
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
xor edi, edi
push 0x55094c
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x2c], eax
cmp eax, edi
je 0x404bf9
push 4
push 0x5510ec
lea esi, [esp + 0x34]
call fcn.004032a2
mov esi, eax
jmp 0x404bfb
xor esi, esi
cmp esi, edi
je 0x404c10
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040339a
mov esi, eax
lea eax, [esp + 0x2c]
call fcn.00403282
cmp esi, edi
je 0x404c50
cmp dword [esp + 0x74], edi
je 0x404c50
push str.ck_W_Rd
push 0x3ed
mov ecx, ebx
call fcn.0040dac1
cmp dword [esp + 0x74], 1
je 0x404c40
call fcn.00403504
call fcn.00403443
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00410804
push eax
lea ecx, [esp + 0x18]
call fcn.00405a94
xor eax, eax
mov dword [esp + 0x820], edi
push 0x208
mov word [esp + 0x2e8], ax
lea eax, [esp + 0x2ea]
push edi
push eax
call fcn.004fd550
add esp, 0xc
lea eax, [esp + 0x2e4]
push eax
push edi
call fcn.004065a0
lea eax, [esp + 0x2ec]
push eax
lea eax, [esp + 0x20]
push 0x55112c
push eax
call fcn.00403a02
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 0x14
mov ebx, 0x80
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
lea eax, [esp + 0x2e4]
push eax
push 7
call fcn.004065a0
lea eax, [esp + 0x2ec]
push eax
lea eax, [esp + 0x20]
push str._s.lnk
push eax
call fcn.00403a02
add esp, 0x14
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
push 0x25
call fcn.004065a0
lea eax, [esp + 0x2ec]
push eax
lea eax, [esp + 0x20]
push 0x551178
push eax
call fcn.00403a02
add esp, 0x14
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc.exe
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
push str._s_fscsvc.dll
lea eax, [esp + 0x1c]
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x2e4]
push eax
push 0x1a
call fcn.004065a0
lea eax, [esp + 0x2ec]
push eax
lea eax, [esp + 0x20]
push str._s_fsclauncher.exe
push eax
call fcn.00403a02
add esp, 0x14
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc_fsc.exe
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc_fscsvc.dll
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc_fshk.dll
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc_fsf.sys
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x18]
push str._s_fsc_fsf.inf
push eax
call fcn.00403a02
add esp, 0xc
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
add eax, 0xc4
push str.upg
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004060f6
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x18], eax
call fcn.00403817
cmp dword [esp + 0x18], 0xffffffff
je 0x404f31
test dword [esp + 0x94], 0x10
jne 0x404f11
lea eax, [esp + 0xc0]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0xc4]
lea eax, [esp + 0x1c]
push str._supg_s
push eax
call fcn.00403a02
add esp, 0x10
push ebx
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404ed3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00406567
mov esi, 0x5512bc
push esi
test eax, eax
je 0x40515e
call fcn.004063f4
pop ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
mov ebx, str.ck_W_rY6R
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 1
push dword [eax]
mov esi, 0x3ed
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [eax + 0xc4]
push eax
push 0x85
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x5512e8
call fcn.004063f4
pop ecx
push eax
push 0x5512e8
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 2
push dword [eax]
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [eax + 0xc4]
push eax
push 0x87
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x551300
call fcn.004063f4
pop ecx
push eax
push 0x551300
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 3
push dword [eax]
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [eax + 0xc4]
push eax
push 0x89
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x551314
call fcn.004063f4
pop ecx
push eax
push 0x551314
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 4
push dword [eax]
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
call fcn.00403d88
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x14]
mov ecx, dword [ecx + 0xc4]
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 0x92
push ecx
push eax
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405371
call fcn.004063f4
pop ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
mov ebx, str.ck_W_rY6R
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x820], 5
push dword [eax]
mov ecx, esi
push 0x3ed
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
push dword [esp + 0x14]
lea eax, [esi + 0xc4]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
push eax
push 0x84
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405840
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push 0x5512e8
call fcn.004063f4
pop ecx
push eax
push 0x5512e8
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 6
push dword [eax]
push 0x3ed
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
mov eax, dword [eax]
push eax
push 0x86
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405840
push 0xa
call esi
push 0x551300
call fcn.004063f4
pop ecx
push eax
push 0x551300
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 7
push dword [eax]
push 0x3ed
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
mov eax, dword [eax]
push eax
push 0x88
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405840
push 0xa
call esi
push 0x551314
call fcn.004063f4
pop ecx
push eax
push 0x551314
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 8
push dword [eax]
push 0x3ed
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
call fcn.00403d88
mov ecx, dword [esp + 0x20]
push dword [esp + 0x14]
mov ecx, dword [ecx]
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 0x91
push ecx
push eax
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405840
push 0xa
call esi
mov esi, 0x3ed
push 0x551324
call fcn.004063f4
pop ecx
push eax
push 0x551324
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 9
push dword [eax]
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
add eax, 0xc4
mov dword [esp + 0x24], eax
mov eax, dword [eax]
push eax
push 0x8b
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.launcher.exe
call fcn.004063f4
pop ecx
push eax
push str.launcher.exe
lea ecx, [esp + 0x1c]
call fcn.00406383
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00405fd4
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x820], 0xa
push dword [eax]
push esi
call fcn.0040dac1
mov byte [esp + 0x820], 0
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
mov eax, dword [eax]
push eax
push 0x8a
call fcn.004065de
add esp, 0xc
test eax, eax
je 0x405845
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00410804
push eax
lea ecx, [esp + 0x1c]
call fcn.00405a94
push 0x8e
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x828], 0xb
call fcn.00405a3b
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 0xc]
push ebx
lea ecx, [esp + 0x1c]
call fcn.00405c1a
lea ecx, [ebx + 1]
push ecx
push eax
call fcn.004fc86a
push eax
call fcn.00406211
add esp, 0xc
test ebx, ebx
js 0x405881
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax - 8]
jg 0x405881
mov dword [eax - 0xc], ebx
mov byte [ebx + eax], 0
lea ebx, [esp + 0x18]
call fcn.004059d7
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x40550f
call fcn.00403d47
mov edx, dword [esp + 0x18]
mov ecx, dword [0x5779bc]
call fcn.00401900
mov eax, dword [esp + 0x20]
push dword [eax]
lea eax, [esp + 0x2e8]
push 0x551178
push 0x104
push eax
call fcn.00405e60
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp dword [ecx + 0xbc], ebx
je 0x40555c
push 0x551374
push esi
call fcn.0040dac1
lea ebx, [esp + 0x2e4]
call fcn.0040699a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc0], ebx
je 0x405589
push str.ck_WeR
push esi
call fcn.0040dac1
lea eax, [esp + 0x2e4]
push eax
call fcn.00406a93
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1c]
push 0x5513c4
push esi
call fcn.0040dac1
xor eax, eax
push 0x208
mov word [esp + 0x4f8], ax
lea eax, [esp + 0x4fa]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004fd550
mov eax, dword [esp + 0x2c]
add esp, 0xc
push dword [eax]
lea eax, [esp + 0x4f8]
push str._s_svc.bat
push 0x104
push eax
call fcn.00405e60
push 0x5513ec
lea eax, [esp + 0x508]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004fb9da
add esp, 0x1c
cmp dword [esp + 0x28], ebx
je 0x4057ea
call fcn.00410804
push eax
lea ecx, [esp + 0x28]
call fcn.00405a94
push 0x5513f4
lea ecx, [esp + 0x28]
mov byte [esp + 0x824], 0xc
call fcn.00405b2a
test al, al
jne 0x405636
push 0x34
push 0x5513f4
lea ecx, [esp + 0x2c]
call fcn.00405cf1
lea eax, [esp + 0x24]
push eax
mov ecx, str.sc_delete_fsc_r_n
mov byte [esp + 0x824], 0xd
call fcn.00405b85
lea eax, [esp + 0x24]
push eax
mov ecx, str.sc_create_fsc_binPath___SystemRoot__system32_svchost.exe__k_FscSvc__type_share_start_auto_depend__RpcSs__DisplayName__FSC_Service__r_n
call fcn.00405b85
lea eax, [esp + 0x24]
push eax
mov ecx, str.REG_ADD_HKLMSystemCurrentControlSetServices_fscParameters__f_r_n
call fcn.00405b85
lea eax, [esp + 0x24]
push eax
mov ecx, str.REG_ADD_HKLMSystemCurrentControlSetServices_fscParameters__f__v_ServiceDll__t_REG_EXPAND_SZ__d
call fcn.00405b85
push 0x55157c
push ebx
call fcn.004fc4ee
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
push 0x105
lea eax, [esp + 0x718]
push eax
push ebx
call fcn.004fcc8d
add esp, 0x1c
push 0x550ebc
push ebx
call fcn.004fc4ee
lea eax, [esp + 0x70c]
push eax
lea eax, [esp + 0x30]
push str.__s_fscsvc.dll__r_n
push eax
call fcn.00405df6
add esp, 0x14
lea eax, [esp + 0x24]
push eax
mov ecx, str.REG_ADD__HKLMSOFTWAREMicrosoftWindows_NTCurrentVersionSvchost___f__v_FscSvc__t_REG_MULTI_SZ__d_fsc_r_n
call fcn.00405b85
mov eax, dword [esp + 0x24]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x20], ecx
jle 0x4056f7
push ecx
lea ecx, [esp + 0x28]
call fcn.00405ac6
mov eax, dword [esp + 0x24]
push dword [esp + 0x28]
push 1
push dword [esp + 0x28]
push eax
call fcn.004fae24
push dword [esp + 0x38]
call fcn.004faf5c
add esp, 0x14
call fcn.00406567
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x405746
push 0x551920
push str.kernel32
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405746
lea ecx, [esp + 0x20]
push ecx
call eax
push 0x38
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004fd550
lea eax, [esp + 0x500]
mov dword [esp + 0x50], eax
add esp, 0xc
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x551604
mov dword [esp + 0x4c], 0x551878
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x2c], ebx
je 0x4057cc
push 0x551940
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4057cc
push ebx
call eax
lea eax, [esp + 0x4f4]
push eax
call edi
mov byte [esp + 0x820], 0xb
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.00403817
mov ecx, dword [esp + 0x1c]
push 0x551610
push esi
call fcn.0040dac1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00403817
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00403817
xor eax, eax
inc eax
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004fa36f
mov esp, ebp
pop ebp
ret
mov esi, 0x3ed
mov edi, dword [esp + 0x1c]
add edi, 0x178
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x14]
push eax
push ebx
push 0x551350
push edi
call fcn.00403a02
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push dword [edi]
push esi
call fcn.0040dac1
lea ecx, [ebx - 0x10]
call fcn.00403817
xor eax, eax
jmp 0x40581c
push 0x80070057
call fcn.00403963
int3