Function at 0x414540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x320], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0x180
jbe 0x414583
pop edi
pop esi
mov eax, 0xffffffc8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ba1
mov esp, ebp
pop ebp
ret
push 0x1a0
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00429010
lea eax, [ebp - 0x31c]
push eax
call fcn.00417430
mov eax, esi
mov byte [ebp - 0x1ed], 0x30
bswap eax
push esi
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call fcn.00428a90
mov byte [ebp + esi - 0x1ec], pe_nt_image_headers32
add esp, 0x1c
add esi, 0x19
xor eax, eax
mov dword [ebp - 0x330], esi
mov byte [ebp + eax - 0x64], al
inc eax
cmp eax, 0x20
jl 0x4145d7
push 0x100
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.00417670
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x414756
mov dword [ebp - 0x328], eax
nop dword [eax]
lea edi, [ebp - 0x204]
xorps xmm0, xmm0
mov ebx, esi
movups xmmword [ebp - 0x14], xmm0
test esi, esi
je 0x4146df
mov esi, edi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1f5]
sub esi, eax
mov dword [ebp - 0x324], ecx
nop word [eax + eax]
lea edx, [ebp - 0x14]
xor eax, eax
cmp edx, ecx
ja 0x414668
lea edx, [ebp - 5]
cmp edx, edi
jb 0x414668
lea edx, [ebp - 0x14]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor byte [edx], cl
cmp eax, 0x10
jb 0x414650
mov ecx, dword [ebp - 0x324]
jmp 0x414677
movups xmm1, xmmword [ebp - 0x14]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [ebp - 0x14], xmm1
add ecx, 0x10
add edi, 0x10
mov dword [ebp - 0x324], ecx
add esi, 0x10
cmp ebx, 0x10
mov dword [ebp - 0x32c], edi
mov eax, ebx
mov ecx, 0x10
cmovae eax, ecx
sub ebx, eax
lea eax, [ebp - 0x14]
push eax
push eax
lea eax, [ebp - 0x31c]
push 1
push eax
call fcn.004173d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x414750
mov edi, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x324]
test ebx, ebx
jne 0x414640
movups xmm0, xmmword [ebp - 0x14]
mov eax, dword [ebp - 0x328]
mov esi, dword [ebp - 0x330]
inc byte [ebp - 0x201]
movups xmmword [ebp + eax - 0x44], xmm0
add eax, 0x10
mov dword [ebp - 0x328], eax
cmp eax, 0x30
jl 0x414610
push 0x100
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.00417670
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x414750
mov esi, dword [ebp - 0x320]
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
push eax
lea eax, [ebp - 0x31c]
push 1
push eax
call fcn.004173d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x414750
movups xmm0, xmmword [ebp - 0x24]
add ebx, 0x10
movups xmmword [esi], xmm0
add esi, 0x10
cmp ebx, 0x30
jl 0x414722
mov ebx, dword [ebp - 0x320]
lea eax, [ebp - 0x31c]
push eax
call fcn.00417410
lea eax, [ebp - 0x204]
push 0x1a0
push eax
call fcn.004153f0
lea eax, [ebp - 0x44]
push 0x30
push eax
call fcn.004153f0
lea eax, [ebp - 0x64]
push 0x20
push eax
call fcn.004153f0
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.004153f0
add esp, 0x24
test edi, edi
je 0x4147a6
push 0x30
push ebx
call fcn.004153f0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ba1
mov esp, ebp
pop ebp
ret