Function at 0x4641f4
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x794
push 0x190
call fcn.00403564
pop ecx
mov dword [0x873c58], eax
test eax, eax
je 0x4648a4
xor eax, eax
mov dword [0x873c5c], eax
mov dword [0x873c60], eax
movsx edx, byte [0x873974]
test edx, edx
jne 0x464250
mov eax, dword [0x59cc38]
mov edx, 0x879bf4
call fcn.00464bd8
test eax, eax
je 0x464263
mov eax, 0xffffffff
add esp, 0x794
pop ebx
pop ebp
pop esi
pop edi
ret
mov byte [esp + 0xc], 1
mov byte [esp + 0xd], 0
lea eax, [esp + 0xc]
call fcn.004648c4
mov ebp, 4
mov eax, dword [ebp + 0x873c74]
add ebp, 4
test eax, eax
je 0x46427a
call fcn.004648c4
cmp ebp, 0x24
jle 0x464268
mov ebp, dword [0x873c60]
add ebp, ebp
add ebp, ebp
push ebp
call fcn.0046fe4c
mov esi, eax
mov dword [0x873c64], esi
push ebp
call fcn.0046fe4c
mov dword [0x873c68], eax
push ebp
call fcn.0046fe4c
add esp, 0xc
mov dword [0x873c6c], eax
cmp dword [0x873c5c], 0
jle 0x46489d
xor edx, edx
xor eax, eax
mov dword [esp + 0x354], edx
mov dword [esp + 0x368], eax
mov ebp, dword [esp + 0x368]
lea ecx, [ebp + ebp]
mov dword [esp + 0x364], ecx
mov ebx, dword [0x873c58]
lea eax, [esp + 0x324]
mov edx, dword [ebx + ebp*4]
call fcn.00464aac
movsx eax, byte [esp + 0x32c]
test eax, eax
je 0x464872
mov ebx, dword [esp + 0x334]
mov ecx, dword [esp + 0x338]
add ebx, 8
adc ecx, 0
push 0
push ecx
push ebx
push dword [esp + 0x330]
call fcn.00472594
add esp, 0x10
lea eax, [esp + 0x324]
call fcn.0045c1cc
mov esi, eax
lea eax, [esp + 0x324]
call fcn.0045c1cc
mov ebp, eax
lea edx, [ebp + 1]
push edx
call fcn.0046fe4c
mov ebx, eax
mov edi, ebx
mov edx, dword [esp + 0x338]
mov eax, dword [esp + 0x33c]
add edx, 0x20
adc eax, 0
push 0
push eax
push edx
push dword [esp + 0x334]
call fcn.00472594
add esp, 0x14
lea eax, [esp + 0x324]
mov edx, ebx
mov ecx, ebp
call fcn.00464b28
test esi, esi
jle 0x464757
mov eax, 0x20
xor edx, edx
mov dword [esp + 0x360], edx
mov dword [esp + 0x358], ebx
mov dword [esp + 0x36c], ebp
mov dword [esp + 0x35c], esi
mov esi, eax
mov ebx, dword [esp + 0x354]
lea ebp, [ebx + ebx]
mov dword [esp + 0x370], ebp
mov ecx, dword [0x873c64]
mov edx, dword [edi]
mov dword [ecx + ebx*4], edx
mov ecx, dword [0x873c68]
mov edx, dword [esp + 0x368]
mov dword [ecx + ebx*4], edx
lea edx, [esi + 4]
mov ecx, dword [0x873c6c]
mov dword [ecx + ebx*4], edx
movzx edx, byte [edi + 4]
neg edx
movzx ebp, byte [edx + 0x6619bf]
add edi, 5
lea esi, [ebp + esi + 5]
lea ecx, [esi - 0x20]
mov edx, dword [esp + 0x36c]
cmp edx, ecx
jb 0x464853
lea edx, [esp + 0x37c]
push ebp
push edi
push edx
call dword [0x5b9a6c]
mov byte [esp + ebp + 0x388], 0
lea edi, [edi + ebp + 0x12]
add edi, 4
add esi, 0x16
lea ecx, [esp + 0x594]
lea edx, [esp + 0x388]
push ebp
push edx
push ecx
call dword [0x5b9a6c]
add esp, 0x18
mov byte [esp + ebp + 0x588], 0
test ebp, ebp
jle 0x464479
xor edx, edx
movsx eax, byte [esp + edx + 0x588]
neg eax
dec eax
mov byte [esp + edx + 0x588], al
inc edx
cmp edx, ebp
jl 0x464462
test ebp, ebp
jle 0x46448c
xor edx, edx
xor byte [esp + edx + 0x588], 0x36
inc edx
cmp edx, ebp
jl 0x46447f
lea edx, [esp + 0x588]
push edx
push 0x879c20
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x4644ac
mov byte [0x87396c], 1
test ebx, ebx
jle 0x46472a
xor ebp, ebp
mov dword [esp + 0x378], edi
mov dword [esp + 0x374], esi
mov esi, dword [esp + 0x370]
mov edx, dword [0x873c64]
mov eax, dword [edx + esi*2]
cmp eax, dword [edx + ebp*4]
jne 0x464713
mov byte [0x873c70], 1
mov ecx, dword [0x873c68]
mov edx, dword [ecx + ebp*4]
mov edi, dword [0x873c58]
lea eax, [esp + 0x33c]
mov edx, dword [edi + edx*4]
call fcn.00464aac
movsx eax, byte [esp + 0x344]
test eax, eax
je 0x464837
mov ecx, dword [0x873c6c]
mov eax, dword [ecx + ebp*4]
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [esp + 0x33c]
call fcn.004409a8
lea eax, [esp + 0x33c]
call fcn.004409cc
movzx eax, al
neg eax
movzx edi, byte [eax + 0x6619bf]
lea eax, [esp + 0x33c]
lea edx, [esp + 0x118]
mov ecx, edi
call fcn.00464b28
mov byte [esp + edi + 0x118], 0
lea eax, [esp + 0x33c]
call fcn.00464b3c
lea edx, [esp + 0x37c]
lea eax, [esp + 0x118]
push eax
push edx
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x464713
lea edi, [esp + 0x37c]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4645aa
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4645a2
test eax, eax
jle 0x4645c7
xor ecx, ecx
movsx edx, byte [esp + ecx + 0x37c]
neg edx
dec edx
mov byte [esp + ecx + 0x37c], dl
inc ecx
cmp ecx, eax
jl 0x4645b0
test eax, eax
jle 0x4645da
xor edx, edx
xor byte [esp + edx + 0x37c], 0x36
inc edx
cmp edx, eax
jl 0x4645cd
mov ecx, dword [0x873c58]
xor edx, edx
lea eax, [esp + 0x10]
push edx
push eax
push edx
push edx
mov edi, dword [esp + 0x374]
push dword [ecx + edi*2]
call fcn.00470cc7
lea eax, [esp + 0x24]
push 0x879c30
push eax
call fcn.0046ff90
add esp, 0x1c
test eax, eax
jne 0x464616
mov edi, 1
jmp 0x464618
xor edi, edi
lea eax, [esp + 0x10]
push 0x879c38
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x464633
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c40
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x46464e
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c48
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x464669
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c50
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x464684
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c58
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x46469f
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c60
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x4646ba
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c68
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x4646d5
mov edi, 1
lea eax, [esp + 0x10]
push 0x879c70
push eax
call fcn.0046ff90
add esp, 8
test eax, eax
jne 0x4646f0
mov edi, 1
test edi, edi
je 0x464813
mov eax, dword [0x873c64]
cmp dword [eax + ebp*4], 0
jne 0x46470c
mov dword [eax + ebp*4], 1
jmp 0x464713
mov dword [eax + ebp*4], 0
inc ebp
cmp ebp, ebx
jl 0x4644cb
mov edi, dword [esp + 0x378]
mov esi, dword [esp + 0x374]
inc ebx
mov edx, dword [esp + 0x360]
inc edx
mov dword [esp + 0x360], edx
mov ecx, dword [esp + 0x35c]
cmp edx, ecx
jl 0x4643c1
mov dword [esp + 0x354], ebx
mov ebx, dword [esp + 0x358]
test ebx, ebx
je 0x464762
push ebx
call fcn.004703de
pop ecx
lea eax, [esp + 0x324]
call fcn.00464b3c
mov eax, dword [esp + 0x368]
inc eax
mov dword [esp + 0x368], eax
cmp eax, dword [0x873c5c]
jl 0x4642cf
mov edx, dword [esp + 0x354]
mov esi, dword [0x873c64]
lea edi, [edx - 1]
mov ebp, edi
mov ecx, edi
shr ecx, 0x1f
lea ecx, [ecx + edx - 1]
and ecx, 0xfffffffe
mov eax, dword [esi + ecx*2]
xor edx, edx
mov ecx, eax
mov eax, esi
mov esi, edi
mov edi, ecx
mov ebx, edx
cmp edi, dword [eax + ebx*4]
jbe 0x4647c4
mov ecx, dword [eax + ebx*4 + 4]
inc ebx
cmp ecx, edi
jb 0x4647bb
cmp edi, dword [eax + ebp*4]
jae 0x4647d2
mov ecx, dword [eax + ebp*4 - 4]
dec ebp
cmp edi, ecx
jb 0x4647c9
cmp ebx, ebp
jge 0x4647e8
mov eax, ebx
mov edx, ebp
call fcn.00464a58
inc ebx
dec ebp
mov eax, dword [0x873c64]
jmp 0x4647b6
mov edx, ebx
mov edi, esi
dec edx
test edx, edx
jle 0x4647f8
xor eax, eax
call fcn.00464b50
inc ebp
cmp edi, ebp
jle 0x464806
mov eax, ebp
mov edx, edi
call fcn.00464b50
xor eax, eax
add esp, 0x794
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [esp + 0x37c]
push eax
push 0
push 0x196d6
call fcn.0046ced8
mov eax, 0xffffffff
add esp, 0x7a0
pop ebx
pop ebp
pop esi
pop edi
ret
push 0
push 0xdbfb0
call fcn.0046cf34
mov eax, 0xffffffff
add esp, 0x79c
pop ebx
pop ebp
pop esi
pop edi
ret
push 0x879bf8
push 0x8792b0
call fcn.00409070
mov eax, 0xffffffff
add esp, 0x79c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x364]
mov eax, dword [0x873c58]
push dword [eax + edx*2]
push 1
push 0xdbfb0
call fcn.0046ced8
mov eax, 0xffffffff
add esp, 0x7a0
pop ebx
pop ebp
pop esi
pop edi
ret
xor edx, edx
jmp 0x464796
push 1
push 0x186aa
call fcn.0046cf08
mov eax, 0xffffffff
add esp, 0x79c
pop ebx
pop ebp
pop esi
pop edi
ret