Function at 0x50004837
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.500045bb
pop ecx
cmp eax, esi
pop ecx
jle 0x50004bb2
cmp dword [ebp + 0xc], eax
jge 0x50004bb2
sub eax, dword [ebp + 0xc]
push 0x5001b144
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.5000ac78
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x50004bb2
push 2
push esi
push ebx
call fcn.5000ab8e
add esp, 0xc
mov edi, 0xfffffd38
mov esi, 0x2c8
push 1
push edi
push ebx
call fcn.5000ab8e
add esp, 0xc
test eax, eax
jne 0x50004bab
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.50009540
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.5000ac8b
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.500133b8
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.50013360
lea eax, [ebp - 0x2dc]
push eax
call fcn.500044f9
add esp, 0x38
test al, al
je 0x50004bab
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x5000497c
inc dword [ebp - 0x14]
mov eax, edi
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.5000ab8e
add esp, 0xc
jmp 0x500048f2
sub edi, dword [ebp - 0x18]
push 1
xor esi, esi
push edi
push ebx
mov dword [ebp + 0xc], esi
call fcn.5000ab8e
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [ebp + 0x14], 1
jne 0x500049f8
cmp eax, esi
jne 0x500049a3
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x4e4]
push 0x104
push ecx
push eax
call fcn.50004251
add esp, 0xc
test eax, eax
je 0x50004bab
lea eax, [ebp - 0x4e4]
push 1
push eax
call fcn.5000437c
pop ecx
test eax, eax
pop ecx
je 0x50004bab
lea eax, [ebp - 0x4e4]
push 0x5001b13c
push eax
call fcn.5000ac78
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0xc], eax
je 0x50004bab
jmp 0x500049fb
mov dword [ebp + 8], eax
mov edi, dword [ebp - 0x18]
cmp edi, esi
jle 0x50004aa6
mov eax, 0x400
cmp edi, eax
jge 0x50004a11
mov eax, edi
push ebx
push eax
lea eax, [ebp - 0xaec]
push 1
push eax
call fcn.5000ac8b
mov esi, eax
lea eax, [ebp - 0xaec]
push esi
push eax
call fcn.500133b8
lea eax, [ebp - 0x3c]
push eax
call fcn.50009cd0
add esp, 0x1c
cmp eax, 0x20
jbe 0x50004a46
push 0x20
pop eax
jmp 0x50004a50
lea eax, [ebp - 0x3c]
push eax
call fcn.50009cd0
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xaec]
push esi
push eax
call fcn.50013360
add esp, 0x10
cmp byte [ebp + 0x14], 1
jne 0x50004a82
push dword [ebp + 0xc]
lea eax, [ebp - 0xaec]
push esi
push 1
push eax
call fcn.5000a855
add esp, 0x10
jmp 0x50004a9a
lea eax, [ebp - 0xaec]
push esi
push eax
push dword [ebp + 8]
call fcn.50009990
add esp, 0xc
add dword [ebp + 8], esi
mov eax, esi
sub edi, eax
test edi, edi
jg 0x50004a06
xor esi, esi
push ebx
call fcn.5000a98e
cmp dword [ebp + 0xc], esi
pop ecx
je 0x50004abb
push dword [ebp + 0xc]
call fcn.5000a98e
pop ecx
cmp byte [ebp + 0x14], 0
je 0x50004b54
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.5000448f
pop ecx
test al, al
pop ecx
je 0x50004bb2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x4e4]
push eax
call fcn.50004d1d
add esp, 0xc
test eax, eax
je 0x50004bb2
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2dc]
jne 0x50004bb2
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 0x50004bb2
lea eax, [ebp - 0x6ec]
push eax
call fcn.50004182
pop ecx
jmp 0x50004ba7
mov eax, dword [ebp - 0x2dc]
push eax
mov dword [ebp + 0x14], eax
call fcn.5000adea
mov esi, eax
pop ecx
test esi, esi
je 0x50004bb2
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.50004dc3
add esp, 0x10
test eax, eax
je 0x50004b8c
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2dc]
je 0x50004b94
push esi
call fcn.5000ada2
jmp 0x50004bb1
push eax
push esi
push dword [ebp + 0x10]
call fcn.50009990
push esi
call fcn.5000ada2
add esp, 0x10
mov al, 1
jmp 0x50004bb4
push ebx
call fcn.5000a98e
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret