Function at 0x1000cae0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
movzx ebx, word [0x1004d400]
push ebp
push esi
mov esi, dword [0x1004d3f8]
mov ebp, edx
mov eax, dword [ecx + ebx*4]
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, 0x9b5
push edi
mov edi, dword [0x1004d3f0]
sub eax, edi
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [0x1004d3c0]
imul eax, eax
inc byte [0x1004d3c7]
mov dword [esp + 0x24], ebp
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x369c]
add eax, esi
mov dword [esp + 0x34], eax
mov eax, 0x1e3a
div ebx
mov dl, al
mov eax, dword [ebp + edi*4]
mov edi, dword [0x1004d3b4]
add eax, 0x1592
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ebx, dword [0x1004d410]
add eax, eax
add edi, ebx
mov byte [esp + 0x13], dl
mov dword [esp + 0x18], edi
mov eax, dword [ebp + eax*8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + esi*4]
mov dword [esp + 0x38], eax
movzx eax, byte [0x1004d3c4]
mov dword [esp + 0x20], eax
mov eax, dword [0x1004d424]
mov edi, eax
cmp eax, ebx
jle 0x1000cba8
lea eax, [eax + eax*2]
lea esi, [ecx + eax*4]
mov edx, dword [ecx]
lea esi, [esi + 0xc]
mov eax, dword [esi - 0xc]
inc edi
mov dword [ecx + edx*4], eax
cmp edi, ebx
jg 0x1000cb94
mov dl, byte [esp + 0x13]
mov ebx, dword [esp + 0x18]
lea eax, [ebx + ebx*2]
mov esi, dword [ebp + eax*4]
mov eax, dword [esp + 0x28]
movzx eax, ax
lea eax, [eax*4 + 0x20]
add eax, ebp
mov dword [esp + 0x2c], eax
cmp esi, dword [eax]
jle 0x1000cc6e
movzx eax, word [0x1004d400]
mov dh, byte [0x1004d3c7]
lea eax, [eax + eax*2]
lea eax, [eax*4]
add eax, ebp
mov dword [esp + 0x28], eax
movzx eax, dh
mov dword [esp + 0x18], eax
mov eax, esi
shl eax, 4
lea edi, [eax + ebp]
lea ebp, [ecx + 0x10]
add ebp, eax
mov eax, dword [ecx]
lea ebp, [ebp + 0x10]
add dl, dl
dec dword [0x1004d3e4]
dec dl
inc word [0x1004d428]
mov byte [esp + 0x13], dl
lea edi, [edi + 0x10]
mov eax, dword [ecx + eax*8]
xor edx, edx
and dword [ebp - 0x10], eax
mov eax, 0x69d
sub eax, dword [0x1004d3f0]
mov dword [0x1004d3f0], eax
mov eax, dword [esp + 0x28]
add dword [eax], esi
mov eax, dword [ecx + esi*8]
div esi
xor edx, edx
and eax, dword [0x1004d3e4]
and ebx, eax
mov eax, dword [esp + 0x18]
div dword [ecx + esi*4]
xor edx, edx
inc esi
div dword [edi - 0x10]
mov eax, dword [esp + 0x2c]
mov dword [edi - 0x10], edx
mov dl, byte [esp + 0x13]
cmp esi, dword [eax]
jg 0x1000cc00
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x30]
movzx eax, word [0x1004d3ec]
and eax, dword [0x1004d3e0]
mov edi, dword [ebp]
add eax, dword [edx + 0x368]
xor edx, edx
mov esi, dword [0x1004d438]
mov ebx, dword [0x1004d3d8]
div dword [esi + edi*8 + 8]
mov edx, dword [0x1004d3f0]
or dword [ebx + 0x5c60], eax
mov esi, dword [esp + 0x34]
lea ebx, [edx*4]
mov edx, dword [0x1004d3e8]
mov dword [esp + 0x30], ebx
mov eax, dword [ecx + edx*4 + 0x1c]
inc edx
sub eax, dword [0x1004d3cc]
add eax, 0x1ab8
mov dword [0x1004d3e8], edx
mov dword [ebx + ebp], eax
mov eax, dword [ecx]
lea edx, [ecx + eax*8]
movzx eax, word [esi + 0x11e4]
xor eax, dword [ecx + 0xf88]
imul eax, dword [edx]
mov dword [edx], eax
movzx eax, byte [0x1004d3c7]
cmp dword [0x1004d424], eax
jg 0x1000cf2e
cmp eax, dword [esp + 0x38]
jl 0x1000cd22
mov eax, dword [ecx]
movzx eax, word [esi + eax*2]
cmp dword [esp + 0x3c], eax
jle 0x1000cd22
inc dword [ebp]
mov eax, dword [ebp]
mov eax, dword [ebp + eax*8 + 0xc]
cmp eax, dword [ebp + 0x7b14]
jl 0x1000cd60
mov eax, 0xc8
cmp word [esp + 0x1c], ax
je 0x1000cd60
mov edx, dword [ecx]
mov eax, 0xac9
xor word [0x1004d414], ax
mov eax, dword [esp + 0x14]
pop edi
mov ecx, dword [ecx + edx*4 + 0x10]
sub ecx, dword [ebp + edx*4]
add ecx, 0x13f2
pop esi
mov dword [ebp + edx*4], ecx
mov eax, dword [eax + 0x5fc8]
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [0x1004d420]
inc ebx
mov dword [0x1004d420], ebx
lea edi, [eax + eax*2]
mov eax, ebx
cdq
lea esi, [edi*4]
idiv dword [ebp + 0x73e4]
mov eax, edx
cdq
idiv dword [esi + ebp + 0x1c]
mov ax, word [0x1004d400]
inc ax
mov dword [esi + ebp + 0x1c], edx
movzx esi, ax
xor edx, edx
mov word [0x1004d400], ax
mov eax, dword [ebp]
mov eax, dword [ecx + eax*4]
div dword [esi*4 + 0x20f]
mov dword [esi*4 + 0x20f], eax
mov eax, dword [esp + 0x20]
mov esi, dword [ecx + edi*4]
movzx eax, ax
cmp esi, eax
jle 0x1000ce62
mov eax, dword [0x1004d40c]
movzx edx, word [0x1004d3ec]
mov eax, dword [eax + 0x4dac]
imul eax, eax, 0x1645
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, 0x80301207
imul ebx
mov eax, dword [esp + 0x1c]
add edx, ebx
movzx eax, ax
sar edx, 0xa
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor ebx, eax
lea eax, [esi + esi*2]
mov dword [esp + 0x38], ebx
lea edi, [ecx + eax*4]
nop dword [eax]
mov eax, dword [esp + 0x3c]
lea edi, [edi + 0xc]
mov edx, dword [0x1004d418]
mov ebx, dword [esp + 0x14]
mov dword [edi - 0xc], eax
mov eax, dword [ebp]
lea edx, [edx + eax*4]
movzx eax, word [ebx + eax*8]
add dword [edx], eax
mov eax, dword [ecx]
mov ebx, dword [esp + 0x38]
lea eax, [eax + eax*2]
mov dword [ebp + eax*4 + 0x14], ebx
mov eax, esi
mov ebp, dword [esp + 0x20]
and eax, 0x1788
sub eax, dword [0x1004d430]
inc esi
movzx edx, bp
mov ebp, dword [esp + 0x24]
mov word [0x1004d430], ax
cmp esi, edx
jg 0x1000ce10
jmp 0x1000ce68
mov ax, word [0x1004d430]
mov edi, dword [esp + 0x18]
mov edi, dword [ecx + edi*4]
cmp edi, 0x1b51
jl 0x1000cf2e
movzx edx, ax
lea ebx, [edi*4]
movzx eax, byte [esp + 0x13]
add ebx, ebp
mov dword [esp + 0x34], edx
lea eax, [eax*4]
add eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x38], eax
lea eax, [edi + 2]
lea eax, [edi + eax*2]
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], eax
mov eax, dword [0x1004d40c]
lea eax, [eax + edi*4]
add eax, 8
sub ecx, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
nop dword [eax]
movzx esi, byte [0x1004d3ee]
lea ebx, [ebx + 4]
mov eax, edx
xor edx, edx
div esi
mov eax, dword [ebp]
xor eax, edi
mov byte [0x1004d3ee], dl
mov dword [ecx + ebx - 4], eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
add dword [eax], edi
inc edi
mov eax, dword [0x1004d424]
inc eax
mov dword [0x1004d424], eax
cdq
idiv dword [ebx - 4]
mov edx, dword [esp + 0x20]
mov dword [ebx - 4], eax
mov eax, dword [esi]
add esi, 4
mov dword [esp + 0x24], esi
add dword [edx], eax
add edx, 0xc
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
cmp edi, 0x1b51
jge 0x1000ced0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0x5fc8]
pop ebx
add esp, 0x30
ret