Function at 0x4301e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x64], ecx
mov ecx, edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x60], 0
call fcn.0041fcd0
mov ecx, edi
call fcn.0041fe00
mov ecx, dword [ebp - 0x44]
mov edi, eax
mov dword [ebp - 0x3c], edi
call fcn.0041fe00
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
call fcn.0041fe00
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
call fcn.0041fe00
mov dword [ebp - 0x34], eax
test eax, eax
je 0x430632
push 6
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00430cf0
add esp, 4
test eax, eax
je 0x430632
cmp eax, 6
jg 0x430632
lea eax, [ebp - 0x1c]
mov edx, esi
mov esi, dword [ebp - 0x30]
mov ecx, esi
push eax
call fcn.0042fb30
add esp, 4
test eax, eax
je 0x430632
cmp dword [esi + 4], 0
je 0x430632
mov ecx, dword [ebp - 0x34]
mov edx, ebx
call fcn.00420db0
test eax, eax
je 0x430632
mov esi, dword [esi + 4]
test esi, esi
jne 0x4302a9
xor eax, eax
jmp 0x4302bf
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov ecx, dword [ecx + esi*4 - 4]
call fcn.00421090
shl esi, 5
add esi, 0xffffffe0
add eax, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov esi, dword [eax + 4]
test esi, esi
jne 0x4302d0
xor eax, eax
jmp 0x4302e3
mov ecx, dword [eax]
mov ecx, dword [ecx + esi*4 - 4]
call fcn.00421090
shl esi, 5
add esi, 0xffffffe0
add eax, esi
mov esi, dword [ebp - 0x30]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], edx
cmp edx, dword [esi + 8]
jg 0x4302f8
mov eax, esi
jmp 0x430302
mov ecx, esi
call fcn.00421500
mov edx, dword [ebp - 0x28]
test eax, eax
je 0x430632
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x20], ebx
cmp eax, edx
jge 0x430324
mov ecx, edx
lea edi, [ebx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x3c]
mov dword [esi + 4], edx
cmp edx, dword [edi + 8]
jg 0x430330
mov eax, edi
jmp 0x43033a
mov ecx, edi
call fcn.00421500
mov edx, dword [ebp - 0x28]
test eax, eax
je 0x430632
mov esi, dword [edi]
mov dword [ebp - 0x2c], esi
mov dword [esi], 1
cmp edx, 1
jle 0x43035f
lea edi, [esi + 4]
xor eax, eax
lea ecx, [edx - 1]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [edi + 4], edx
cmp edx, dword [ecx + 8]
jg 0x43036e
mov eax, ecx
jmp 0x430379
call fcn.00421500
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
test eax, eax
je 0x430632
mov edi, dword [ecx]
mov dword [ebp - 0x4c], edi
test edx, edx
jle 0x430393
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
test edi, edi
je 0x43045d
lea esp, [esp]
mov ebx, dword [ebx]
test bl, 1
jne 0x43045a
mov ecx, dword [ebp - 0x5c]
xor edi, edi
mov eax, dword [esi]
mov edx, eax
and edx, 1
neg edx
mov ecx, dword [ecx]
mov dword [ebp - 0x54], edx
mov ecx, dword [ecx]
and ecx, edx
mov edx, dword [ebp - 0x28]
xor eax, ecx
lea ecx, [edx - 1]
test ecx, ecx
jle 0x43043c
mov ecx, dword [ebp - 0x20]
mov edx, 0xfffffffc
sub ecx, dword [ebp - 0x2c]
add esi, 4
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], edx
mov edx, dword [ecx + esi]
lea esi, [esi + 4]
mov ecx, edx
shr ebx, 1
shl ecx, 0x1f
or ecx, ebx
shr eax, 1
mov ebx, dword [ebp - 0x20]
mov dword [ebx + edi*4], ecx
mov ebx, edx
mov ecx, dword [ebp - 0x5c]
inc edi
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x50]
mov edx, dword [ecx + esi]
and edx, dword [ebp - 0x54]
xor edx, dword [esi - 4]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x28]
mov dword [esi - 8], ecx
lea ecx, [edx - 1]
cmp edi, ecx
mov ecx, dword [ebp - 0x58]
jl 0x4303f5
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
shr ebx, 1
shr eax, 1
mov dword [ecx + edi*4], ebx
mov ebx, ecx
mov dword [esi + edi*4], eax
mov edi, dword [ebp - 0x24]
sub edi, 1
mov dword [ebp - 0x24], edi
jne 0x4303b0
mov ebx, dword [ebp - 0x20]
cmp edi, 0x20
jg 0x430475
mov eax, dword [ebx]
test eax, eax
je 0x430632
cmp eax, 1
je 0x4305b8
mov ecx, dword [ebp - 0x40]
cmp edi, ecx
jge 0x4304b4
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edi
mov edi, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x4c], eax
test edx, edx
jle 0x4304f9
mov eax, dword [ebp - 0x48]
mov ecx, ebx
sub eax, ebx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
sub eax, ebx
sub esi, ebx
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x50], esi
mov esi, eax
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [esi + ecx - 4]
xor dword [edi + ecx - 4], eax
sub edx, 1
jne 0x4304d7
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x40]
jne 0x4303a1
lea eax, [edi - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov edx, dword [ebx + edi*4]
test edx, edx
jne 0x430523
test edi, edi
je 0x430523
mov edx, dword [ebx + edi*4 - 4]
dec edi
test edx, edx
je 0x430516
mov esi, edx
xor ebx, ebx
shr esi, 0x10
mov ecx, esi
neg ecx
shr ecx, 0x1f
neg ecx
test edx, edx
mov eax, ecx
setne bl
xor esi, edx
and esi, ecx
shl edi, 5
xor esi, edx
and eax, 0x10
mov edx, esi
add ebx, eax
shr edx, 8
mov ecx, edx
xor edx, esi
neg ecx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov eax, ecx
xor esi, edx
and eax, 8
mov edx, esi
add ebx, eax
shr edx, 4
mov ecx, edx
xor edx, esi
neg ecx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov eax, ecx
and eax, 4
xor esi, edx
add ebx, eax
mov edx, dword [ebp - 0x28]
mov ecx, esi
shr ecx, 2
mov eax, ecx
xor ecx, esi
neg eax
shr eax, 0x1f
neg eax
and ecx, eax
and eax, 2
xor ecx, esi
add eax, ebx
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
shr ecx, 1
neg ecx
shr ecx, 0x1f
neg ecx
and ecx, 1
add eax, ecx
add edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4303a1
mov ebx, dword [ebp - 0x3c]
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4305da
mov eax, dword [ebx]
lea eax, [eax + edx*4]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x4305d5
dec edx
test edx, edx
jg 0x4305c7
mov dword [ebx + 4], edx
test edx, edx
jne 0x4305e5
mov dword [ebx + 0xc], 0
xor edx, edx
mov esi, dword [ebp - 0x64]
cmp esi, ebx
je 0x430623
cmp edx, dword [esi + 8]
jg 0x4305f5
mov eax, esi
jmp 0x4305fc
mov ecx, esi
call fcn.00421500
test eax, eax
je 0x430632
mov eax, dword [ebx + 4]
test eax, eax
jle 0x430617
shl eax, 2
push eax
push dword [ebx]
push dword [esi]
call fcn.005514d0
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, 1
test esi, esi
cmovne eax, ecx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x44]
call fcn.0041fd90
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x60]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005395e6
mov esp, ebp
pop ebp
ret