Function at 0x413cf2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0xf89c85b5
mov dword [ebp - 0x24], 0xf89c85b2
mov eax, dword [ebp - 4]
push ebx
push esi
mov esi, 0x7510896
sub eax, esi
mov ebx, 0x3272dd
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
sub eax, esi
add eax, ebx
mov dword [ebp - 0x20], eax
push edi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], 0xf89cb5b5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 8], eax
add dword [ebp - 8], 0xf89c85f5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 0xf89c85b1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x14], eax
add dword [ebp - 0x14], 0xf89f05b5
mov eax, 0x9588
mov word [ebp + 0x20], ax
mov eax, dword [ebp + 8]
or eax, eax
je 0x414165
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x414165
mov eax, dword [ebp + 0x18]
or eax, eax
je 0x414165
mov ax, word [ebp + 0x20]
mov ecx, 0x8a89
xor ax, cx
mov ecx, 0x3b4c
add ax, cx
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
jne 0x414165
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 0x50]
or eax, eax
je 0x414165
mov dword [ebp - 0x2c], 0xf88c85b5
mov eax, dword [ebp - 0x2c]
sub eax, esi
add eax, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [edi + 0x190]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x3c]
add ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [edi + 0x18c]
mov edx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0x20], edx
cmp edx, edx
jne 0x413e3f
mov eax, dword [edi + 0x1d8]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 8]
sub edx, esi
add edx, ebx
push edx
push dword [ecx + 0x50]
push dword [ebp + 0x20]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sbb ecx, eax
add eax, dword [ebp + 0x20]
push ecx
push eax
call fcn.00414779
mov edx, dword [ebp + 0x20]
mov eax, dword [edi + 0x194]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
push dword [eax + 0x54]
push dword [ebp + 8]
push edx
call fcn.00414620
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp - 4]
movzx edx, word [eax + 6]
sub ecx, esi
add ecx, ebx
mov dword [ebp + 0xc], eax
cmp edx, ecx
je 0x413f27
mov ecx, dword [ebp - 4]
sub ecx, esi
add ecx, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x24]
movzx edx, word [eax + 6]
sub ecx, esi
sbb edx, ecx
sbb edx, ebx
cmp dword [ebp - 0x20], edx
ja 0x413f27
mov edx, dword [ebp + 0x18]
add edx, 8
mov dword [ebp + 0x18], edx
jmp 0x413ead
mov edx, dword [ebp + 0x18]
mov eax, dword [eax + 0x38]
lea ecx, [eax - 1]
mov dword [ebp - 0x30], eax
mov eax, dword [edx]
test ecx, eax
je 0x413ec3
not ecx
and eax, ecx
add eax, dword [ebp - 0x30]
push eax
mov eax, dword [edx + 4]
add eax, dword [ebp + 0x20]
push eax
call fcn.00414779
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 8]
sub edx, esi
add edx, ebx
cmp ecx, edx
je 0x413ef8
push ecx
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
add eax, dword [ebp + 0x20]
push ecx
push eax
call fcn.00414620
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub eax, 0xffffffd8
sub ecx, esi
lea ecx, [edx + ecx + 0x3272dd]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x24]
movzx edx, word [edx + 6]
sub eax, esi
sbb edx, eax
mov eax, dword [ebp + 0xc]
sbb edx, ebx
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jbe 0x413eaa
mov ecx, dword [ebp - 4]
mov edx, dword [edi + 0x18c]
sub ecx, esi
add ecx, ebx
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [edx]
jne 0x413f65
mov eax, dword [edi + 0x1d8]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xc]
sub edx, esi
add edx, ebx
push edx
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x54]
push ecx
call dword [eax + 0x1c]
or eax, eax
je 0x414156
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x1c8]
mov ecx, dword [ecx]
sub ecx, esi
add ecx, ebx
je 0x414081
and dword [ebp - 0x28], 0
mov eax, 0x4fab
mov word [ebp - 0x3c], ax
add eax, 0xfffffff6
mov word [ebp - 0x3a], ax
mov eax, 0x4f91
mov word [ebp - 0x38], ax
add eax, 0x18
and dword [ebp + 8], 0
push eax
pop ecx
mov word [ebp - 0x34], ax
mov eax, 0x4e3d
mov word [ebp - 0x36], cx
mov word [ebp - 0x32], ax
mov eax, dword [ebp + 8]
lea eax, [ebp + eax*2 - 0x3c]
mov ecx, 0x8a89
xor cx, word [eax]
mov edx, 0x3b4c
add cx, dx
inc dword [ebp + 8]
cmp dword [ebp + 8], 6
mov word [eax], cx
jb 0x413fae
mov dword [ebp - 0x54], 0x200c1e26
mov dword [ebp - 0x50], 0x211e0805
mov dword [ebp - 0x4c], 0xf50c0e08
mov dword [ebp - 0x48], 0x3d0c0b20
mov dword [ebp - 0x44], 0x10c1e1e
mov word [ebp - 0x40], 0xf0f
mov byte [ebp - 0x3e], 0x7a
sub ecx, ecx
lea eax, [ebp + ecx - 0x54]
mov dl, byte [eax]
xor dl, 0x71
sub dl, 0xb
inc ecx
mov byte [eax], dl
cmp ecx, 0x17
jb 0x414000
mov eax, dword [edi + 0x1d8]
lea ecx, [ebp - 0x3c]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0x1d8]
lea edx, [ebp - 0x54]
push edx
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [edi + 0x18c]
push dword [ecx]
call eax
mov eax, dword [ebp - 0x28]
or eax, eax
je 0x41407e
mov dword [ebp + 8], eax
jmp 0x414053
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp + 8]
je 0x414060
mov edx, dword [eax + 0x18]
mov ecx, dword [edi + 0x18c]
cmp edx, dword [ecx]
jne 0x414049
mov edx, dword [eax + 0x18]
mov ecx, dword [edi + 0x18c]
cmp edx, dword [ecx]
jne 0x41407e
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x190]
mov edx, dword [edx + 0x28]
add edx, dword [ecx]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0xc]
push edi
push eax
push dword [ebp + 0x20]
call fcn.004138a9
or eax, eax
je 0x414156
push dword [ebp + 0xc]
push edi
pop ecx
push dword [ebp + 0x20]
call fcn.00413802
or eax, eax
je 0x414156
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
push edi
pop ecx
call fcn.004136db
or eax, eax
je 0x414156
push edi
push dword [ebp + 0x20]
call fcn.00413b8c
or eax, eax
je 0x414156
mov eax, dword [edi + 0x18c]
mov edx, dword [ebp + 0x20]
cmp edx, dword [eax]
jne 0x4140f5
mov eax, dword [edi + 0x1d8]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x54]
push edx
call dword [eax + 0x1c]
mov edx, dword [ebp + 0x20]
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax]
sub eax, esi
add eax, ebx
je 0x41413a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x28]
mov dword [ebp + 8], 0xf89ca5b5
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
sub esi, 0x896
push dword [ebp + 0x10]
sub esi, 0xffff8d23
or word [ecx + 0x16], si
add eax, edx
push edx
call eax
mov dword [edi + 0x1d0], 0xf89c85b2
jmp 0x414144
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
add eax, edx
call eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp + 0x18], 1
cmp dword [ebp + 0x18], 0
jne 0x414160
and dword [ebp + 0x20], 0
mov eax, dword [ebp + 0x20]
jmp 0x414167
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c