Function at 0x46f3b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0055bc20
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 0x174]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ecx
xor ecx, ecx
mov edx, eax
add edx, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x46f70f
jb 0x46f3f5
cmp edx, 0xffffffe0
ja 0x46f70f
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
xor edx, edx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x16c], edx
je 0x46f476
cmp eax, edx
jne 0x46f434
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.0046ecc0
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x178], ecx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x17c], ecx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x180], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x1c], 0x10
mov dword [esi + 0x184], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x16c], edx
movzx edx, byte [esi + 0xd]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 0xe]
shl ebx, 8
or ebx, edx
movzx edx, byte [esi + 0xf]
shl ebx, 8
or ebx, edx
push ebp
mov ebp, dword [esp + 0x28]
mov edx, ecx
and edx, 0xf
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
je 0x46f50e
jmp 0x46f4b8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x46f4df
mov al, byte [edx + esi + 0x10]
xor al, byte [ebp]
dec dword [esp + 0x34]
mov byte [edi], al
mov byte [ecx + esi + 0x178], al
inc edx
inc ecx
inc edi
inc ebp
and edx, 0xf
mov dword [esp + 0x18], edx
jne 0x46f4b0
jmp 0x46f4e7
test edx, edx
jne 0x46f6ff
push ecx
lea eax, [esi + 0x60]
push eax
lea edx, [esi + 0x40]
lea ecx, [esi + 0x178]
push edx
call fcn.0046ee40
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp eax, 0x10
jb 0x46f53e
test ecx, ecx
je 0x46f53e
push ecx
lea eax, [esi + 0x60]
push eax
lea edx, [esi + 0x40]
lea ecx, [esi + 0x178]
push edx
call fcn.0046ee40
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp eax, 0xc00
jb 0x46f5fb
mov eax, 0xaaaaaaab
mul dword [esp + 0x34]
shr edx, 0xb
mov dword [esp + 0x20], edx
lea esp, [esp]
mov dword [esp + 0x1c], 0xc0
mov eax, dword [esp + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov byte [esi + 0xf], bl
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 0xc], cl
mov edx, ebx
shr edx, 0x10
mov byte [esi + 0xd], dl
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov ecx, dword [ebp]
xor ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [edi], ecx
mov edx, dword [ebp + 4]
xor edx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], edx
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0x18]
add ebp, 0x10
mov dword [edi - 8], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [esi + 0x1c]
sub dword [esp + 0x1c], 1
mov dword [edi - 4], ecx
jne 0x46f568
push 0xc00
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
lea ecx, [edi - 0xc00]
push eax
call fcn.0046ee40
sub dword [esp + 0x40], 0xc00
add esp, 0xc
sub dword [esp + 0x20], 1
jne 0x46f560
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, eax
and edx, 0xfffffff0
mov dword [esp + 0x1c], edx
je 0x46f699
cmp eax, 0x10
jb 0x46f67c
shr eax, 4
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
push edx
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov byte [esi + 0xf], bl
sub dword [esp + 0x40], 0x10
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xd], cl
mov edx, ebx
shr edx, 8
mov byte [esi + 0xe], dl
mov eax, dword [ebp]
xor eax, dword [esi + 0x10]
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [ebp + 4]
xor ecx, dword [esi + 0x14]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [ebp + 8]
xor edx, dword [esi + 0x18]
add ebp, 0x10
mov dword [edi - 8], edx
mov eax, dword [ebp - 4]
xor eax, dword [esi + 0x1c]
sub dword [esp + 0x20], 1
mov dword [edi - 4], eax
jne 0x46f616
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
sub ecx, edx
lea edx, [esi + 0x60]
push edx
lea eax, [esi + 0x40]
push eax
call fcn.0046ee40
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x46f6ff
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esi + 0x10]
push edx
push esi
call dword [esp + 0x20]
inc ebx
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xd], cl
add esp, 0xc
lea ecx, [edx + edi]
mov byte [esi + 0xc], al
mov byte [esi + 0xf], bl
lea edx, [edx + esi + 0x10]
sub ebp, edi
mov al, byte [ecx + ebp]
xor al, byte [edx]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov byte [ecx], al
dec edi
mov byte [esi + ebx + 0x178], al
inc ebx
inc edx
inc ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ebx
test edi, edi
jne 0x46f6d7
mov ecx, ebx
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], ecx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret