Function at 0x100048f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ebx
lea esi, [eax + ecx*4]
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
ja 0x10004920
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x10]
lea edx, [eax + 0x40000]
mov eax, 1
lea edx, [edx + ebx*4]
shl eax, cl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
cmp ecx, eax
ja 0x10004b17
cmp ecx, dword [ebp + 0x1c]
ja 0x10004b17
mov eax, dword [ebp + 0x14]
lea edi, [eax + ebx*4]
mov dword [ebp + 0x18], 0
mov eax, dword [esi]
add eax, dword [ebp - 4]
mov ecx, eax
mov dword [ebp + 0x1c], 1
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
shl eax, cl
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
jbe 0x10004b0d
mov ecx, esi
lea esi, [edi + 4]
sub ecx, edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + esi]
lea esi, [esi + 4]
add eax, dword [ebp - 4]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov edx, dword [edx + ecx*4]
mov eax, edx
mov ecx, dword [ebp + 0x10]
xor edx, dword [ebp + 0x14]
shl eax, cl
mov ecx, dword [ebp + 0x1c]
or eax, ecx
mov dword [esi - 4], eax
inc ecx
mov eax, dword [ebp + 0x18]
or eax, edx
mov dword [ebp + 0x1c], ecx
cmp ecx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x18], eax
jb 0x10004992
mov esi, dword [ebp - 8]
test eax, eax
je 0x10004b0a
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.100199c0
mov ebx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp + 0x10]
dec ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
mov edx, eax
shr edx, cl
and eax, ebx
mov dword [ebp + 0x1c], edx
mov edx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0x18], 0
mov eax, dword [esi + eax*4]
mov dword [edi], eax
jmp 0x10004a1b
mov ecx, dword [ebp + 0x10]
mov ebx, dword [edi + edx*4]
mov eax, ebx
shr eax, cl
cmp eax, dword [ebp + 0x1c]
je 0x10004a83
mov dword [ebp + 0x1c], eax
mov ecx, edx
mov eax, dword [ebp + 8]
sub ecx, dword [ebp + 0x18]
add eax, edx
mov dword [ebp + 0x14], eax
sub ecx, 1
je 0x10004a7c
mov esi, dword [ebp + 0x18]
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [edi + esi*4]
mov dword [edi + esi*4], eax
mov esi, dword [ebp - 8]
cmp ecx, 0x400
jb 0x10004a7c
mov esi, dword [ebp + 0x18]
or eax, 0x40000000
and ecx, 0xfffffc00
shl ecx, 0xa
mov dword [edi + esi*4], eax
mov eax, esi
mov esi, dword [ebp - 8]
or dword [edi + eax*4 + 4], ecx
mov ecx, edx
mov dword [ebp + 0x18], ecx
jmp 0x10004a8d
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], 1
and ebx, dword [ebp - 0x1c]
mov eax, dword [esi + ebx*4]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [edi + edx*4], eax
inc edx
mov dword [esi + eax*4], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
cmp edx, ebx
jb 0x10004a18
sub edx, ecx
sub edx, 1
je 0x10004ae7
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], eax
cmp edx, 0x400
jb 0x10004ae7
and edx, 0xfffffc00
or eax, 0x40000000
shl edx, 0xa
mov dword [edi + ecx*4], eax
or dword [edi + ecx*4 + 4], edx
test ebx, ebx
je 0x10004afe
sub edi, esi
nop dword [eax]
mov ecx, dword [edi + esi]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x10004af0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 1]
test ecx, ecx
jmp 0x10004c27
mov eax, dword [esi]
add eax, edi
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov edi, dword [edx + ecx*4]
mov edx, 1
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
jbe 0x10004b52
mov eax, dword [esi + edx*4]
add eax, dword [ebp - 4]
mov ecx, eax
sub ecx, ebx
cmp eax, ebx
cmovb ecx, eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + ecx*4], edi
mov ecx, dword [ebp + 0xc]
jne 0x10004b52
inc edx
cmp edx, ecx
jb 0x10004b33
cmp edx, ecx
je 0x10004c24
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jbe 0x10004c24
mov edx, dword [ebp + 0x18]
nop dword [eax]
inc eax
shr eax, 1
mov dword [ebp - 0x1c], eax
add eax, edx
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, ecx
nop
mov edx, dword [esi + edi*4]
lea ecx, [esi + edi*4]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
add ecx, edx
mov dword [ebp - 0x18], edx
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
cmovb edx, ecx
mov ecx, dword [ebp - 0x14]
cmp dword [esi + edx*4], ecx
mov esi, dword [ebp - 8]
jb 0x10004be8
dec eax
cmp eax, edi
jbe 0x10004bed
nop word [eax + eax]
mov ebx, dword [esi + eax*4]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
add ecx, ebx
mov edx, ecx
sub edx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x10]
cmovb edx, ecx
mov ecx, dword [ebp - 0x14]
cmp dword [esi + edx*4], ecx
mov esi, dword [ebp - 8]
jb 0x10004bd8
dec eax
cmp eax, edi
ja 0x10004bb0
jmp 0x10004bed
mov edx, dword [ebp - 0x18]
mov dword [esi + edi*4], ebx
mov dword [esi + eax*4], edx
cmp edi, eax
jae 0x10004bed
mov ebx, dword [ebp - 0x10]
inc edi
cmp edi, eax
jb 0x10004b80
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10004c08
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
sub edx, ecx
add eax, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x18], edx
jmp 0x10004c15
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
jne 0x10004c65
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x1c], eax
cmp eax, 1
ja 0x10004b70
add ecx, 0xffffffff
je 0x10004c57
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [esi]
mov dword [esi], eax
cmp ecx, 0x400
jb 0x10004c57
and ecx, 0xfffffc00
or eax, 0x40000000
shl ecx, 0xa
or dword [esi + 4], ecx
mov dword [esi], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, edi
cmp edi, dword [ebp + 0xc]
jae 0x10004c85
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + ecx*4]
inc ecx
mov dword [ebx + eax*4], edx
cmp ecx, edi
jb 0x10004c77
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.100048f0
mov ecx, dword [ebp + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub ecx, eax
add ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
sub eax, edi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call fcn.100048f0
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18