Function at 0x10095f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x100e3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x5d8], ebx
mov dword [ebp - 0x5bc], eax
mov esi, ecx
cmp edi, 0x100
jbe 0x10095f42
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5d4], eax
jmp 0x10095f4c
mov dword [ebp - 0x5d4], 0x10
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.1009e470
add esp, 0xc
mov ecx, esi
mov edx, edi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x54]
sub edx, 1
jne 0x10095f60
cmp dword [ebp - 0x54], edi
jne 0x10095f90
mov eax, dword [ebp - 0x5bc]
mov dword [ebx], edx
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x54], 0
jne 0x10095fa2
inc ecx
cmp ecx, 0x10
jbe 0x10095f95
mov edx, dword [ebp - 0x5bc]
mov eax, ecx
mov dword [ebp - 0x5ac], eax
cmp dword [edx], ecx
jae 0x10095fb6
mov dword [edx], ecx
mov eax, 0x10
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x54], 0
jne 0x10095fcc
sub eax, 1
jne 0x10095fc0
mov dword [ebp - 0x5c8], eax
cmp dword [edx], eax
jbe 0x10095fd8
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x10095ff0
sub edx, dword [ebp + ecx*4 - 0x54]
js 0x10096005
inc ecx
add edx, edx
cmp ecx, eax
jb 0x10095fe3
lea ebx, [eax*4]
mov ecx, edx
sub edx, dword [ebp + ebx - 0x54]
mov dword [ebp - 0x5f0], edx
jns 0x1009601b
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp + ebx - 0x54], ecx
mov dword [ebp - 0x98], edx
sub eax, 1
je 0x10096043
xor ecx, ecx
nop
add edx, dword [ebp + ecx - 0x50]
lea ecx, [ecx + 4]
mov dword [ebp + ecx - 0x98], edx
sub eax, 1
jne 0x10096030
push 0x480
lea eax, [ebp - 0x5a4]
push 0
push eax
call fcn.1009e470
add esp, 0xc
xor ecx, ecx
nop dword [eax + eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1009607f
mov eax, dword [ebp + edx*4 - 0x9c]
mov dword [ebp + eax*4 - 0x5a4], ecx
inc eax
mov dword [ebp + edx*4 - 0x9c], eax
inc ecx
cmp ecx, edi
jb 0x10096060
mov eax, dword [ebp + ebx - 0x9c]
xor edx, edx
mov ecx, dword [ebp - 0x5ac]
xor esi, esi
mov ebx, dword [ebp - 0x5c8]
or edi, 0xffffffff
mov dword [ebp - 0x5e8], eax
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5b8], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5c4], edi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0x5a8], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x5e0], edx
mov dword [ebp - 0x5dc], edx
cmp ecx, ebx
jg 0x100963f1
lea eax, [ebp - 0x54]
mov esi, edx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x5cc], eax
mov eax, dword [eax]
test eax, eax
je 0x100963d3
mov ebx, dword [ebp + edi*4 - 0xe0]
mov dword [ebp - 0x5d0], eax
dec eax
mov dword [ebp - 0x5e4], eax
lea eax, [ebx + edx]
cmp ecx, eax
jle 0x1009626a
nop
mov eax, dword [ebp - 0x5c8]
add edx, ebx
mov ebx, dword [ebp - 0x5bc]
sub eax, edx
inc edi
mov dword [ebp - 0x5a8], edx
mov dword [ebp - 0x5c4], edi
mov esi, dword [ebx]
cmp eax, esi
mov ebx, ecx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5d0]
jbe 0x10096189
mov edx, dword [ebp - 0x5cc]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5e4]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x10096183
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x10096183
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x10096170
mov edx, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5d4]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x1009619e
cmp edx, ecx
jae 0x1009619e
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
mov dword [ebp + edi*4 - 0xe0], ebx
mov esi, 1
shl esi, cl
mov dword [ebp - 0x5dc], esi
lea eax, [esi*8 + 8]
push eax
call fcn.1009ff8c
add esp, 4
test eax, eax
je 0x1009642b
mov edx, dword [ebp - 0x5d8]
lea ecx, [eax + 8]
mov esi, dword [ebp - 0x5b8]
add eax, 4
mov dword [ebp - 0x5e0], ecx
mov dword [ebp - 0x5d8], eax
mov dword [edx], ecx
mov dword [eax], 0
mov dword [ebp + edi*4 - 0x124], ecx
test edi, edi
je 0x10096253
mov al, byte [ebp + edi*4 - 0xe4]
mov edx, 1
mov dword [ebp - 0x5b0], ecx
mov ecx, dword [ebp - 0x5a8]
shl edx, cl
sub ecx, dword [ebp + edi*4 - 0xe4]
dec edx
and edx, esi
mov byte [ebp - 0x5b3], al
shr edx, cl
lea eax, [ebx + 0x20]
mov ecx, dword [ebp + edi*4 - 0x128]
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp - 0x5b4]
mov dword [ebp + edi*4 - 0x9c], esi
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ecx + edx*8 + 4], eax
mov edx, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5ac]
lea eax, [edx + ebx]
cmp ecx, eax
jg 0x10096120
mov al, cl
lea ebx, [ebp - 0x5a4]
sub al, dl
mov byte [ebp - 0x5b3], al
mov eax, dword [ebp - 0x5e8]
lea eax, [ebx + eax*4]
mov ebx, dword [ebp - 0x5c0]
cmp ebx, eax
jb 0x10096296
mov byte [ebp - 0x5b4], 0x63
jmp 0x100962ea
mov ecx, dword [ebx]
add ebx, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c0], ebx
cmp ecx, eax
jae 0x100962c2
cmp ecx, 0x100
mov word [ebp - 0x5b0], cx
setb al
add al, 0x1f
mov byte [ebp - 0x5b4], al
jmp 0x100962e4
sub ecx, eax
mov dword [ebp - 0x5c0], ebx
mov eax, dword [ebp + 0x10]
mov al, byte [ecx + eax]
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp + 0xc]
mov ax, word [eax + ecx*2]
mov word [ebp - 0x5b0], ax
mov ecx, dword [ebp - 0x5ac]
mov ebx, dword [ebp - 0x5dc]
sub ecx, edx
mov eax, 1
shl eax, cl
mov ecx, edx
shr esi, cl
mov dword [ebp - 0x5d0], eax
cmp esi, ebx
jae 0x1009634d
mov edx, dword [ebp - 0x5b4]
mov ecx, dword [ebp - 0x5d0]
mov edi, dword [ebp - 0x5b0]
shl eax, 3
mov dword [ebp - 0x5ec], eax
mov eax, dword [ebp - 0x5e0]
lea eax, [eax + esi*8]
nop dword [eax + eax]
mov dword [eax], edx
add esi, ecx
mov dword [eax + 4], edi
add eax, dword [ebp - 0x5ec]
cmp esi, ebx
jb 0x10096330
mov edx, dword [ebp - 0x5a8]
mov edi, dword [ebp - 0x5c4]
mov ecx, dword [ebp - 0x5ac]
mov eax, 1
mov esi, dword [ebp - 0x5b8]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x1009636f
xor esi, eax
shr eax, 1
test esi, eax
jne 0x10096367
xor esi, eax
mov ecx, edx
mov eax, 1
mov dword [ebp - 0x5b8], esi
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [ebp + edi*4 - 0x9c]
je 0x100963b9
nop dword [eax]
sub edx, dword [ebp + edi*4 - 0xe4]
dec edi
mov eax, 1
mov ecx, edx
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [ebp + edi*4 - 0x9c]
jne 0x10096390
mov dword [ebp - 0x5c4], edi
mov dword [ebp - 0x5a8], edx
mov eax, dword [ebp - 0x5e4]
mov ecx, dword [ebp - 0x5ac]
test eax, eax
jne 0x10096100
mov ebx, dword [ebp - 0x5c8]
mov eax, dword [ebp - 0x5cc]
inc ecx
add eax, 4
mov dword [ebp - 0x5ac], ecx
mov dword [ebp - 0x5cc], eax
cmp ecx, ebx
jle 0x100960f6
cmp dword [ebp - 0x5f0], 0
mov ecx, dword [ebp - 0x5bc]
mov eax, dword [ebp - 0xe0]
mov dword [ecx], eax
je 0x10095f7d
cmp ebx, 1
je 0x10095f7d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10096455
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x10096455
nop dword [eax]
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.1009ff87
add esp, 4
mov eax, esi
test esi, esi
jne 0x10096440
mov ecx, dword [ebp - 8]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret