Function at 0x418a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], 0x7b8d798a
mov dword [esp + 0x1c], 0x7f8d7d8e
mov dword [esp + 0x20], 0x7393718c
mov dword [esp + 0x24], 0x7793758b
mov dword [esp + 0x28], 0xbec099a
mov dword [esp + 0x2c], 0xfea0ded
mov dword [esp + 0x30], 0x3f701ed
mov dword [esp + 0x34], 0x7f005fe
lea eax, [esp + 0x38]
mov word [esp + 0x38], 0x1906
mov dword [esp + 0x3a], 0
mov dword [esp + 0x3e], 0
mov dword [esp + 0x42], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x2d
ja 0x418b00
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x18]
mov esi, 0x50
sub esi, ecx
add ecx, 0x239e34af
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x68], esi
mov ecx, dword [esp + 0x68]
add cl, 0x37
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x18], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x2e
jb 0x418ac0
lea edi, [esp + 0x68]
lea edx, [esp + 0x18]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x88]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418b30
cmp eax, 0xffffffdd
jge 0x418b47
mov eax, 0xffffffff
jmp 0x418b4a
add eax, 0x22
push eax
call fcn.00409090
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x418b81
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x418b70
mov word [eax], 0
movzx ecx, word [esp + 0x68]
test cx, cx
je 0x418bb1
lea edx, [esp + 0x6a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x418ba0
mov word [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x43d14dd1
mov dword [esp + 0x1c], 0x479b41ce
mov dword [esp + 0x20], 0x3bb245e1
mov dword [esp + 0x24], 0x3f9b39ac
mov dword [esp + 0x28], 0x33a53dae
mov dword [esp + 0x2c], 0x37a531a9
mov dword [esp + 0x30], 0x2bf535a6
mov dword [esp + 0x34], 0x2ff129f7
mov dword [esp + 0x38], 0x23802df2
mov dword [esp + 0x3c], 0x27b121b5
mov dword [esp + 0x40], 0x1b8c2581
mov dword [esp + 0x44], 0x1f8d19df
mov dword [esp + 0x48], 0x13861d8e
mov dword [esp + 0x4c], 0x179e11b5
mov dword [esp + 0x50], 0xbb31580
mov dword [esp + 0x54], 0xfc309ac
mov dword [esp + 0x58], 0x3020dd2
mov dword [esp + 0x5c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x47
ja 0x418cb9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, 0xc9
sub edx, eax
add eax, 0xb08f6e36
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x64]
add al, 0x86
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x48
jb 0x418c80
lea eax, [esp + 4]
push eax
push 0x418f90
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00419570
add esp, 0x10
jmp dword [0x43cec8]