Function at 0x42d360
Capabilities:
Copy file
Delete file
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a438
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4b91d0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
push str._funoictl64.dll
lea ecx, [esp + 0x28]
call fcn.00401c20
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x68], 0
call fcn.00407790
add esp, 8
push str._funoictl.dll
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 1
call fcn.00401c20
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x68], 2
call fcn.00407790
add esp, 8
mov bl, 3
mov byte [esp + 0x60], bl
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x60], 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42d425
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040ea20
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x60], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
call fcn.00407790
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 8
push 0
push ecx
push eax
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d48b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42d4c8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040ea20
add esp, 8
lea eax, [ebx - 0x10]
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, edi
call fcn.00407790
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
add esp, 8
xor ebx, ebx
push ebx
push ecx
push eax
call esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d52a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x64], 6
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x30]
cmp ax, 9
je 0x42d5c6
cmp ax, 6
je 0x42d5c6
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push str.regsvr32.exe__s___s_
push eax
call fcn.0040c8a0
mov esi, dword [esp + 0x24]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.004015c0
add esp, 4
add eax, 0x10
push ebx
mov dword [edi], eax
call fcn.0040b780
add esp, 8
mov edi, eax
mov byte [esp + 0x60], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d659
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x42d659
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push str.regsvr32.exe__s___s_
push edx
call fcn.0040c8a0
mov eax, dword [esp + 0x24]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.004015c0
add esp, 4
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.0040b780
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push str.regsvr32.exe__s___s_
push ecx
call fcn.0040c8a0
mov esi, dword [esp + 0x2c]
add esp, 0x10
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.004015c0
add esp, 4
add eax, 0x10
push ebx
mov dword [edi], eax
call fcn.0040b780
mov edi, eax
add esp, 8
mov byte [esp + 0x60], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42d659
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d67e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret