Function at 0x401050
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0xc23ed8], 0x594
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], eax
jne 0x401089
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push str.rurukegafefolelakurewohofocaha_facup_fex
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x804c58]
mov edx, dword [0x804c5c]
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.00401030
mov eax, dword [0x804c60]
mov ecx, dword [0x804c64]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x4010d3
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0xc23ed8]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401140
push edi
lea edx, [ebp - 0x870]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0x30
lea ecx, [ebp - 0x6c]
push edi
push ecx
mov dword [ebp - 0x70], edi
call fcn.00402330
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc23ed8]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40115a
mov dword [0xc23474], 0xedeb2e40
jmp 0x401182
cmp ecx, 0x3eb
jne 0x401182
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_AreAnyAccessesGranted]
mov dword [0xc22e24], edi
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add edx, esi
shr esi, cl
mov dword [ebp - 0x14], edx
mov dword [0xc23470], 0xf4ea3dee
add esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ecx
call fcn.00401040
lea eax, [ebp - 0x18]
call fcn.00401020
sub ebx, 1
jne 0x4010d0
cmp dword [0xc23ed8], 0xa6d
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov dword [esi], ecx
pop ebx
jne 0x40122d
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 8]
pop edi
mov dword [esi + 4], edx
pop esi
mov esp, ebp
pop ebp
ret 4