Function at 0x4daa50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push 0xffffffffffffffff
push 0x57d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
push str.initCrypt_aes2
mov ebx, ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00437740
mov eax, dword [esi + 4]
mov dword [esp + 0x58], 0
cmp eax, 3
je 0x4daacb
cmp eax, 6
je 0x4daacb
cmp eax, 2
je 0x4daacb
cmp eax, 5
je 0x4daacb
cmp eax, 4
jne 0x4daacf
mov al, 1
jmp 0x4daad3
mov al, byte [esp + 0x60]
mov byte [ebx + 0x88], al
mov eax, dword [esi + 0xc]
cmp eax, 0xc1
jl 0x4daaec
mov dword [esi + 0xc], 0x100
jmp 0x4dab00
xor ecx, ecx
cmp eax, 0x81
setl cl
dec ecx
and ecx, 0x40
sub ecx, 0xffffff80
mov dword [esi + 0xc], ecx
mov ebp, dword [esi + 0xc]
xor eax, eax
add esi, 0x10
mov ecx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00446f60
test eax, eax
je 0x4dab7b
mov ecx, esi
call fcn.0051d090
test eax, eax
je 0x4dab7b
mov ecx, esi
call fcn.0051d090
mov ecx, esi
cmp eax, 0x20
jbe 0x4dab60
call fcn.00446f60
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
jmp 0x4dab7b
call fcn.0051d090
push eax
mov ecx, esi
call fcn.00446f60
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00554d40
add esp, 0xc
mov eax, ebp
sub eax, 0x80
je 0x4dabbe
sub eax, 0x40
je 0x4dabb2
sub eax, 0x40
je 0x4daba6
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004377b0
xor al, al
jmp 0x4db3b2
mov dword [ebx + 0x28c], 0xe
jmp 0x4dabc8
mov dword [ebx + 0x28c], 0xc
jmp 0x4dabc8
mov dword [ebx + 0x28c], 0xa
mov edx, ebp
sar edx, 5
xor ecx, ecx
lea eax, [ebx + 0x8c]
test edx, edx
jle 0x4dac10
mov esi, eax
lea edi, [esp + 0x2d]
sub esi, edi
movzx edi, byte [esp + ecx*4 + 0x2c]
movzx ebp, byte [esp + ecx*4 + 0x2d]
shl edi, 8
or edi, ebp
movzx ebp, byte [esp + ecx*4 + 0x2e]
shl edi, 8
or edi, ebp
movzx ebp, byte [esp + ecx*4 + 0x2f]
shl edi, 8
or edi, ebp
lea ebp, [esi + ecx*4]
inc ecx
cmp ecx, edx
mov dword [esp + ebp + 0x2d], edi
jl 0x4dabe1
mov ecx, dword [ebx + 0x28c]
cmp ecx, 0xa
jne 0x4dae0b
mov edi, 0x5e054c
mov esi, dword [eax + 0xc]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 4]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x14]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
mov esi, dword [eax + 0x1c]
xor ecx, dword [edi]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x2c], esi
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x24]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
mov esi, dword [eax + 0x2c]
xor ecx, dword [edi + 4]
xor ecx, dword [eax + 0x20]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
xor esi, ecx
mov dword [eax + 0x3c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x3c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x34]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
mov esi, dword [eax + 0x3c]
xor ecx, dword [edi + 8]
add edi, 0x14
xor ecx, dword [eax + 0x30]
add eax, 0x50
xor edx, ecx
mov dword [eax - 0x10], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor esi, ecx
mov dword [eax - 8], ecx
mov dword [eax - 0xc], edx
mov dword [eax - 4], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax - 4]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax - 0xc]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp edi, vtable._ckGcmContext.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jl 0x4dac24
jmp 0x4db0c3
cmp ecx, 0xc
jne 0x4dafea
mov edi, 0x5e054c
lea esp, [esp]
mov ebp, dword [eax + 0x14]
mov ecx, ebp
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, ebp
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov esi, dword [eax + 0x10]
shl ecx, 8
mov edx, ebp
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 4]
xor ecx, dword [edi - 4]
xor ecx, dword [eax]
xor edx, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
xor esi, edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], esi
xor esi, ebp
mov dword [eax + 0x2c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x1c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
mov esi, dword [eax + 0x2c]
xor ecx, dword [eax + 0x18]
xor ecx, dword [edi]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x20]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x24]
xor edx, ecx
mov dword [eax + 0x38], ecx
mov ecx, dword [eax + 0x28]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x3c], edx
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov dword [eax + 0x44], esi
mov ecx, dword [edx*4 + str.cwko0]
mov edx, esi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x44]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
mov edx, dword [eax + 0x34]
xor ecx, dword [edi + 4]
mov esi, dword [eax + 0x44]
xor ecx, dword [eax + 0x30]
add edi, 0x10
xor edx, ecx
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x38]
xor ecx, edx
mov dword [eax + 0x4c], edx
mov edx, dword [eax + 0x3c]
xor edx, ecx
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x40]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], edx
mov dword [eax + 0x5c], esi
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x5c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 0x4c]
shl ecx, 8
shr esi, 0x18
xor ecx, dword [esi*4 + str.cwko0]
add eax, 0x60
xor ecx, dword [edi - 8]
xor ecx, dword [eax - 0x18]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x10]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0xc]
xor edx, ecx
mov dword [eax + 8], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
mov dword [eax + 0xc], edx
mov edx, dword [eax - 4]
xor edx, ecx
cmp edi, 0x5e056c
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jl 0x4dae20
jmp 0x4db0c3
cmp ecx, 0xe
jne 0x4db0c3
mov ebp, 0x5e0548
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [edx*4 + str.cwko0]
shl ecx, 8
mov edi, dword [eax + 0xc]
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebp, 4
xor ecx, dword [ebp - 4]
add eax, 0x20
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
xor edi, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, edi
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.cwko0]
shl ecx, 8
mov edx, edi
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
mov edx, edi
shr edx, 8
shl ecx, 8
movzx edx, dl
xor ecx, dword [edx*4 + str.cwko0]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + str.cwko0]
mov edx, dword [eax - 0xc]
xor ecx, dword [eax - 0x10]
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
cmp ebp, 0x5e0564
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
jl 0x4daff8
cmp byte [0x644d70], 0
jne 0x4db1df
xor ecx, ecx
jmp 0x4db0e0
mov edx, dword [ecx + str.cwko0]
add edx, edx
mov esi, dword [edx + edx + 0x5df548]
add edx, edx
mov dword [ecx + 0x644170], esi
mov esi, dword [edx + 0x5df948]
mov dword [ecx + 0x644570], esi
mov esi, dword [edx + 0x5dfd48]
mov edx, dword [edx + 0x5e0148]
mov dword [ecx + 0x643d70], edx
mov edx, dword [ecx + 0x5ddd4c]
add edx, edx
add edx, edx
mov dword [ecx + 0x644970], esi
mov esi, dword [edx + 0x5df548]
mov dword [ecx + 0x644174], esi
mov esi, dword [edx + 0x5df948]
mov dword [ecx + 0x644574], esi
mov esi, dword [edx + 0x5dfd48]
mov edx, dword [edx + 0x5e0148]
mov dword [ecx + 0x643d74], edx
mov edx, dword [ecx + 0x5ddd50]
add edx, edx
add edx, edx
mov dword [ecx + 0x644974], esi
mov esi, dword [edx + 0x5df548]
mov dword [ecx + 0x644178], esi
mov esi, dword [edx + 0x5df948]
mov dword [ecx + 0x644578], esi
mov esi, dword [edx + 0x5dfd48]
mov edx, dword [edx + 0x5e0148]
mov dword [ecx + 0x643d78], edx
mov edx, dword [ecx + 0x5ddd54]
add edx, edx
add edx, edx
mov dword [ecx + 0x644978], esi
mov esi, dword [edx + 0x5df548]
mov dword [ecx + 0x64417c], esi
mov esi, dword [edx + 0x5df948]
mov dword [ecx + 0x64457c], esi
mov esi, dword [edx + 0x5dfd48]
mov edx, dword [edx + 0x5e0148]
mov dword [ecx + 0x64497c], esi
mov dword [ecx + 0x643d7c], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x4db0e0
mov byte [0x644d70], 1
mov edx, dword [eax]
mov dword [ebx + 0x18c], edx
mov edx, dword [eax + 4]
add eax, 4
lea ecx, [ebx + 0x18c]
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add ecx, 4
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edi, 1
add ecx, 4
add eax, 4
cmp dword [ebx + 0x28c], edi
jle 0x4db339
mov esi, dword [eax - 0x20]
mov dword [esp + 0x18], ebx
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
sub eax, 0x20
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x644170]
xor edx, dword [ebp*4 + 0x644570]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x644970]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x643d70]
add eax, 4
mov dword [ecx], edx
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x644170]
xor edx, dword [ebp*4 + 0x644570]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x644970]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x643d70]
add ecx, 4
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x644170]
xor edx, dword [ebp*4 + 0x644570]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x644970]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x643d70]
add ecx, 4
mov dword [ecx], edx
mov esi, dword [eax + 4]
add eax, 4
mov ebx, esi
shr ebx, 0x10
movzx ebp, bl
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + 0x644170]
xor edx, dword [ebp*4 + 0x644570]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x644970]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x643d70]
mov ebx, dword [esp + 0x18]
add ecx, 4
mov dword [ecx], edx
inc edi
add ecx, 4
add eax, 4
cmp edi, dword [ebx + 0x28c]
jl 0x4db226
mov edx, dword [eax - 0x20]
mov edi, dword [esp + 0x1c]
sub eax, 0x20
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
mov edx, dword [eax + 4]
add eax, 4
add ecx, 4
mov dword [ecx], edx
add eax, 4
mov eax, dword [eax]
add ecx, 4
mov dword [ecx], eax
test edi, edi
je 0x4db39f
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp eax, 3
je 0x4db37a
cmp eax, 4
jne 0x4db39f
mov ecx, dword [ebx + 0x80]
add esi, 0x30
push ecx
mov ecx, esi
call fcn.0051d090
push eax
mov ecx, esi
call fcn.00446f60
push eax
lea ecx, [edi + 0x484]
call fcn.00540d40
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004377b0
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005550b0
add esp, 0x48
ret 0x10