Function at 0x46ba00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x823dab
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ebx, dword [ebp + 8]
mov esi, dword [0x181cbec]
mov dword [ebp - 0x270], ebx
mov ecx, dword [eax]
mov eax, dword [0x181d13c]
cmp eax, dword [ecx + 4]
jle 0x46ba9b
push 0x181d13c
call fcn.005c2abf
add esp, 4
cmp dword [0x181d13c], 0xffffffff
jne 0x46ba9b
xor eax, eax
mov dword [0x181d150], 0
push 0x83a750
mov dword [0x181d154], 7
mov word [0x181d140], ax
call fcn.005c280c
push 0x181d13c
call fcn.005c2a75
add esp, 8
mov edx, dword [0x181d150]
test edx, edx
je 0x46bab9
cmp ebx, 0x181d140
je 0x46bd84
push edx
mov ecx, ebx
jmp 0x46bd6b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.006ce550
movq xmm0, qword [0x900890]
add esp, 0xc
mov al, byte [0x900898]
xor ebx, ebx
movq qword [ebp - 0x224], xmm0
mov byte [ebp - 0x21c], al
nop dword [eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x33
xor byte [ebp + ebx - 0x224], cl
inc ebx
cmp ebx, 9
jl 0x46baf0
movq xmm0, qword [0x8fed7c]
xor ebx, ebx
mov al, byte [0x8fed84]
movq qword [ebp - 0x230], xmm0
mov byte [ebp - 0x228], al
nop dword [eax + eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x33
xor byte [ebp + ebx - 0x230], cl
inc ebx
cmp ebx, 9
jl 0x46bb40
push 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0046c7e0
mov ebx, eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x46bb98
mov ebx, dword [ebx]
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
call fcn.0046b860
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x46bbb0
mov edi, dword [edi]
movq xmm0, qword [0x90089c]
xor esi, esi
mov ax, word [0x9008a4]
movq qword [ebp - 0x23c], xmm0
mov word [ebp - 0x234], ax
nop
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x32
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x23c], cx
inc esi
cmp esi, 5
jl 0x46bbd0
push ebx
push edi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [0x83c6b8]
mov edx, dword [ebp - 0x240]
add esp, 0x14
cmp edx, 8
jb 0x46bc57
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bc4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bda2
push edx
push ecx
call fcn.005c2556
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp edx, 8
jb 0x46bcbb
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bcb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bda7
push edx
push ecx
call fcn.005c2556
add esp, 8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bcc4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x181d140
call fcn.0040ea60
mov eax, dword [0x90084c]
xor ebx, ebx
mov dword [ebp - 0x224], eax
mov ax, word [0x900850]
mov word [ebp - 0x220], ax
mov al, byte [0x900852]
mov byte [ebp - 0x21e], al
nop word [eax + eax]
mov eax, 0x51eb851f
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x32
sub cl, al
add cl, 0x33
xor byte [ebp + ebx - 0x224], cl
inc ebx
cmp ebx, 7
jl 0x46bd10
push 0x1c
lea eax, [ebp - 0x224]
push eax
call fcn.0046c2f0
test eax, eax
je 0x46bd57
mov ecx, 0x181d140
call fcn.0041d5d0
mov ecx, dword [ebp - 0x270]
cmp ecx, 0x181d140
je 0x46bd84
push dword [0x181d150]
cmp dword [0x181d154], 8
mov eax, 0x181d140
cmovae eax, dword [0x181d140]
push eax
call fcn.0040ea60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c234a
mov esp, ebp
pop ebp
ret 4
call fcn.006d14a9
call fcn.006d14a9
int3