Function at 0x418820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x49d03c]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov eax, dword [eax + 0x2f64]
mov dword [esp + 0x18], eax
mov eax, dword [0x49cffc]
mov dword [esp + 0x34], eax
push edi
mov edi, dword [0x49d040]
inc edi
mov esi, dword [0x49d024]
dec eax
mov dword [0x49d040], edi
inc dword [0x49cfec]
mov dword [0x49cffc], eax
movzx eax, word [ecx + 0x7c00]
movzx ecx, word [0x49d028]
mov dword [esp + 0x28], eax
mov eax, dword [0x49d004]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
mov ebp, dword [eax + 0x7978]
mov eax, dword [esp + 0x44]
add ebp, dword [0x49cfe0]
mov eax, dword [eax + 0x4a00]
cdq
idiv ecx
mov eax, dword [0x49d01c]
movzx ecx, word [0x49d018]
xor eax, 0x531
mov dword [esp + 0x3c], edx
movzx edx, word [0x49d020]
add edx, dword [0x49cfc0]
movzx ebx, ax
mov eax, dword [0x49d000]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jb 0x418a12
mov ecx, dword [esp + 0x14]
dec eax
mov edx, dword [0x49d034]
mov dword [0x49d000], eax
mov eax, ebp
sub eax, esi
movzx edi, word [0x49d044]
sub ax, word [ecx + 0x7ae4]
add esi, esi
mov word [0x49d008], ax
mov eax, dword [esp + 0x54]
imul ecx, edx, 0xc
dec edx
mov al, byte [eax + 0x41dc]
mov byte [esp + 0x30], al
mov eax, dword [0x49d038]
mov ebx, dword [ecx + eax + 0x7c]
mov eax, dword [esp + 0x58]
mov dword [0x49d034], edx
mov edx, dword [0x49cfd0]
and edx, 0x1de4
mov dword [esp + 0x2c], ebx
mov esi, dword [eax + esi*8 + 0x28]
inc dword [eax]
inc ebp
mov ecx, dword [eax]
mov eax, 0x7b4
mov ebx, dword [esp + 0x10]
mov eax, dword [eax]
add eax, eax
push dword [ebx + eax*8 + 0x48]
movzx eax, word [0x49cfc4]
mov ebx, dword [esp + 0x5c]
push dword [ebx + eax*4]
movzx eax, byte [ebp + 0x68fdef]
and eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ecx*4]
or al, 0xd4
movzx eax, al
push eax
push edx
push esi
push edi
push ebx
push dword [esp + 0x50]
call fcn.00418e6f
mov eax, dword [0x49cff0]
add esp, 0x24
mov ebx, dword [esp + 0x24]
mov ecx, eax
mov edx, dword [0x49d00c]
xor ecx, 0x39
mov edi, dword [esp + 0x18]
movzx esi, bx
add ebx, 0xffff
mov dword [esp + 0x24], ebx
sub cx, word [edx + esi*2 + 0xa]
sub cx, di
sub cx, ax
mov eax, dword [esp + 0x44]
mov word [edx + esi*2 + 0xa], cx
mov esi, dword [esp + 0x5c]
mov edx, dword [0x49d01c]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x4c]
xor ecx, 0x6b6
mov eax, dword [eax]
add eax, eax
or ecx, dword [esi + eax*8]
mov eax, dword [esp + 0x1c]
or dword [eax + edx*4], ecx
inc edi
mov eax, dword [0x49d000]
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x418a0a
mov esi, dword [0x49d024]
jmp 0x4188df
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
mov si, word [esp + 0x28]
dec eax
inc ebx
mov dword [0x49d000], eax
mov eax, dword [esp + 0x44]
movzx ecx, bx
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + ecx*4]
cmp ecx, edx
jne 0x418a47
mov edi, dword [esp + 0x1c]
mov ax, word [edi + ecx*4]
xor ax, cx
and si, ax
inc ecx
cmp ecx, edx
je 0x418a34
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
inc dword [eax]
mov ecx, dword [eax]
mov eax, dword [0x49d000]
sub eax, dword [0x49cff0]
imul eax, dword [ebx + ebp*4]
inc ebp
mov dword [ebx + ecx*4], eax
mov eax, dword [esp + 0x10]
movzx edx, word [0x49d030]
mov ecx, dword [eax]
mov eax, dword [0x49d00c]
movzx eax, word [eax + ecx*2 + 0xa]
push eax
push edx
call fcn.00404cb5
mov edx, dword [esp + 0x1c]
pop ecx
pop ecx
movzx ecx, word [edi]
mov dword [edx + ecx*4 + 0x24], eax
mov eax, dword [0x49cffc]
inc eax
mov dword [0x49cffc], eax
lea ecx, [ebx + eax*4]
mov eax, dword [0x49d034]
or eax, ebp
cdq
idiv dword [ecx]
mov eax, dword [esp + 0x38]
mov dword [ecx], edx
inc dword [0x49d034]
mov dx, word [0x49cfc4]
movzx ecx, byte [eax + ebp - 2]
mov ebp, dword [esp + 0x5c]
movzx eax, dx
add eax, eax
cmp ecx, dword [ebp + eax*8]
jne 0x418aeb
mov ecx, dword [esp + 0x54]
mov eax, 0xe0c
mov eax, dword [eax]
mov eax, dword [ecx + eax*4 + 0x34]
cmp eax, dword [0x49cfe0]
je 0x418bb6
mov ecx, dword [esp + 0x1c]
mov eax, 0x7b4
mov edx, dword [esp + 0x14]
imul eax, dword [eax], 0xc
add ecx, eax
mov eax, dword [ebx]
mov eax, dword [edx + eax*4]
xor edx, edx
div dword [ecx]
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
movzx eax, si
mov esi, dword [esp + 0x44]
xor dword [edx + ecx*4], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [0x49cfec]
add ecx, ecx
mov ebp, dword [eax + 0x35f4]
movzx eax, word [edi]
and ebp, 0x109e
add eax, 0xac
imul eax, eax, 0xc
mov ebx, dword [eax]
mov eax, dword [esp + 0x5c]
or ebx, dword [eax + ecx*8]
mov eax, 0x7b4
mov ecx, dword [0x49d01c]
inc ecx
mov eax, dword [eax]
mov edi, dword [edx + eax*4 + 0xc]
mov edx, dword [esp + 0x60]
mov dword [0x49d01c], ecx
mov esi, dword [esi + ecx*4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx]
sub esi, dword [ecx + eax*4 + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
movzx eax, word [eax]
mov ecx, dword [ecx + eax*4]
mov ax, word [0x49cfc4]
inc ax
mov word [0x49cfc4], ax
movzx eax, ax
push dword [edx + eax*4]
mov eax, dword [esp + 0x5c]
add eax, 0xc20
push eax
push ecx
push esi
push edi
push ebx
push ebp
call section..text
mov dx, word [0x49cfc4]
add esp, 0x1c
mov dword [0x49cfec], eax
mov eax, dword [0x49d014]
pop edi
movzx ecx, dx
pop esi
pop ebp
pop ebx
movzx eax, word [eax + ecx*2]
add esp, 0x30
ret