Function at 0x440570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e2bd
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x64], esi
call fcn.00440920
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov ecx, edi
mov dword [ebp - 4], 0
sub ecx, dword [ebp - 0x1c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x440623
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
push 0x2001f
push 0
push str.SoftwareKingsoftOfficewpscloudsvr_refs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440610
lea ecx, [ebp - 0x60]
push ecx
lea eax, [esi + 0x18]
push eax
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043f340
add esp, 0x14
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x440623
cmp eax, 0xffffffff
je 0x440623
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f630
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00440920
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1c]
imul ecx
mov dword [ebp - 4], 2
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x440750
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f630
push 0xb
xor eax, eax
mov dword [ebp - 0x28], 0
push str.wpscloudsvr
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042e330
sub esp, 0x18
mov dword [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0043ffc0
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.0043f6b0
add esp, 0x1c
mov edi, eax
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 6
jb 0x4406d1
mov edi, dword [edi]
sub esp, 0x18
add esi, 0x18
mov ecx, esp
push esi
call fcn.0043f520
lea eax, [ebp - 0x58]
push eax
call fcn.0043f6b0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4406f3
mov eax, dword [eax]
push edi
push eax
call fcn.0056b422
add esp, 8
lea ecx, [ebp - 0x58]
test eax, eax
setne byte [ebp - 0x59]
call fcn.0042ab30
lea ecx, [ebp - 0x40]
call fcn.0042ab30
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4408cc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4408c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440910
jmp 0x4408c2
test eax, eax
jne 0x440761
lea ecx, [ebp - 0x1c]
call fcn.0043f630
lea edi, [esi + 0x18]
jmp 0x4407e0
sub esp, 0x18
lea edi, [esi + 0x18]
mov ecx, esp
push edi
call fcn.0043f520
lea eax, [ebp - 0x58]
push eax
call fcn.0043f6b0
add esp, 0x1c
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 3
jb 0x440789
mov esi, dword [esi]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1c]
call fcn.0043f520
lea eax, [ebp - 0x40]
push eax
call fcn.0043f6b0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4407aa
mov eax, dword [eax]
push esi
push eax
call fcn.0056b422
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0042ab30
lea ecx, [ebp - 0x58]
call fcn.0042ab30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f630
test esi, esi
mov esi, dword [ebp - 0x64]
jne 0x440674
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [esi + 0x48]
push eax
push edi
call fcn.0043fb70
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
cmp edx, 8
jb 0x44084f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440915
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4408a0
cmp esi, 0xffffffff
je 0x4408a0
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [edi + 0x14], 8
jb 0x44088b
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4408f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl edi, 0x10
or edi, 5
test esi, esi
je 0x4408be
cmp esi, 0xffffffff
je 0x4408be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4408f5
push edx
push ecx
call fcn.0055c524
add esp, 8
cmp byte [ebp - 0x59], 0
je 0x4408f3
cmp dword [esi + 0x14], 8
jb 0x4408da
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4408f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 5
jmp 0x4408f5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
call fcn.0056af64
int3