Function at 0x401180
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x470da5
call fcn.00455d7d
mov edi, ecx
lea esi, [edi + 4]
mov dword [ebp - 0xc8], edi
mov dword [edi], 0x480048
call fcn.00401082
lea esi, [edi + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xc4], esi
mov word [esi], ax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov dword [ebp - 0xc0], eax
mov byte [eax], bl
lea eax, [ebp - 0x4c]
push 8
push eax
mov byte [ebp - 4], 3
call fcn.00429405
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.00401497
push eax
lea eax, [ebp - 0xa0]
call fcn.0040427b
pop ecx
pop ecx
mov byte [ebp - 4], 5
test byte [0x4a4638], 1
jne 0x40124b
or dword [0x4a4638], 1
mov ecx, 0x9fad
mov word [0x49e9c4], cx
add ecx, 0x4a
mov edx, ecx
mov ecx, 0x9f83
mov word [0x49e9c6], dx
mov dword [0x49e9c8], 0x9ff79ffb
mov word [0x49e9cc], cx
mov ecx, 0x9f83
xor cx, word [ebx + 0x49e9c4]
add ebx, 2
mov word [ebx + 0x49eff2], cx
cmp ebx, 0xa
jb 0x40124b
push 0x49eff4
push eax
lea eax, [ebp - 0x30]
call fcn.004042b8
pop ecx
pop ecx
mov ebx, eax
mov eax, esi
mov byte [ebp - 4], 6
call fcn.00403b5c
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00403c49
push 1
lea esi, [ebp - 0xa0]
call fcn.00403c49
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00403c49
mov ecx, dword [ebp - 0xc4]
lea edx, [ebp - 0x4c]
call fcn.00428ef4
mov ebx, eax
mov eax, dword [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.00403b5c
push 1
lea esi, [ebp - 0x4c]
call fcn.00403c49
and dword [ebp - 0x74], edi
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 9
call fcn.00427e44
pop ecx
mov ebx, eax
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.00403b5c
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00403c49
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x84]
call fcn.00427aac
pop ecx
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0xc0]
mov esi, eax
call fcn.00403a38
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00403b18
mov dword [ebp - 4], 8
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0x84]
call fcn.004042dc
pop ecx
mov esi, eax
mov byte [ebp - 4], 0xd
call fcn.00401589
push eax
push esi
lea eax, [ebp - 0xa0]
call fcn.004042b8
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0xc8]
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00404332
push 0x47ffec
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xf
call fcn.004042b8
add esp, 0x18
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00403c49
push 1
lea esi, [ebp - 0xa0]
call fcn.00403c49
push 1
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 0x13
call fcn.00403c49
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0x4013d6
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x68]
jae 0x4013e8
lea ecx, [ebp - 0x68]
push dword [ebp - 0xc0]
xor esi, esi
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.004047b9
lea edi, [ebx + 0x28]
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x401435
mov eax, dword [edi]
cmp eax, esi
je 0x40141b
push eax
call fcn.0044cf93
pop ecx
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.00403a1f
and dword [ebp - 0xc0], 0
lea eax, [ebp - 0xc0]
mov esi, edi
call fcn.004039cd
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.00403c49
push 1
lea esi, [ebp - 0x84]
call fcn.00403c49
mov eax, ebx
call fcn.00455dd9
ret