Function at 0x416163
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x60dfd8]
xor edx, edx
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x60dfc0]
mov eax, dword [eax + 0x3398]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [0x60e008]
push edi
mov di, word [0x60e00c]
mov ebp, dword [esp + 0x48]
mov cl, byte [eax + esi*4]
movzx eax, byte [esi + eax]
mov byte [esp + 0x13], cl
movzx ecx, di
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x60e000]
div dword [ecx + ebx*4]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
movzx edx, word [ecx + 0x3bb4]
mov ecx, dword [0x60dfdc]
movzx ecx, word [ecx + ebp*2]
imul ecx, edx
movzx eax, cx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x3f4]
mov dword [esp + 0x18], eax
mov eax, dword [0x60e014]
mov dword [esp + 0x14], eax
mov eax, dword [0x60e01c]
dec eax
mov dword [0x60e01c], eax
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [0x60dfc4]
movzx edx, byte [eax + ecx + 0x22]
mov eax, dword [0x60e030]
sub edx, dword [eax + esi*4]
inc di
mov word [0x60e00c], di
mov esi, 0xd4a
movzx ebp, byte [ecx + ebp*4]
movzx eax, di
and ebp, 0x1a
mov edi, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [0x60e028]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
movzx eax, byte [eax + ebx]
imul eax, dword [edi + 0x1a28]
inc ebx
mov dword [0x60dfc0], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
movzx eax, byte [0x60dfbe]
neg eax
or dword [edx + ecx*4], eax
mov eax, dword [0x60dfc0]
dec byte [0x60dfbe]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + eax*4]
movzx eax, byte [esi]
mov esi, dword [esp + 0x48]
movzx ecx, byte [eax + ecx + 0x17]
mov eax, dword [0x60e028]
movzx eax, byte [eax + esi]
imul ecx, eax
push ecx
push edx
call fcn.00415420
mov word [0x60e00c], ax
mov esi, dword [ebx]
mov eax, dword [0x60dfc0]
xor edx, edx
mov ebx, 0x13de
mov ecx, dword [0x60dfb8]
div ebx
mov eax, dword [esp + 0x24]
imul edx, dword [ecx + esi*4]
mov ebx, dword [esp + 0x48]
dec ebx
mov dword [ecx + esi*4], edx
movzx edx, byte [eax + 0xee9]
mov eax, dword [0x60dfa0]
mov ecx, dword [0x60dfc0]
imul esi, dword [0x60e01c], 0x1af0
xor edx, dword [eax + ecx*4 + 0x24]
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax]
movzx eax, byte [eax + ebp]
push eax
push edx
push esi
push ebx
push 0x96b
push dword [edi + ebx*4 + 0x20]
call fcn.004040bc
mov ecx, dword [0x60dfc0]
add esp, 0x20
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov dword [ecx*4 + 0x761], eax
mov ecx, dword [0x60e008]
mov eax, ecx
cdq
idiv dword [0x60dfe0]
imul eax, edx, 0x111c
inc ecx
mov dword [0x60e008], ecx
xor edx, edx
mov ecx, dword [0x60e020]
mov dword [0x60dffc], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
imul eax, eax, 3
movzx esi, byte [eax + edi]
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + ecx*4 + 9]
mov eax, dword [esp + 0x24]
imul esi, ecx
mov ecx, dword [0x60dfc0]
movzx ecx, byte [ecx + eax + 0x26]
mov eax, 0x3e5
div dword [esp + 0x30]
xor esi, ecx
mov ecx, edx
mov eax, esi
xor edx, edx
div ecx
movzx ecx, word [0x60e00c]
mov esi, eax
mov eax, 0xffff
movzx edx, byte [ecx + edi]
mov ecx, dword [0x60dfb8]
mov edi, dword [esp + 0x4c]
xor edx, dword [ecx + ebp*4 + 0xc]
mov dword [edi + ebp*4], edx
inc ebp
add word [0x60e00c], ax
mov eax, dword [0x60e020]
inc eax
mov dword [0x60e020], eax
add eax, eax
mov ebx, dword [ebx + eax*8]
mov eax, dword [esp + 0x34]
movzx ecx, ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
movzx eax, byte [ecx + eax]
cmp ebx, eax
jg 0x416522
mov eax, dword [esp + 0x3c]
lea eax, [eax + esi*4]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x20]
mov eax, 0xd4a
mov ecx, dword [0x60e01c]
movzx eax, byte [eax]
sub ecx, dword [edx + eax*4]
mov al, byte [esp + 0x13]
sub ecx, 0x12b9
imul ecx, dword [edi + ebx*4]
inc al
mov byte [esp + 0x13], al
movzx eax, al
mov dword [edi + ebx*4], ecx
mov dword [edx + ebp*4 + 4], eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov eax, dword [0x60dfb4]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x60dfc0]
mov esi, eax
or esi, 0x1374
inc eax
mov dword [0x60dfc0], eax
mov eax, dword [edx + eax*8]
cdq
idiv ebx
mov eax, dword [esp + 0x18]
movzx ecx, byte [ebx + eax]
mov eax, dword [0x60dfd4]
dec eax
push eax
push ecx
push edx
push 0xb42
push esi
push edi
mov dword [0x60dfd4], eax
call fcn.00415000
mov ecx, dword [0x60dfa4]
mov edi, dword [esp + 0x64]
mov dword [ecx + ebp*4 + 4], eax
mov eax, 0xe79
mov edx, dword [0x60dfc0]
add ebp, 2
mov ecx, dword [0x60e000]
mov esi, dword [eax]
mov eax, dword [esp + 0x2c]
movzx eax, byte [edx + eax]
add edx, edx
xor eax, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x54]
and eax, dword [ecx + edx*8]
xor edx, edx
div ebx
mov ecx, dword [esp + 0x38]
sub eax, dword [edi + esi*4]
mov dword [edi + esi*4], eax
mov eax, dword [0x60dfc0]
mov eax, dword [ecx + eax*4 + 0x64]
mov ecx, dword [esp + 0x60]
cdq
idiv dword [ecx]
mov ecx, dword [0x60dfdc]
xor edx, edx
mov esi, eax
movzx eax, word [ecx + 0x134c]
mov ecx, 0x6ca
div ecx
mov ecx, dword [0x60dfcc]
mov edx, ecx
dec ecx
mov dword [0x60dfcc], ecx
mov ecx, dword [0x60dfd4]
dec ecx
push ecx
push edx
push eax
push esi
mov dword [0x60dfd4], ecx
call fcn.0041573d
mov ecx, dword [0x60dfc0]
add esp, 0x28
mov edx, dword [esp + 0x24]
inc ebx
mov byte [edx + ecx*4], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
movzx eax, byte [ecx + eax]
cmp ebx, eax
jle 0x4163ed
mov ecx, dword [0x60dfe0]
mov ebx, dword [esp + 0x44]
pop edi
pop esi
mov eax, dword [ebx + ecx*4 + 0x10]
imul eax, ebp
pop ebp
mov dword [ebx + ecx*4 + 0x10], eax
mov edx, dword [0x60dfc0]
mov ecx, dword [0x60dfa0]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + edx*4]
xor dword [ecx + edx*8], eax
mov al, byte [esp + 7]
mov ecx, dword [0x60dfb8]
dec al
movzx eax, al
add eax, dword [ecx + 0x1280]
mov ecx, 0xd4a
movzx edx, byte [ecx]
mov ecx, dword [esp + 0x54]
movzx ecx, word [ecx + edx*2 + 0x3e]
cdq
idiv ecx
movzx ecx, byte [0x60dfbe]
sub edx, ebx
mov eax, edx
cdq
idiv ecx
pop ebx
mov byte [0x60dfbe], al
mov eax, 0x1ae1
add esp, 0x28
ret