Function at 0x460100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.004b9bb0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x164]
mov eax, dword [esi + 0x174]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov edx, dword [esi + 0x160]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
xor eax, eax
add ecx, edi
adc eax, ebx
mov dword [ebp - 0x10], edx
cmp eax, 0xf
ja 0x46031c
jb 0x460151
cmp ecx, 0xffffffe0
ja 0x46031c
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x460178
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call edx
add esp, 8
mov dword [esi + 0x16c], 0
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x168]
test eax, eax
mov dword [ebp - 4], eax
je 0x4601e6
jmp 0x46019e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4601cd
mov cl, byte [edi]
mov dl, byte [eax + esi + 0x10]
xor dl, cl
inc edi
mov byte [ebx], dl
mov dl, byte [eax + esi + 0x40]
xor dl, cl
inc ebx
mov byte [eax + esi + 0x40], dl
mov edx, dword [ebp + 0x14]
dec edx
inc eax
and eax, 0xf
mov dword [ebp + 0x14], edx
mov dword [ebp - 4], eax
jne 0x46019b
jmp 0x4601d5
test eax, eax
jne 0x46030d
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push ecx
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add esp, 8
mov edx, dword [ebp + 0x14]
cmp edx, 0xc00
jb 0x46025b
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [ebp + 0x10], edx
push 0xc00
lea eax, [esi + 0x60]
push edi
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push esi
push edx
push 0xc0
push ebx
push edi
call dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
add esp, 0x24
add ecx, 0xc0
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
add ebx, 0xc00
add edi, 0xc00
sub ecx, 0xc00
dec eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], eax
jne 0x4601fe
mov eax, dword [ebp - 4]
mov edx, ecx
mov ecx, edx
and ecx, 0xfffffff0
mov dword [ebp + 0xc], ecx
je 0x4602b2
mov eax, ecx
push ecx
shr eax, 4
mov dword [ebp + 0x10], eax
lea eax, [esi + 0x60]
push edi
lea ecx, [esi + 0x40]
push eax
push ecx
call dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push esi
push edx
push eax
push ebx
push edi
call dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
add esp, 0x24
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
add ebx, eax
add edi, eax
sub ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x14], ecx
mov edx, ecx
test edx, edx
je 0x46030d
mov edx, dword [ebp - 8]
lea eax, [esi + 0x10]
push edx
push eax
push esi
call dword [esi + 0x170]
mov ecx, dword [ebp + 8]
add esp, 0xc
inc ecx
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
bswap eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
dec edx
sub edi, ebx
inc edx
lea ecx, [eax + ebx]
mov dword [ebp + 0x14], edx
mov dl, byte [edi + ecx]
mov bl, byte [esi + eax + 0x40]
xor bl, dl
mov byte [esi + eax + 0x40], bl
mov bl, byte [esi + eax + 0x10]
xor bl, dl
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov byte [ecx], bl
inc ecx
dec eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
jne 0x4602e7
mov dword [esi + 0x168], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret