Function at 0x40bd60
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x43464b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0xcd], ecx
mov dword [esp + 0xd1], ecx
mov dword [esp + 0xd5], ecx
mov dword [esp + 0xd9], ecx
xor edx, edx
mov dword [esp + 0xdd], ecx
mov dword [esp + 0x10d], edx
mov dword [esp + 0xe1], ecx
mov dword [esp + 0x111], edx
mov dword [esp + 0xe5], ecx
mov dword [esp + 0x115], edx
mov dword [esp + 0xe9], ecx
mov dword [esp + 0x119], edx
mov dword [esp + 0x13d], ecx
mov dword [esp + 0x16d], edx
mov dword [esp + 0x141], ecx
mov dword [esp + 0x171], edx
mov dword [esp + 0x175], edx
mov dword [esp + 0x145], ecx
mov dword [esp + 0x149], ecx
mov dword [esp + 0x179], edx
mov byte [esp + 0xcc], dl
mov ebp, dword [esp + 0x208]
cmp dword [ebp + 0xc62], 4
mov dword [esp + 0x200], edx
jne 0x40c145
mov ebx, dword [esp + 0x20c]
mov ecx, dword [ebx + 0x15]
mov dword [esp + 0x14], ecx
lea esi, [ebx + 0x19]
mov ecx, 8
lea edi, [esp + 0x1b8]
rep movsd dword es:[edi], dword [esi]
cmp byte [eax + 0xd80], 1
jne 0x40befe
mov cl, byte [eax + 0xd7f]
test cl, cl
jne 0x40befe
lea edx, [esp + 0x14]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0xd5b]
jne 0x40be97
mov ecx, 8
lea edi, [eax + 0xd5f]
lea esi, [esp + 0x1b8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40befe
push 1
call fcn.00403d80
mov edi, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esi + 0x10]
mov byte [eax], 0x23
add esp, 4
mov dword [esi + 0xc], 8
mov ecx, dword [ebp + 1]
push 1
sub esp, 8
mov dword [esi + 2], ecx
mov dx, word [ebp + 5]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
mov word [esi + 6], dx
mov word [eax + 4], dx
call fcn.004076e0
add edi, 0xdb6
mov ecx, edi
mov word [esi], ax
call fcn.00404d20
mov ecx, edi
mov dword [eax], esi
call fcn.00404d60
mov dword [ebp + 0xc62], 2
jmp 0x40c145
xor esi, esi
call fcn.0040d9b0
mov dword [esp + esi + 0x18], eax
add esi, 4
cmp esi, 0x14
jl 0x40bf00
xor eax, eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0xd1], eax
xor edx, edx
mov dword [esp + 0x13d], edx
mov dword [esp + 0xd5], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x141], edx
mov dword [esp + 0xd9], eax
mov dword [esp + 0x145], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0xdd], eax
xor ecx, ecx
mov dword [esp + 0x149], edx
mov byte [esp + 0xcc], dl
mov dword [esp + 0xe1], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x10d], ecx
mov dword [esp + 0xe5], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x111], ecx
mov dword [esp + 0xe9], eax
mov dword [esp + 0x115], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x16d], eax
mov dword [esp + 0x119], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x171], eax
mov dword [esp + 0x175], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x179], eax
mov dword [esp + 0x68], edx
mov ecx, 8
lea esi, [esp + 0x1b8]
lea edi, [esp + 0x6c]
lea eax, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0040ab60
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00407d40
add esp, 0x10
lea ecx, [esp + 0x1d8]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x54]
call fcn.0040b900
xor eax, eax
lea esp, [esp]
mov cl, byte [ebx + eax + 1]
xor cl, byte [esp + eax + 0x18]
mov byte [eax + ebp + 0x851], cl
mov dl, byte [ebx + eax + 2]
xor dl, byte [esp + eax + 0x19]
mov byte [eax + ebp + 0x852], dl
mov cl, byte [ebx + eax + 3]
xor cl, byte [esp + eax + 0x1a]
mov byte [eax + ebp + 0x853], cl
mov dl, byte [ebx + eax + 4]
xor dl, byte [esp + eax + 0x1b]
mov byte [eax + ebp + 0x854], dl
add eax, 4
cmp eax, 0x10
jl 0x40c070
mov byte [ebp + 0x861], 1
inc ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x181], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x185], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x191], ecx
mov byte [esp + 0x180], 0x10
mov dword [esp + 0x189], edx
mov dword [esp + 0x18d], eax
mov ecx, 8
lea esi, [esp + 0x1d8]
lea edi, [esp + 0x195]
rep movsd dword es:[edi], dword [esi]
call fcn.004020f0
push 0
push eax
push 0
push 0
sub esp, 8
mov edx, esp
push 0
inc ebp
mov eax, dword [ebp]
mov cx, word [ebp + 4]
push 6
mov dword [edx], eax
push 0
mov word [edx + 4], cx
mov ecx, dword [esp + 0x34]
push 0x1a8
lea edx, [esp + 0x1a8]
push edx
call fcn.00407900
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1f4
ret 8