Function at 0x10004300
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x50]
mov eax, ebx
cdq
push esi
and edx, 7
push edi
add eax, edx
sar eax, 3
push 4
push ebx
mov dword [esp + 0x38], eax
call fcn.10018450
mov edi, eax
mov eax, dword [esp + 0x58]
push 4
push eax
call fcn.10018450
mov esi, eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x20], eax
mov eax, 0x66666667
imul dword [esp + 0x60]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sar ebx, 3
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], ecx
jle 0x100043ff
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [ecx]
movzx edx, byte [ebx + ebp]
mov eax, dword [edx*4 + 0x7581500]
mov dword [esi], eax
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x10]
jge 0x100043ed
jmp 0x100043c0
movzx ecx, byte [eax + ebp]
mov edx, dword [ecx*4 + 0x7581500]
add dword [esi], edx
mov dl, byte [eax + ebp]
mov cl, byte [eax + ebp - 1]
add eax, 1
shr edx, 7
xor ecx, edx
and ecx, 1
add ecx, dword [esi]
cmp eax, dword [esp + 0x10]
mov dword [esi], ecx
jl 0x100043c0
mov ecx, dword [esp + 0x34]
add ebp, dword [esp + 0x54]
add esi, 4
sub dword [esp + 0x58], 1
jne 0x100043a0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x10004731
sub eax, ecx
lea edx, [esi + ecx*4]
add ecx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x54]
lea ecx, [eax + ebp]
xor esi, esi
xor edx, edx
test ebx, ebx
mov dword [esp + 0x18], ecx
jle 0x100044d7
sub ecx, ebp
mov dword [esp + 0x20], ebp
lea eax, [edi + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
mov edx, ebx
lea esi, [ebx*8]
jmp 0x10004460
mov ecx, dword [esp + 0x14]
jmp 0x10004460
mov ebx, dword [esp + 0x20]
movzx ecx, byte [ecx + ebx]
movzx ebx, byte [ebx]
xor ecx, ebx
mov ebx, ecx
sar ebx, 7
and ebx, 1
add dword [eax - 8], ebx
mov ebx, ecx
sar ebx, 6
and ebx, 1
add dword [eax - 4], ebx
mov ebx, ecx
sar ebx, 5
and ebx, 1
add dword [eax], ebx
mov ebx, ecx
sar ebx, 4
and ebx, 1
add dword [eax + 4], ebx
mov ebx, ecx
sar ebx, 3
and ebx, 1
add dword [eax + 8], ebx
mov ebx, ecx
sar ebx, 2
and ebx, 1
add dword [eax + 0xc], ebx
mov ebx, ecx
sar ebx, 1
and ebx, 1
add dword [eax + 0x10], ebx
mov ebx, 1
add dword [esp + 0x20], ebx
and ecx, ebx
add dword [eax + 0x14], ecx
add eax, 0x20
sub dword [esp + 0x2c], ebx
jne 0x10004457
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
movzx eax, byte [ecx + edx]
movzx ecx, byte [edx + ebp]
xor eax, ecx
mov ecx, eax
sar ecx, 7
and ecx, 1
add dword [edi + esi*4], ecx
mov ecx, eax
sar ecx, 6
and ecx, 1
add dword [edi + esi*4 + 4], ecx
mov ecx, eax
sar ecx, 5
and ecx, 1
add dword [edi + esi*4 + 8], ecx
mov ecx, eax
sar ecx, 4
and ecx, 1
add dword [edi + esi*4 + 0xc], ecx
mov ecx, eax
sar ecx, 3
and ecx, 1
add dword [edi + esi*4 + 0x10], ecx
mov ecx, eax
sar ecx, 2
and ecx, 1
add dword [edi + esi*4 + 0x14], ecx
mov ecx, eax
sar ecx, 1
and eax, 1
add dword [edi + esi*4 + 0x1c], eax
and ecx, 1
add dword [edi + esi*4 + 0x18], ecx
movzx eax, byte [ebx + ebp]
mov ecx, dword [eax*4 + 0x7581500]
mov eax, dword [esp + 0x58]
add edx, 1
add esi, 8
cmp edx, dword [esp + 0x10]
mov dword [eax], ecx
jge 0x10004628
mov ecx, dword [esp + 0x18]
sub ecx, ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
sub ecx, edx
lea ebx, [edx + ebp]
lea eax, [edi + esi*4 + 8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
add edx, ecx
lea esi, [esi + ecx*8]
nop
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ebx + ecx]
movzx ebx, byte [ebx]
xor ecx, ebx
mov ebx, ecx
sar ebx, 7
and ebx, 1
add dword [eax - 8], ebx
mov ebx, ecx
sar ebx, 6
and ebx, 1
add dword [eax - 4], ebx
mov ebx, ecx
sar ebx, 5
and ebx, 1
add dword [eax], ebx
mov ebx, ecx
sar ebx, 4
and ebx, 1
add dword [eax + 4], ebx
mov ebx, ecx
sar ebx, 3
and ebx, 1
add dword [eax + 8], ebx
mov ebx, ecx
sar ebx, 2
and ebx, 1
add dword [eax + 0xc], ebx
mov ebx, ecx
sar ebx, 1
and ecx, 1
add dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x20]
and ebx, 1
add dword [eax + 0x10], ebx
movzx ecx, byte [ecx]
mov ebx, dword [ecx*4 + 0x7581500]
mov ecx, dword [esp + 0x58]
add dword [ecx], ebx
mov ecx, dword [esp + 0x20]
mov bl, byte [ecx - 1]
mov cl, byte [ecx]
add eax, 0x20
shr ecx, 7
xor ebx, ecx
mov ecx, dword [esp + 0x58]
and ebx, 1
add ebx, dword [ecx]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x20]
add ebx, 1
sub dword [esp + 0x2c], 1
mov dword [esp + 0x20], ebx
jne 0x10004580
mov ebx, dword [esp + 0x24]
cmp edx, dword [esp + 0x30]
jge 0x100046d7
mov ecx, dword [esp + 0x18]
sub ecx, ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
sub ecx, edx
lea ebx, [edx + ebp]
lea eax, [edi + esi*4 + 8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ecx
add edx, ecx
lea esi, [esi + ecx*8]
jmp 0x10004660
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ebx + ecx]
movzx ebx, byte [ebx]
xor ecx, ebx
mov ebx, ecx
sar ebx, 7
and ebx, 1
add dword [eax - 8], ebx
mov ebx, ecx
sar ebx, 6
and ebx, 1
add dword [eax - 4], ebx
mov ebx, ecx
sar ebx, 5
and ebx, 1
add dword [eax], ebx
mov ebx, ecx
sar ebx, 4
and ebx, 1
add dword [eax + 4], ebx
mov ebx, ecx
sar ebx, 3
and ebx, 1
add dword [eax + 8], ebx
mov ebx, ecx
sar ebx, 2
and ebx, 1
add dword [eax + 0xc], ebx
mov ebx, ecx
sar ebx, 1
and ebx, 1
add dword [eax + 0x10], ebx
mov ebx, dword [esp + 0x2c]
and ecx, 1
add dword [eax + 0x14], ecx
add ebx, 1
add eax, 0x20
sub dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
jne 0x10004660
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
movzx ecx, byte [edx + ebp]
movzx eax, byte [eax + edx]
mov ebp, dword [esp + 0x4c]
xor eax, ecx
cmp esi, ebp
jge 0x10004715
lea ecx, [edx*8]
sub ecx, esi
add ecx, 7
lea esp, [esp]
mov edx, eax
sar edx, cl
add esi, 1
sub ecx, 1
and edx, 1
add dword [edi + esi*4 - 4], edx
cmp esi, ebp
jl 0x10004700
add dword [esp + 0x58], 4
sub dword [esp + 0x34], 1
mov ebp, dword [esp + 0x18]
jne 0x10004424
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x50]
jge 0x100047ab
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x1c]
lea esi, [esi + ecx*4]
mov dword [esp + 0x58], eax
jmp 0x10004750
movzx eax, byte [ebx + ebp]
mov ecx, dword [eax*4 + 0x7581500]
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x10]
mov dword [esi], ecx
jge 0x10004799
jmp 0x10004770
movzx edx, byte [eax + ebp]
mov ecx, dword [edx*4 + 0x7581500]
add dword [esi], ecx
mov cl, byte [eax + ebp]
mov dl, byte [eax + ebp - 1]
add eax, 1
shr ecx, 7
xor edx, ecx
and edx, 1
add edx, dword [esi]
cmp eax, dword [esp + 0x10]
mov dword [esi], edx
jl 0x10004770
add ebp, dword [esp + 0x54]
add esi, 4
sub dword [esp + 0x58], 1
jne 0x10004750
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x20]
mov ebp, dword [esp + 0x4c]
add eax, dword [edi + 0x1c]
mov ecx, 0xa
add eax, dword [edi + 0x18]
xor edx, edx
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
add eax, dword [edi + 0xc]
add eax, dword [edi + 8]
add eax, dword [edi + 4]
add eax, dword [edi]
cmp ebp, ecx
jle 0x100047ed
mov ebx, dword [edi + ecx*4]
sub ebx, dword [edi + ecx*4 - 0x28]
add eax, ebx
cmp eax, edx
jle 0x100047e6
mov edx, eax
add ecx, 1
cmp ecx, ebp
jl 0x100047d7
mov ebx, dword [esp + 0x3c]
lea ecx, [edx + 0x32]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [ebp - 1]
add eax, edx
test ecx, ecx
mov dword [ebx], 0
jle 0x10004822
mov edx, dword [ebx]
cmp dword [edi + edx*4], eax
jg 0x10004822
add edx, 1
cmp edx, ecx
mov dword [ebx], edx
jl 0x10004812
mov edx, dword [ebx]
add edx, 7
and edx, 0xfffffff8
cmp edx, ecx
mov dword [ebx], edx
jl 0x1000484c
push edi
call fcn.10018490
push esi
call fcn.10018490
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
mov ebp, dword [esp + 0x40]
mov dword [ebp], ecx
cmp ecx, dword [ebx]
jl 0x1000486b
mov ecx, dword [ebp]
cmp dword [edi + ecx*4], eax
jg 0x1000486b
add ecx, 0xffffffff
mov edx, ecx
mov dword [ebp], ecx
cmp edx, dword [ebx]
jge 0x10004857
and dword [ebp], 0xfffffff8
push edi
call fcn.10018490
mov eax, dword [ebp]
add esp, 4
cmp eax, dword [ebx]
jg 0x10004895
push esi
call fcn.10018490
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x50]
add eax, dword [esi + 0x1c]
mov ecx, 0xa
add eax, dword [esi + 0x18]
xor edx, edx
add eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
add eax, dword [esi + 8]
add eax, dword [esi + 4]
add eax, dword [esi]
cmp ebx, ecx
jle 0x100048d7
mov edi, dword [esi + ecx*4]
sub edi, dword [esi + ecx*4 - 0x28]
add eax, edi
cmp eax, edx
jle 0x100048d0
mov edx, eax
add ecx, 1
cmp ecx, ebx
jl 0x100048c1
mov edi, dword [esp + 0x44]
lea ecx, [edx + 0x32]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [ebx - 1]
add eax, edx
test ecx, ecx
mov dword [edi], 0
jle 0x10004910
lea esp, [esp]
mov edx, dword [edi]
cmp dword [esi + edx*4], eax
jg 0x10004910
add edx, 1
cmp edx, ecx
mov dword [edi], edx
jl 0x10004900
mov edx, dword [edi]
add edx, 7
and edx, 0xfffffff8
cmp edx, ecx
mov dword [edi], edx
jge 0x1000487f
mov ebx, dword [esp + 0x48]
mov dword [ebx], ecx
cmp ecx, dword [edi]
jl 0x10004940
lea esp, [esp]
mov ecx, dword [ebx]
cmp dword [esi + ecx*4], eax
jg 0x10004940
add ecx, 0xffffffff
mov dword [ebx], ecx
cmp ecx, dword [edi]
jge 0x10004930
and dword [ebx], 0xfffffff8
push esi
call fcn.10018490
mov edx, dword [ebx]
add esp, 4
xor eax, eax
cmp edx, dword [edi]
pop edi
pop esi
pop ebp
setle al
pop ebx
add esp, 0x28
ret