Function at 0x406cc0
Capabilities:
Delete file
Get number of processors
Move file
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43f57b
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xa60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xa78]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa88]
mov esi, dword [esp + 0xa8c]
mov edi, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], ecx
call fcn.00413c41
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406d37
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xa80], ebx
xor eax, eax
mov byte [esp + 0x3c], bl
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
call fcn.00408080
push 0
push edi
push 0x453d11
call fcn.0040d890
push 0x447a48
push esi
call fcn.0042292f
push 0x7d000
mov ebp, eax
call fcn.00413c36
add esp, 0xc
mov edi, eax
mov dword [esp + 0x1c], edi
test ebp, ebp
je 0x407251
push ebp
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x406e82
push ebp
mov dword [edi], 0
call fcn.00422e70
add esp, 4
push ebp
push 0x7d000
push 1
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.004233a6
mov ebx, eax
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x406e67
lea ecx, [esp + 0x3c]
mov eax, edi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406e20
test dl, dl
je 0x406e1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406e20
add eax, 2
add ecx, 2
test dl, dl
jne 0x406e00
xor eax, eax
jmp 0x406e25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406e3b
add esi, 0x200
add edi, 0x200
cmp esi, ebx
jl 0x406df8
jmp 0x406e63
mov ecx, dword [edi + 0xf4]
mov eax, esi
cdq
xor edi, edi
add ecx, eax
adc edi, edx
add ecx, dword [esp + 0x24]
push 0
adc edi, dword [esp + 0x2c]
push edi
push ecx
push ebp
call fcn.00422ad5
add esp, 0x10
cmp esi, ebx
jl 0x406e7a
mov edi, dword [esp + 0x1c]
push ebp
call fcn.0042309e
add esp, 4
test eax, eax
je 0x406dc8
jmp 0x406e7e
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0x400
xor ebx, ebx
lea edx, [esp + 0x678]
push ebx
push edx
call fcn.00425400
add esp, 0xc
push ebp
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x406f5f
jmp 0x406eb0
push ebp
call fcn.00422e70
add esp, 4
push ebp
push 0x400
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x67c]
push 1
push eax
mov dword [esp + 0x38], edx
call fcn.004233a6
add esp, 0x10
cmp eax, 0x400
jne 0x406f47
mov ecx, str.LeaderCab
lea eax, [esp + 0x674]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406f10
test dl, dl
je 0x406f0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406f10
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ef0
xor eax, eax
jmp 0x406f15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406f47
lea ecx, [esp + 0x698]
push str.ldcab.ldind
push ecx
call fcn.00422216
add esp, 8
test eax, eax
je 0x406f5a
mov eax, dword [esp + 0x704]
cdq
push 1
push edx
push eax
push ebp
call fcn.00422ad5
add esp, 0x10
push ebp
call fcn.0042309e
add esp, 4
test eax, eax
je 0x406eb0
jmp 0x406f5f
mov ebx, 1
push ebp
call fcn.004229bd
add esp, 4
test ebx, ebx
je 0x407251
push 0x208
lea edx, [esp + 0x60]
push 0
push edx
call fcn.00425400
lea edx, [esp + 0x68]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406f90
lea eax, [esp + 0x5c]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x406fa0
mov ecx, dword [str..tmp]
mov dl, byte [0x447d40]
mov ebx, dword [esp + 0x24]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x5c]
push eax
mov eax, esi
call fcn.0040ab60
add esp, 4
lea ecx, [esp + 0x5c]
push 0x447978
push ecx
call fcn.0042292f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea esp, [esp]
lea edx, [esp + 0x5c]
push 0x447978
push edx
call fcn.0042292f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x407027
push 0x64
inc esi
call edi
cmp esi, 0x64
jl 0x406ff0
lea eax, [esp + 0x5c]
push eax
call fcn.0040ae10
add esp, 4
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x208
lea ecx, [esp + 0x268]
push 0
push ecx
call fcn.00425400
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x270]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407050
lea eax, [esp + 0x264]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407062
mov edx, dword [0x4479a0]
mov ecx, dword [0x4479a4]
mov dword [eax], edx
mov edx, dword [0x4479a8]
mov dword [eax + 4], ecx
mov cl, byte [0x4479ac]
mov dword [eax + 8], edx
lea edx, [esp + 0x46c]
mov byte [eax + 0xc], cl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407098
lea eax, [esp + 0x46c]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4070b0
mov edx, dword [0x447c04]
mov ecx, dword [0x447c08]
mov dword [eax], edx
mov edx, dword [0x447c0c]
mov dword [eax + 4], ecx
mov cl, byte [0x447c10]
mov dword [eax + 8], edx
lea edx, [esp + 0x264]
mov byte [eax + 0xc], cl
push 0
push edx
mov ebx, ebp
lea ecx, [esp + 0x64]
call fcn.00403d10
mov edi, eax
add esp, 8
test edi, edi
je 0x407116
push edi
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x20]
push str.JoinFiles__s_in_UpdateLdxToExeFile__failed_with_return_value:__d
push ecx
call fcn.00409910
add esp, 0x10
jmp 0x40715b
lea edx, [esp + 0x5c]
push 0x447978
push edx
call fcn.0042292f
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00407850
add esp, 0xc
push esi
mov bl, al
call fcn.004229bd
add esp, 4
test bl, bl
jne 0x40715b
lea ecx, [esp + 0x18]
push str.EncryptFileToLdCab_failed
push ecx
call fcn.00409910
add esp, 8
test ebp, ebp
je 0x407168
push ebp
call fcn.004229bd
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x4071cc
lea edx, [esp + 0x5c]
push edx
call esi
lea eax, [esp + 0x264]
push eax
call esi
lea ecx, [esp + 0x46c]
push ecx
call esi
mov esi, dword [esp + 0x18]
push 0
push esi
push 0x453d11
call fcn.0040d890
lea eax, [esi - 0x10]
mov dword [esp + 0xa80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4071c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x407287
mov edi, dword [esp + 0x20]
push edi
call esi
push edi
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4071ec
lea edx, [esp + 0x5c]
push edx
call esi
jmp 0x407216
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.MoveFile_Error:__d
push eax
call fcn.00409910
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push ecx
push 0x453d11
call fcn.0040d890
lea edx, [esp + 0x46c]
push edx
call esi
lea eax, [esp + 0x264]
push eax
call esi
lea ecx, [esp + 0x18]
push str.Update_File_Success
push ecx
call fcn.00409910
mov edx, dword [esp + 0x20]
add esp, 8
push 0
push edx
push 0x453d11
call fcn.0040d890
mov edi, dword [esp + 0x1c]
push edi
call fcn.00413c2b
mov dword [esp + 0xa84], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xa78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa60]
xor ecx, esp
call fcn.00421f65
add esp, 0xa70
ret