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

Disassembly:
push 0xffffffffffffffff
push 0x68e3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
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.004b1850
mov eax, dword [esi + 4]
cmp eax, 3
mov dword [esp + 0x58], 0
je 0x53911b
cmp eax, 6
je 0x53911b
cmp eax, 2
je 0x53911b
cmp eax, 5
je 0x53911b
cmp eax, 4
jne 0x53911f
mov al, 1
jmp 0x539123
mov al, byte [esp + 0x60]
mov byte [ebx + 0x88], al
mov eax, dword [esi + 0xc]
cmp eax, 0xc1
jl 0x53913c
mov dword [esi + 0xc], 0x100
jmp 0x539155
xor ecx, ecx
cmp eax, 0x81
setl cl
sub ecx, 1
and ecx, 0x40
add ecx, 0x80
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.00467d80
test eax, eax
je 0x5391d0
mov ecx, esi
call fcn.00544a30
test eax, eax
je 0x5391d0
mov ecx, esi
call fcn.00544a30
cmp eax, 0x20
mov ecx, esi
jbe 0x5391b5
call fcn.00467d80
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
jmp 0x5391d0
call fcn.00544a30
push eax
mov ecx, esi
call fcn.00467d80
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00630200
add esp, 0xc
mov eax, ebp
sub eax, 0x80
je 0x539213
sub eax, 0x40
je 0x539207
sub eax, 0x40
je 0x5391fb
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004b18c0
xor al, al
jmp 0x539a04
mov dword [ebx + 0x28c], 0xe
jmp 0x53921d
mov dword [ebx + 0x28c], 0xc
jmp 0x53921d
mov dword [ebx + 0x28c], 0xa
mov esi, ebp
sar esi, 5
xor ecx, ecx
test esi, esi
lea eax, [ebx + 0x8c]
jle 0x53926c
mov edi, eax
lea edx, [esp + 0x2d]
sub edi, edx
jmp 0x539240
movzx ebp, byte [esp + ecx*4 + 0x2e]
xor edx, edx
mov dh, byte [esp + ecx*4 + 0x2c]
mov dl, byte [esp + ecx*4 + 0x2d]
shl edx, 8
or edx, ebp
movzx ebp, byte [esp + ecx*4 + 0x2f]
shl edx, 8
or edx, ebp
lea ebp, [edi + ecx*4]
add ecx, 1
cmp ecx, esi
mov dword [esp + ebp + 0x2d], edx
jl 0x539240
mov ecx, dword [ebx + 0x28c]
cmp ecx, 0xa
jne 0x539467
mov edi, 0x6eb5e4
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 0x539280
jmp 0x53971b
cmp ecx, 0xc
jne 0x53963f
mov edi, 0x6eb5e4
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, 0x6eb604
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jl 0x539475
jmp 0x53971b
cmp ecx, 0xe
jne 0x53971b
mov ebp, 0x6eb5e0
lea ecx, [ecx]
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, 0x6eb5fc
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
jl 0x539650
cmp byte [0x7968d0], 0
jne 0x53982f
xor ecx, ecx
lea ebx, [ebx]
mov edx, dword [ecx + str.cwko0]
add edx, edx
mov esi, dword [edx + edx + 0x6ea5e0]
add edx, edx
mov dword [ecx + 0x7964d0], esi
mov esi, dword [edx + 0x6ea9e0]
mov dword [ecx + 0x7960d0], esi
mov esi, dword [edx + 0x6eade0]
mov edx, dword [edx + 0x6eb1e0]
mov dword [ecx + 0x7958d0], edx
mov edx, dword [ecx + 0x6e8de4]
add edx, edx
add edx, edx
mov dword [ecx + 0x795cd0], esi
mov esi, dword [edx + 0x6ea5e0]
mov dword [ecx + 0x7964d4], esi
mov esi, dword [edx + 0x6ea9e0]
mov dword [ecx + 0x7960d4], esi
mov esi, dword [edx + 0x6eade0]
mov edx, dword [edx + 0x6eb1e0]
mov dword [ecx + 0x7958d4], edx
mov edx, dword [ecx + 0x6e8de8]
add edx, edx
add edx, edx
mov dword [ecx + 0x795cd4], esi
mov esi, dword [edx + 0x6ea5e0]
mov dword [ecx + 0x7964d8], esi
mov esi, dword [edx + 0x6ea9e0]
mov dword [ecx + 0x7960d8], esi
mov esi, dword [edx + 0x6eade0]
mov edx, dword [edx + 0x6eb1e0]
mov dword [ecx + 0x7958d8], edx
mov edx, dword [ecx + 0x6e8dec]
add edx, edx
add edx, edx
mov dword [ecx + 0x795cd8], esi
mov esi, dword [edx + 0x6ea5e0]
mov dword [ecx + 0x7964dc], esi
mov esi, dword [edx + 0x6ea9e0]
mov dword [ecx + 0x7960dc], esi
mov esi, dword [edx + 0x6eade0]
mov edx, dword [edx + 0x6eb1e0]
mov dword [ecx + 0x795cdc], esi
mov dword [ecx + 0x7958dc], edx
add ecx, 0x10
cmp ecx, 0x400
jl 0x539730
mov byte [0x7968d0], 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 0x53998b
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 + 0x7964d0]
xor edx, dword [ebp*4 + 0x7960d0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x795cd0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x7958d0]
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 + 0x7964d0]
xor edx, dword [ebp*4 + 0x7960d0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x795cd0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x7958d0]
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 + 0x7964d0]
xor edx, dword [ebp*4 + 0x7960d0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x795cd0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x7958d0]
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 + 0x7964d0]
xor edx, dword [ebp*4 + 0x7960d0]
mov ebx, esi
shr ebx, 8
movzx esi, bl
xor edx, dword [esi*4 + 0x795cd0]
movzx esi, byte [eax]
xor edx, dword [esi*4 + 0x7958d0]
mov ebx, dword [esp + 0x18]
add ecx, 4
mov dword [ecx], edx
add edi, 1
add ecx, 4
add eax, 4
cmp edi, dword [ebx + 0x28c]
jl 0x539876
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
test edi, edi
mov dword [ecx], eax
je 0x5399f1
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp eax, 3
je 0x5399cc
cmp eax, 4
jne 0x5399f1
mov ecx, dword [ebx + 0x80]
add esi, 0x30
push ecx
mov ecx, esi
call fcn.00544a30
push eax
mov ecx, esi
call fcn.00467d80
push eax
lea ecx, [edi + 0x484]
call fcn.005bba50
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.004b18c0
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.0062cbd3
add esp, 0x48
ret 0x10