Function at 0x4943d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x5080e8]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x14], edx
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0xd
push edi
test edx, edx
je 0x4946ba
lea edi, [esi + 0x158]
xorps xmm0, xmm0
mov dword [esp + 0xc], edi
lea ecx, [esi + 0x168]
mov dword [esp + 0x1c], ecx
movups xmmword [edi], xmm0
movups xmmword [ecx], xmm0
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x178], ecx
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
cmp edx, 0xc
jne 0x494478
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov byte [esi + 0x167], 1
jmp 0x49454b
lea ecx, [edx*8]
movaps xmmword [esp + 0x20], xmm0
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov al, dl
shr ecx, 8
shl al, 3
mov byte [esp + 0x2f], al
mov eax, dword [esp + 8]
mov byte [esp + 0x2e], cl
nop word [eax + eax]
mov edi, 0x10
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x4944d9
mov ecx, dword [esp + 0xc]
mov edx, eax
mov esi, edi
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub esi, 1
jne 0x4944c6
mov esi, dword [esp + 0x10]
lea eax, [esi + 0x158]
mov ecx, esi
push eax
mov edx, eax
call fcn.004941f0
mov edx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esp + 8]
sub edx, edi
add eax, edi
mov dword [ebp + 0xc], edx
mov dword [esp + 8], eax
test edx, edx
jne 0x4944b0
lea edx, [esp + 0x21]
mov edi, 4
lea ecx, [esi + 0x159]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x494511
lea edi, [esi + 0x158]
mov ecx, esi
push edi
mov edx, edi
call fcn.004941f0
add esp, 4
mov eax, dword [esi]
lea edx, [esi + 0x148]
test eax, eax
je 0x4946a4
mov edi, dword [eax + 4]
cmp edi, 1
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xc], edi
lea edi, [esi + 0x158]
jne 0x4945b3
cmp ecx, 0x10
je 0x49458b
mov eax, 0xffff9d80
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x1c]
push edx
push edi
push dword [esi + 8]
mov eax, dword [eax + 4]
push dword [esi + 0x34]
call eax
add esp, 0x10
test eax, eax
je 0x4945d8
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 6
jne 0x49465d
mov ecx, dword [esi + 0x34]
push edx
push edi
mov edx, 0x10
call fcn.004946d0
add esp, 8
test eax, eax
jne 0x4946bf
mov ecx, dword [ebp + 0x10]
mov eax, 0xd
mov dword [esi + 0x140], 0xd
mov dword [esi + 0x144], 0
mov edi, 0x10
cmp eax, edi
cmovb edi, eax
test edi, edi
je 0x494623
mov eax, dword [esp + 0x1c]
mov edx, ecx
mov esi, edi
nop word [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
xor byte [eax], cl
lea eax, [eax + 1]
sub esi, 1
jne 0x494610
mov esi, dword [esp + 0x10]
lea eax, [esi + 0x168]
mov ecx, esi
push eax
mov edx, eax
call fcn.004941f0
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [ebp + 0x10]
sub eax, edi
add ecx, edi
mov dword [esp + 0x14], eax
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x4945f4
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x494677
mov eax, 0xffff9c80
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
cmp edi, edx
jne 0x49468e
cmp dword [esi + 0x1c], 0
jne 0x4946a4
xor edx, edx
mov eax, 0x10
div ecx
test edx, edx
jne 0x4946a4
mov eax, 0xffff9f80
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9f00
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffec
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.004b992a
mov esp, ebp
pop ebp
ret