Function at 0x4057f3
Capabilities:
Contain obfuscated stackstrings
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x4e2]
mov word [ebp - 0x4e4], si
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
stosw word es:[edi], ax
call fcn.004052ca
pop ecx
cmp eax, esi
pop ecx
jle 0x405b6e
cmp dword [ebp + 0xc], eax
jge 0x405b6e
sub eax, dword [ebp + 0xc]
push 0x421b20
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x65
dec eax
mov byte [ebp - 0x10], 0x25
mov dword [ebp + 0xc], eax
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
call fcn.0040d4f4
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x405b6e
push 2
push esi
push ebx
call fcn.0040db7b
add esp, 0xc
mov edi, 0xfffffd38
mov esi, 0x2c8
push 1
push edi
push ebx
call fcn.0040db7b
add esp, 0xc
test eax, eax
jne 0x405b67
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040c470
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.0040dc34
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.0040511a
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004050c2
lea eax, [ebp - 0x2dc]
push eax
call fcn.00405208
add esp, 0x38
test al, al
je 0x405b67
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x405938
inc dword [ebp - 0x14]
mov eax, edi
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.0040db7b
add esp, 0xc
jmp 0x4058ae
sub edi, dword [ebp - 0x18]
push 1
xor esi, esi
push edi
push ebx
mov dword [ebp + 0xc], esi
call fcn.0040db7b
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [ebp + 0x14], 1
jne 0x4059b4
cmp eax, esi
jne 0x40595f
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x4e4]
push 0x104
push ecx
push eax
call fcn.00404d98
add esp, 0xc
test eax, eax
je 0x405b67
lea eax, [ebp - 0x4e4]
push 1
push eax
call fcn.00404ec3
pop ecx
test eax, eax
pop ecx
je 0x405b67
lea eax, [ebp - 0x4e4]
push 0x4210b0
push eax
call fcn.0040d4f4
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0xc], eax
je 0x405b67
jmp 0x4059b7
mov dword [ebp + 8], eax
mov edi, dword [ebp - 0x18]
cmp edi, esi
jle 0x405a62
mov eax, 0x400
cmp edi, eax
jge 0x4059cd
mov eax, edi
push ebx
push eax
lea eax, [ebp - 0xaec]
push 1
push eax
call fcn.0040dc34
mov esi, eax
lea eax, [ebp - 0xaec]
push esi
push eax
call fcn.0040511a
lea eax, [ebp - 0x3c]
push eax
call fcn.0040cc00
add esp, 0x1c
cmp eax, 0x20
jbe 0x405a02
push 0x20
pop eax
jmp 0x405a0c
lea eax, [ebp - 0x3c]
push eax
call fcn.0040cc00
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xaec]
push esi
push eax
call fcn.004050c2
add esp, 0x10
cmp byte [ebp + 0x14], 1
jne 0x405a3e
push dword [ebp + 0xc]
lea eax, [ebp - 0xaec]
push esi
push 1
push eax
call fcn.0040d38a
add esp, 0x10
jmp 0x405a56
lea eax, [ebp - 0xaec]
push esi
push eax
push dword [ebp + 8]
call fcn.0040c8c0
add esp, 0xc
add dword [ebp + 8], esi
mov eax, esi
sub edi, eax
test edi, edi
jg 0x4059c2
xor esi, esi
push ebx
call fcn.0040d30d
cmp dword [ebp + 0xc], esi
pop ecx
je 0x405a77
push dword [ebp + 0xc]
call fcn.0040d30d
pop ecx
cmp byte [ebp + 0x14], 0
je 0x405b10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x6ea]
mov word [ebp - 0x6ec], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x6ec]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0040501b
pop ecx
test al, al
pop ecx
je 0x405b6e
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x4e4]
push eax
call fcn.0040612e
add esp, 0xc
test eax, eax
je 0x405b6e
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2dc]
jne 0x405b6e
lea eax, [ebp - 0x4e4]
push esi
push eax
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405b6e
lea eax, [ebp - 0x6ec]
push eax
call fcn.00404cc9
pop ecx
jmp 0x405b63
mov eax, dword [ebp - 0x2dc]
push eax
mov dword [ebp + 0x14], eax
call fcn.0040d239
mov esi, eax
pop ecx
test esi, esi
je 0x405b6e
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.00406225
add esp, 0x10
test eax, eax
je 0x405b48
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2dc]
je 0x405b50
push esi
call fcn.0040d2c5
jmp 0x405b6d
push eax
push esi
push dword [ebp + 0x10]
call fcn.0040c8c0
push esi
call fcn.0040d2c5
add esp, 0x10
mov al, 1
jmp 0x405b70
push ebx
call fcn.0040d30d
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret