Function at 0x479d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x82496b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x181cbec]
xor edx, edx
lea ecx, [ecx + 0x1a8]
call fcn.0041c3a0
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490df2
lea ecx, [esi*2 + 2]
mov edi, eax
push ecx
push 0
push edi
mov dword [ebp - 0xb8], edi
call fcn.006ce4d0
mov ecx, dword [0x181cbec]
add esp, 0x10
add ecx, 0x1a8
mov edx, edi
call fcn.0041c3a0
mov ecx, 0x17
lea edi, [ebp - 0xac]
mov esi, 0x901b68
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x1816094], 2
jl 0x479ee0
movaps xmm4, xmmword [0x9036b0]
mov eax, 4
movaps xmm3, xmmword [0x903740]
movaps xmm6, xmmword [0x9036f0]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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 [0x903710]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xac]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0xac], 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
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 [0x903710]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xa4]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0xa4], xmm1
add ecx, 8
cmp ecx, 0x28
jl 0x479de1
cmp ecx, 0x2e
jge 0x479f09
nop dword [eax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x36
sub edx, eax
add edx, 0x38
xor word [ebp + ecx*2 - 0xac], dx
inc ecx
cmp ecx, 0x2e
jl 0x479ee0
mov eax, dword [0x901bc4]
xor edx, edx
mov dword [ebp - 0x18], eax
mov ax, word [0x901bc8]
mov word [ebp - 0x14], ax
mov al, byte [0x901bca]
mov byte [ebp - 0x12], al
mov dword [ebp - 0xb0], edx
nop dword [eax + eax]
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xb0]
movsx eax, al
mov cl, dl
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x18], cl
inc edx
mov dword [ebp - 0xb0], edx
cmp edx, 7
jl 0x479f30
mov eax, dword [0x901bcc]
xor edx, edx
mov dword [ebp - 0x20], eax
mov ax, word [0x901bd0]
mov word [ebp - 0x1c], ax
mov al, byte [0x901bd2]
mov byte [ebp - 0x1a], al
mov dword [ebp - 0xb0], edx
mov eax, 0x4bda12f7
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0xb0]
movsx eax, al
mov cl, dl
imul eax, eax, 0x36
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x20], cl
inc edx
mov dword [ebp - 0xb0], edx
cmp edx, 7
jl 0x479f86
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046c7e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
mov edx, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
push 2
push 0x901ac0
push ecx
call fcn.0041f1d0
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0xb8]
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x47a004
sub edx, edi
lea ecx, [ebp - 0x38]
sar edx, 1
push edx
push eax
push 2
push esi
call fcn.00421130
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x47a03c
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x47a032
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ea60
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00404770
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0047af00
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [0x181cc30]
cmp dword [0x181cc34], ecx
je 0x47a091
mov dword [ecx], 0
cmp ecx, edx
je 0x47a084
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x181cc30], 8
jmp 0x47a098
push edx
push ecx
call fcn.004327e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x47a0c4
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x47a0c4
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x47a0be
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x47a0c2
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x47a0fa
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47a0f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a14d
push edx
push ecx
call fcn.005c24d6
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x47a130
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47a126
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a152
push edx
push ecx
call fcn.005c24d6
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 - 0x10]
xor ecx, ebp
call fcn.005c22ca
mov esp, ebp
pop ebp
ret
call fcn.006d1429
call fcn.006d1429
int3