Function at 0x409e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x564690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1JR0hBb0dCQU1nbVFCVkVVNlNQY1FHN082RVpqVXlmSFNJc2EzaWNlQUJnYnZWRHJMakd3UWM4SFp1Qlo3ZkEKREE3UG5KZDJsK1ppWEErUTI0ZEw2ZHg3UURSdVMrWVVMTUVFUUYxdXprZHk0OC8zSnNzei85Zk1PTVlQbUY5Uwp1M0NsSGNtaG0veGVNQ2hGWS9sMHY5WGthUURITW5PazNyOC9HczJPcWhzNkNOczQ4VlBsQWdFRAotLS0tLUVORCBSU0EgUFVCTElDIEtFWS0tLS0tCg
lea ecx, [ebp - 0x14]
call fcn.00401b70
mov esi, dword [0x565ae0]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x15
idiv ecx
mov dword [ebp - 4], 0
cmp edx, 0x13
jne 0x409ef3
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x409e70
mov dword [0x565ae0], esi
mov eax, dword [0x5641c0]
push ecx
mov esi, esp
mov ecx, 0x5641c0
mov dword [ebp - 0x24], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.a1fceff9eaeffaefb3
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x409f38
movzx edi, ax
push 0
push edi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x409f46
push edi
push eax
mov ecx, esi
call fcn.00407600
jmp 0x409f46
push 0x12
push str.a1fceff9eaeffaefb3
mov ecx, esi
call fcn.00409890
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0
call fcn.0048cdc0
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0048cbd0
add esp, 0x14
mov esi, dword [eax]
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
test esi, esi
je 0x409faf
test esi, 0xffff0000
jne 0x409faf
movzx esi, si
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x409fb8
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00407540
jmp 0x409fb8
push esi
lea ecx, [ebp - 0x10]
call fcn.00402620
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409fdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409ffb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040a3b0
mov ecx, dword [0x565b9c]
test al, al
mov eax, dword [ebp - 0x10]
mov edx, 0xc1c2a3f
cmove ecx, edx
mov dword [0x565b9c], ecx
cmp dword [eax - 0xc], 0
jne 0x40a095
push ecx
mov ecx, esp
push str.a1e7e0e8e1ede3eae2e7e0ebb3
call fcn.00401b70
lea eax, [ebp - 0x24]
push eax
call fcn.0048cdc0
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov byte [ebp - 4], 8
call fcn.0048cbd0
add esp, 0x14
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00402620
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a075
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a095
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20
call fcn.004e48e7
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x40a0b9
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0041e990
mov edi, eax
jmp 0x40a0bb
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0041ed70
test edi, edi
je 0x40a0e1
mov ecx, edi
call fcn.0041ea10
push edi
call fcn.004e48b8
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a101
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a122
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret