Function at 0x478400
Capabilities:
Create process on windows
Self delete
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f98
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00474150
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 4
push eax
push str.ExeFileName
call esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004d5d55
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.delcameyoapp._d.bat
push ecx
call fcn.00475230
lea edx, [ebp - 0x14]
add esp, 0xc
push edx
call fcn.00474900
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
push str.MyBatFileName
call esi
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.set_attemptX__n:Repeat__ndel___ExeFileName____nif_exist___ExeFileName___goto_Retry__ngoto_Exit__n:Retry__nif__attempt___XXXXX_goto_Exit__ntimeout_1__nset_attempt_attempt_X__ngoto_Repeat__n:Exit__ndel___MyBatFileName____n
call fcn.00460bf0
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
mov edi, dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00425486
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00475c00
add esp, 8
test eax, eax
je 0x478617
push 0x40
lea edx, [ebp - 0x74]
push 0
push edx
call fcn.004d2a50
mov ecx, dword [ebp - 0x14]
push ecx
xor eax, eax
lea edx, [ebp - 0x10]
push str._cmd.exe___c___s_
push edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x48], ax
call fcn.00475230
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x47853f
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042258f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004d1e4b
add esp, 8
test eax, eax
jl 0x47860d
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x47860d
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4785b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4785d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4785f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422000
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47863a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret