Function at 0x45ba00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7fa650
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x90df34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
push 0
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], eax
call dword [0x811dac]
push 0
call dword [0x8112dc]
mov esi, eax
test esi, esi
je 0x45c266
push 0
call dword [0x8112b0]
push eax
push 0
push esi
call fcn.004733af
test eax, eax
je 0x45c266
push edi
call fcn.005b788b
add esp, 4
push 0xd10
call fcn.00468e50
add esp, 4
test eax, eax
je 0x45baa0
mov ecx, eax
call fcn.0042e2b0
jmp 0x45baa2
xor eax, eax
movups xmm0, xmmword [0x8d51b4]
mov dword [0x1808d24], eax
lea edi, [eax + 0x3e4]
mov ax, word [0x8d51d4]
xor esi, esi
cmp dword [0x18021f4], 2
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x18], ax
movups xmm0, xmmword [0x8d51c4]
movups xmmword [ebp - 0x28], xmm0
jl 0x45bbf7
movaps xmm4, xmmword [0x8d6c60]
mov eax, 5
movaps xmm3, xmmword [0x8d6d00]
movaps xmm6, xmmword [0x8d6c90]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d6cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x38]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x38], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d6cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x30]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x30], xmm1
add esi, 8
cmp esi, 0x10
jl 0x45bb03
cmp esi, 0x11
jge 0x45bc1f
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x38], cx
inc esi
cmp esi, 0x11
jl 0x45bbf7
cmp word [0x8d6b8a], 0
movq xmm0, qword [0x8d6b80]
mov eax, dword [0x8d6b88]
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], eax
je 0x45bc68
xor esi, esi
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 6
jl 0x45bc40
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00413dc0
add esp, 0x10
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
push 0
push 0x1f0001
call dword [0x8112ac]
test eax, eax
je 0x45bdf4
movq xmm0, qword [0x8d6b74]
xor esi, esi
mov ax, word [0x8d6b7c]
movq qword [ebp - 0x44], xmm0
mov word [ebp - 0x3c], ax
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 5
jl 0x45bcb7
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d990
push 1
push 0x8d3ad8
lea ecx, [ebp - 0x30]
call fcn.00417d80
mov edx, dword [0x1808d24]
add edx, 0x3e4
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45bd10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00417d80
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0
call dword [0x811a4c]
test eax, eax
je 0x45bd4a
push 0
push eax
call dword [0x811a48]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45bd84
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bd7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c31b
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x45bdd2
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bdc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c320
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059a3cf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
mov eax, dword [0x1808d24]
mov dword [eax + 0x894], 0
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push eax
push 0
push 0
call dword [0x8112a8]
mov esi, dword [ebp - 0x70]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45be21
sub ecx, edx
push ecx
push esi
mov ecx, 0x17f59b8
call fcn.00405b40
mov edi, dword [0x1808d24]
mov eax, dword [ebp - 0x6c]
push 0
mov dword [ebp - 0x28], 1
mov dword [edi + 0x118], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [0x811d24]
mov ecx, edi
call fcn.0042f4d0
mov ecx, edi
call fcn.00430640
cmp dword [edi + 0x7b0], 0
je 0x45bf35
mov ax, word [0x8d31c8]
xor edx, edx
mov word [ebp - 0x6c], ax
mov al, byte [0x8d31ca]
mov byte [ebp - 0x6a], al
mov dword [ebp - 0x70], edx
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x70]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x70]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x6c], cl
inc edx
mov dword [ebp - 0x70], edx
cmp edx, 3
jl 0x45bea3
lea edx, [ebp - 0x6c]
call fcn.00404db0
test al, al
je 0x45bf35
movq xmm0, qword [0x8d33bc]
xor esi, esi
mov ax, word [0x8d33c4]
movq qword [ebp - 0x44], xmm0
mov word [ebp - 0x3c], ax
nop dword [eax]
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [ebp + esi*2 - 0x44], cx
inc esi
cmp esi, 5
jl 0x45bf00
push 0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00447280
mov dword [edi + 0x5ec], 1
call fcn.0042ef60
test eax, eax
jne 0x45bf85
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x45c256
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c24c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c325
jmp 0x45c24c
mov eax, dword [0x1808d24]
mov ecx, dword [eax + 0x5ec]
cmp ecx, 3
je 0x45bfa7
cmp ecx, 4
je 0x45bfa7
cmp dword [eax + 0x65c], 0
je 0x45bffa
mov ecx, eax
jmp 0x45bff5
mov esi, dword [0x1808d24]
mov eax, dword [esi + 0x5f0]
cmp eax, 0xc8
jne 0x45bfcd
mov ecx, esi
mov dword [esi + 0x84c], 0x100
call fcn.00443d10
jmp 0x45bff3
cmp eax, 0x190
jne 0x45bffa
mov ecx, esi
mov dword [esi + 0x84c], 0x200
call fcn.00443d10
mov eax, dword [0x1808d24]
cmp dword [eax + 0x658], 0
je 0x45bffa
mov ecx, esi
call fcn.0042f140
mov eax, dword [0x1808d24]
cmp dword [eax + 0x7b0], 0
mov dword [eax + 0x6e0], 1
jne 0x45c201
mov ax, word [0x8d31c8]
xor edx, edx
mov word [ebp - 0x6c], ax
mov al, byte [0x8d31ca]
mov byte [ebp - 0x6a], al
mov dword [ebp - 0x70], edx
nop dword [eax]
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x70]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x70]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x6c], cl
inc edx
mov dword [ebp - 0x70], edx
cmp edx, 3
jl 0x45c030
lea edx, [ebp - 0x6c]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45c067
mov esi, dword [0x17f59c8]
sub edx, ecx
cmp dword [0x17f59cc], 0x10
mov ecx, 0x17f59b8
cmovae ecx, dword [0x17f59b8]
cmp esi, edx
jne 0x45c0e9
lea edx, [ebp - 0x6c]
sub esi, 4
jb 0x45c0a6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45c0ab
add ecx, 4
add edx, 4
sub esi, 4
jae 0x45c095
cmp esi, 0xfffffffc
je 0x45c0df
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x45c0d8
cmp esi, 0xfffffffd
je 0x45c0df
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45c0d8
cmp esi, 0xfffffffe
je 0x45c0df
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45c0d8
cmp esi, 0xffffffff
je 0x45c0df
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x45c0df
sbb eax, eax
or eax, 1
jmp 0x45c0e1
xor eax, eax
test eax, eax
je 0x45c201
mov eax, dword [0x1808d24]
cmp dword [eax + 0x5f0], 0xc8
jne 0x45c230
cmp dword [0x1808f10], 0
jne 0x45c120
mov esi, dword [0x811368]
nop dword [eax]
push 0x3e8
call esi
cmp dword [0x1808f10], 0
je 0x45c110
mov eax, dword [0x1808d24]
mov esi, dword [eax + 0x34]
test esi, esi
je 0x45c230
push 0x1808de8
push 0x8d2730
lea eax, [ebp - 0x50]
push 0x1808e90
push eax
call fcn.00416190
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042bf60
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x45c160
mov eax, dword [eax]
push eax
call esi
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45c19d
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c193
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c32a
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x45c1eb
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c1e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c32f
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
jmp 0x45c230
mov eax, dword [0x1808d24]
cmp dword [eax + 0x5ec], 1
je 0x45c230
cmp dword [0x1808f10], 0
jne 0x45c230
mov esi, dword [0x811368]
nop
push 0x3e8
call esi
cmp dword [0x1808f10], 0
je 0x45c220
mov eax, dword [0x1808d24]
cmp dword [eax + 0x684], 0
je 0x45bf48
call fcn.004456e0
jmp 0x45bf48
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 0x58], eax
mov eax, dword [0x1808d68]
mov edi, dword [0x1808d64]
mov dword [ebp - 0x70], eax
cmp edi, eax
je 0x45c2d7
lea eax, [ebp - 0x80]
xor esi, esi
cmp eax, edi
je 0x45c289
mov esi, dword [edi]
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45c307
cmp byte [esi + 0x6c], 0
jne 0x45c307
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
mov dword [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x45c2c8
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x45c2c0
mov eax, dword [ecx]
push esi
jmp 0x45c2c6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 8
mov dword [ebp - 4], 0xffffffff
cmp edi, dword [ebp - 0x70]
jne 0x45c278
cmp dword [0x1808d24], 0
je 0x45c2ff
call fcn.0042f1f0
mov ecx, dword [0x1808d24]
test ecx, ecx
je 0x45c2f5
push ecx
call fcn.0045c340
mov dword [0x1808d24], 0
push 0
call dword [0x8112a4]
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.0042bbb0
add esp, 8
push eax
call fcn.0059e0da
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
int3