Function at 0x404fa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x421014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x1c]
push 0x41f4bd
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00406d50
push 0x80
call fcn.0040aafb
add esp, 4
mov esi, eax
push 0x80
push 0
push esi
call fcn.0040be30
add esp, 0xc
mov ecx, esi
call fcn.00407d20
sub esp, 0x18
mov esi, eax
mov ecx, esp
xor eax, eax
push 0x41f5f8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00406c40
sub esp, 0x18
mov dword [ebp - 0x30], 0x201f9702
mov edx, esp
mov dword [ebp - 0x2c], 0x3e03bce
mov dword [ebp - 0x28], 0xba82a837
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0xe088cf4d
lea edi, [ecx + 1]
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x201f9702
mov dword [ebp - 0x5c], 0x3e03bce
mov dword [ebp - 0x58], 0xba82a837
mov dword [ebp - 0x54], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405097
sub ecx, edi
lea eax, [ebp - 0x30]
push ecx
push eax
mov ecx, edx
call fcn.00406d50
mov dword [ebp - 0xd0], 0x537ef52d
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xcc], 0x738114ab
lea edx, [ebx + 8]
mov dword [ebp - 0xc8], 0xcef1875e
sub esp, 0x18
mov dword [ebp - 0xc4], 0x93e1bb2c
mov ecx, esp
movaps xmm1, xmmword [ebp - 0xd0]
mov dword [ebp - 0x70], 0x201f9702
mov dword [ebp - 0x6c], 0x3e03bce
mov dword [ebp - 0x68], 0xba82a837
mov dword [ebp - 0x64], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x70]
mov dword [ebp - 0xc0], 0xcf5239a0
mov dword [ebp - 0xbc], 0xd80ff486
mov dword [ebp - 0xb8], 0x53754181
mov dword [ebp - 0xb4], 0xca3248af
movaps xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmmword [ebp - 0xc0]
mov dword [ebp - 0x60], 0xbc3150d4
mov dword [ebp - 0x5c], 0xa86784a8
mov dword [ebp - 0x58], 0x53754181
mov dword [ebp - 0x54], 0xca3248af
pxor xmm1, xmmword [ebp - 0x60]
push eax
movaps xmmword [ebp - 0xc0], xmm1
call fcn.00406fe0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
push 0xa
push 0xa
call fcn.00408490
push 0
push 0xab2c6a3
mov esi, eax
call fcn.00401320
mov ecx, eax
mov edi, edx
mov eax, esi
add esp, 8
cdq
cmp eax, ecx
jne 0x40541c
cmp edx, edi
jne 0x40541c
mov edx, dword [ebp - 0xc]
xor edi, edi
test edx, edx
je 0x4052a8
mov dword [ebp - 0x48], 0x11c350
mov dword [ebp - 0x44], edi
nop dword [eax]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor eax, 0x1d
mov dword [ebp - 0x90], eax
xor ecx, 0
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x78], 0x1d
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0x9a06
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x88], 0x4d39
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
add edx, eax
mov ecx, dword [ebp - 0x7c]
adc esi, ecx
add edx, 1
mov dword [ebp - 0xa0], edx
adc esi, 0
mov dword [ebp - 0x9c], esi
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x8c]
sub edx, eax
mov dword [ebp - 0x98], edx
sbb esi, ecx
mov dword [ebp - 0x94], esi
mov esi, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
push eax
push ecx
push edx
push esi
call fcn.00418f10
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 8], 0x10
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
xor byte [eax + edi], cl
inc edi
mov edx, dword [ebp - 0xc]
cmp edi, edx
jb 0x4051c0
mov dword [ebp - 0x30], 0x1a53c557
lea esi, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x3e03bce
lea ecx, [esi + 1]
mov dword [ebp - 0x28], 0xba82a837
mov dword [ebp - 0x24], 0xe088cf4d
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x201f9702
mov dword [ebp - 0x5c], 0x3e03bce
mov dword [ebp - 0x58], 0xba82a837
mov dword [ebp - 0x54], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
mov al, byte [esi]
inc esi
test al, al
jne 0x4052f3
sub esi, ecx
lea eax, [ebp - 0x30]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
push esi
cmovae ecx, dword [ebp - 0x1c]
push eax
push 0
call fcn.004071c0
add esp, 0xc
mov esi, eax
push 0
push 0x3e1e34b
call fcn.00401320
add esp, 8
xor ecx, ecx
cmp esi, eax
jne 0x40541c
cmp ecx, edx
jne 0x40541c
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x50]
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x50], 0x201f9738
mov dword [ebp - 0x4c], 0x3e03bce
mov dword [ebp - 0x48], 0xba82a837
mov dword [ebp - 0x44], 0xe088cf4d
movaps xmm1, xmmword [ebp - 0x50]
push 0x20
mov dword [ebp - 0x30], 0x201f9702
mov dword [ebp - 0x2c], 0x3e03bce
mov dword [ebp - 0x28], 0xba82a837
mov dword [ebp - 0x24], 0xe088cf4d
pxor xmm1, xmmword [ebp - 0x30]
push eax
movaps xmmword [ebp - 0x50], xmm1
call fcn.00401840
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4053cd
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4053c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054c8
push edx
push ecx
call fcn.0040ad7c
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x4054b3
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40540d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054c8
push edx
push ecx
call fcn.0040ad7c
add esp, 8
jmp 0x4054b3
mov eax, dword [ebp - 0x34]
mov ecx, eax
push 0
push 0x41f4be
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.00406d50
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40546e
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405464
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054c8
push edx
push ecx
call fcn.0040ad7c
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x4054b0
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054c8
push edx
push ecx
call fcn.0040ad7c
add esp, 8
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040aaea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040e200
int3