Function at 0x40ef3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x40], eax
mov eax, 0x52e13c
call fcn.00519d2c
mov dword [ebp - 0x20], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00525e48
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0xc
lea eax, [ebp - 4]
call fcn.00404098
test al, al
je 0x40efe1
mov word [ebp - 0x2c], 0x18
mov edx, 0x52df65
lea eax, [ebp - 0x10]
call fcn.00525e08
inc dword [ebp - 0x20]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00525fb0
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x2c], 0x24
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00525f88
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
pop eax
mov word [ebp - 0x2c], 0x18
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x40f1a5
mov word [ebp - 0x2c], 0x30
lea edx, [ebp - 4]
lea eax, [ebp - 8]
call fcn.0040f1ac
add dword [ebp - 0x20], 2
mov word [ebp - 0x2c], 0xc
lea eax, [ebp - 8]
call fcn.0040f240
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
and edx, 0x800000ff
jns 0x40f01a
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x45], dl
mov ecx, dword [ebp - 0x44]
add ecx, 2
push ecx
call fcn.005109ac
pop ecx
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
lea eax, [ebp - 8]
call fcn.0040f264
push eax
push dword [ebp - 0x4c]
call fcn.00519428
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov byte [ecx + edx + 1], 0
mov byte [ebp - 0x4d], 0
xor eax, eax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x2c], 0xc
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x44]
jge 0x40f07d
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x4c]
mov al, byte [ebx + ecx]
add byte [ebp - 0x4d], al
inc dword [ebp - 0x54]
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x44]
jl 0x40f066
mov cl, byte [ebp - 0x45]
xor byte [ebp - 0x4d], cl
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
mov cl, byte [ebp - 0x4d]
mov byte [edx + eax], cl
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x58], eax
mov word [ebp - 0x2c], 0xc
cmp dword [ebp - 0x58], 0
jl 0x40f0be
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
mov al, byte [ecx + edx + 1]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
xor byte [ecx + edx], al
dec dword [ebp - 0x58]
cmp dword [ebp - 0x58], 0
jge 0x40f0a2
mov word [ebp - 0x2c], 0x3c
mov edx, 0x52df66
lea eax, [ebp - 0xc]
call fcn.00525e08
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0xc
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x2c], 0xc
jmp 0x40f133
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
mov cl, byte [edx + eax]
mov byte [ebp - 0x45], cl
mov word [ebp - 0x2c], 0x48
lea eax, [ebp - 0x18]
call fcn.00403990
mov ecx, eax
inc dword [ebp - 0x20]
xor eax, eax
mov al, byte [ebp - 0x45]
mov edx, 2
call fcn.0044fbe4
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00525fc4
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00525f88
inc dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x44]
inc ecx
cmp ecx, dword [ebp - 0x5c]
jg 0x40f0e7
push dword [ebp - 0x4c]
call fcn.00504940
pop ecx
mov word [ebp - 0x2c], 0x54
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00525fb0
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x2c], 0x60
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00525f88
sub dword [ebp - 0x20], 2
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040f1ec
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00525f88
pop eax
mov word [ebp - 0x2c], 0x54
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret