Function at 0x4069d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423955
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x42d4d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov byte [ebp - 0x99], 0xf
call fcn.00406cd0
test eax, eax
jne 0x406a2a
mov esi, 0x427bda
jmp 0x406a7e
push 0x10
push eax
lea esi, [ebp - 0xa4]
call fcn.0040d0b0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [eax]
push 3
push eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov esi, 1
push edx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x98], ecx
call fcn.00401bb0
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x98]
mov ebx, 3
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0xb0]
call fcn.00406f40
push esi
push eax
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 4], 2
call fcn.00407440
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 2
je 0x406ae8
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
and ebx, 0xfffffffd
cmp eax, ecx
je 0x406ae8
push eax
call fcn.004157cc
add esp, 4
mov byte [ebp - 4], 6
test bl, 1
je 0x406b13
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xac]
cmp dword [ecx - 0xc], 0
jne 0x406b66
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0x99], 0xcf
call fcn.00406d70
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 7
call fcn.00407300
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx - 0xc]
call fcn.00409f50
cmp byte [0x431375], 0
mov ecx, 0x7832
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], edx
mov word [edi + 0xa], cx
jne 0x406b98
call fcn.00409e00
mov byte [0x431375], 1
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
lea esi, [edi + 6]
mov dword [ebp - 0xa0], 4
nop
movzx edx, byte [esi - 2]
mov ebx, eax
shr ebx, 0x18
xor edx, ebx
movzx ebx, byte [ebp - 0xa1]
shl eax, 8
or eax, ebx
xor eax, dword [edx*4 + 0x430f70]
shl ecx, 8
xor ecx, dword [edx*4 + 0x430b70]
movzx edx, byte [esi - 1]
mov ebx, eax
shr ebx, 0x18
xor edx, ebx
mov dword [ebp - 0xa4], ecx
movzx ebx, byte [ebp - 0xa1]
shl eax, 8
or eax, ebx
xor eax, dword [edx*4 + 0x430f70]
movzx ebx, byte [esi]
shl ecx, 8
xor ecx, dword [edx*4 + 0x430b70]
mov edx, eax
mov dword [ebp - 0xa4], ecx
shr edx, 0x18
xor edx, ebx
movzx ebx, byte [ebp - 0xa1]
shl eax, 8
or eax, ebx
xor eax, dword [edx*4 + 0x430f70]
shl ecx, 8
xor ecx, dword [edx*4 + 0x430b70]
movzx edx, byte [esi + 1]
mov ebx, eax
shr ebx, 0x18
mov dword [ebp - 0xa4], ecx
xor edx, ebx
movzx ebx, byte [ebp - 0xa1]
shl eax, 8
shl ecx, 8
xor ecx, dword [edx*4 + 0x430b70]
or eax, ebx
xor eax, dword [edx*4 + 0x430f70]
add esi, 4
dec dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
jne 0x406bb0
mov dword [edi + 4], eax
mov dl, byte [edi + 7]
or dl, 0xf0
and dl, byte [ebp - 0x99]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
mov dword [edi + 8], ecx
mov byte [edi + 7], dl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041528c
mov esp, ebp
pop ebp
ret