Function at 0x42817e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x294
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x290], eax
mov eax, dword [esp + 0x29c]
push ebx
push ebp
mov ebp, dword [esp + 0x2a0]
xor ebx, ebx
push esi
push edi
push ebx
push 0x6a4acdbc
push 0x16eaaffe
push 0xc6f62ad5
mov edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], eax
call fcn.00401bb2
mov ecx, dword [edi + 0x5c]
add esp, 0xc
push eax
call fcn.0044545d
test eax, eax
je 0x428244
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x5c]
push eax
call fcn.00446cc9
mov ebp, eax
test ebp, ebp
je 0x428240
cmp dword [esp + 0x14], ebx
jbe 0x428239
push ebp
call fcn.004063e3
pop ecx
cmp eax, 0x42444944
jne 0x428239
lea esi, [ebp + 0x28]
push esi
call fcn.004063e3
add esi, 4
mov dword [edi + 0x1b0], eax
push esi
call fcn.0042c172
mov dword [edi + 0x1b8], eax
lea eax, [esi + 8]
push eax
mov dword [edi + 0x1bc], edx
call fcn.0042c172
add esp, 0xc
mov dword [edi + 0x1c0], eax
mov dword [edi + 0x1c4], edx
push ebp
call fcn.00404d44
pop ecx
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
call fcn.004738c1
pop ecx
push ebx
push 0xd987d1e0
push 0xa527b3a6
push 0x753b369b
call fcn.00401bb2
mov ecx, dword [edi + 0x5c]
add esp, 0xc
push eax
call fcn.0044545d
test eax, eax
je 0x4282b9
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x5c]
push eax
call fcn.00446cc9
mov esi, eax
test esi, esi
je 0x4282b9
cmp dword [esp + 0x14], ebx
jbe 0x4282b2
push dword [esp + 0x14]
push esi
push ebp
call fcn.004738e9
push ebp
call fcn.00473805
push 0x10
lea eax, [ebp + 0x58]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004738e9
add esp, 0x1c
push esi
call fcn.00404d44
pop ecx
cmp dword [edi + 0x70], 0x16
je 0x4282d7
cmp dword [edi + 0x70], 0xb
je 0x4282d7
push ebx
push 0xf7199908
push 0x8bb9fb52
push 0x5ba57e0f
jmp 0x4282e7
push ebx
push 0x4244c71f
push 0x3ee4a545
push 0xeef82006
call fcn.00401bb2
mov ecx, dword [edi + 0x5c]
add esp, 0xc
push eax
call fcn.0044545d
test eax, eax
je 0x428494
mov eax, dword [eax]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ebp, ebx
test eax, eax
je 0x428470
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp byte [eax + 0xc], bl
jne 0x428336
cmp dword [eax + 0x2c], edx
jb 0x428336
ja 0x42832e
cmp dword [eax + 0x28], ecx
jbe 0x428336
mov ecx, dword [eax + 0x28]
mov ebp, eax
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x42831d
test ebp, ebp
je 0x428470
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 0x5c]
mov esi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], esi
push eax
push 0x10000
push esi
push ebx
push ebx
push ebp
call fcn.00446a5d
test al, al
je 0x428492
test byte [esi], 0xc0
je 0x428409
cmp byte [edi + 0x82], bl
jne 0x428409
cmp byte [edi + 0x81], bl
je 0x428409
push 0x20
lea ebx, [edi + 0x1dc]
add esi, 0x10
pop edi
lea eax, [esp + 0x8c]
mov dword [esp + 0x290], 0xddf8a00b
push ebx
push eax
mov dword [esp + 0x29c], 0xb31fa6fe
mov dword [esp + 0x2a0], 0x569fdfd8
mov dword [esp + 0x2a4], 0x780f056a
call fcn.00439b07
push 0x7f0
push esi
push esi
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00437e9c
add esp, 0x1c
add esi, 0x800
dec edi
jne 0x4283a1
mov esi, dword [esp + 0x10]
xor ebx, ebx
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004738e9
lea eax, [esp + 0x30]
push eax
call fcn.00473805
push esi
call fcn.00404d44
lea esi, [esp + 0x90]
add esp, 0x14
lea edi, [esp + 0x290]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov al, byte [ebx + 0x4f8f6c]
xor byte [esp + ebx + 0x290], al
inc ebx
cmp ebx, 0x10
jl 0x42843d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x290]
mov dword [ecx + 0xac], eax
mov eax, dword [esp + 0x294]
mov dword [ecx + 0xb0], eax
jmp 0x428492
push 0x16617cc9
push 0x6ac11e97
push 0xbadd9bf8
call fcn.00401bb2
push eax
push 1
push dword [edi + 0x60]
call fcn.0041ffc2
add esp, 0x18
mov eax, ebp
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x294
ret 8