Function at 0x5f33f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x716d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [esp + 0x128]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x108], esi
call fcn.005f3300
mov ebp, dword [esp + 0x13c]
xor ebx, ebx
lea ecx, [esp + 0xe4]
push ebx
mov dword [esi], 0x72aef8
mov eax, 0xd
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x30], ebx
push ecx
mov ecx, dword [ebp + 8]
push 0x79708c
mov dword [esp + 0x13c], ebx
mov dword [esp + 0xf0], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x114], eax
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc4]
push ebx
push edx
push 0x797964
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xb4]
push ebx
push eax
push str.Length
call fcn.005f4430
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push 0x797d64
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x44]
push ebx
push edx
push 0x79738c
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x94]
push ebx
push eax
push 0x797d60
call fcn.005f4430
lea ecx, [esp + 0x54]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push 0x7ab73c
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xf4]
push ebx
push edx
push 0x797a18
call fcn.005f4430
mov eax, dword [esi + 4]
lea ecx, [esp + 0xa4]
push ebx
push ecx
mov eax, dword [eax + 0x18]
push 0x7ab738
mov ecx, dword [eax + 0x30]
call fcn.005f4430
mov ecx, dword [esp + 0xe4]
mov eax, 1
cmp ecx, eax
jne 0x5f3c54
cmp dword [esp + 0xc4], eax
jne 0x5f3c54
cmp dword [esp + 0xf4], eax
jne 0x5f3c54
mov edx, dword [esp + 0x34]
mov ecx, 3
cmp edx, ecx
jne 0x5f3c54
cmp dword [esp + 0x44], ecx
jne 0x5f3c54
mov edi, dword [esp + 0xcc]
mov ecx, dword [esp + 0xec]
cmp edi, 2
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
je 0x5f3601
cmp dword [esp + 0xb4], 1
jne 0x5f3601
mov eax, dword [esp + 0xbc]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x30], eax
jmp 0x5f3608
mov dword [esi + 0x30], 5
cmp ecx, 4
mov dword [esi + 0x40], 1
je 0x5f361d
cmp ecx, 5
jne 0x5f3945
cmp edi, 4
je 0x5f3630
cmp edi, 5
je 0x5f3630
cmp edi, 6
jne 0x5f3945
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x74]
push ebx
push edx
push 0x7ab734
call fcn.005f4430
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x64]
push ebx
push eax
push str.StmF
call fcn.005f4430
lea ecx, [esp + 0x84]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push str.StrF
call fcn.005f4430
cmp dword [esp + 0x74], 7
jne 0x5f38f0
mov ecx, dword [esp + 0x64]
mov eax, 4
cmp ecx, eax
jne 0x5f38f0
cmp dword [esp + 0x84], eax
jne 0x5f38f0
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x8c]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5f36c6
cmp cl, bl
je 0x5f36c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5f36c6
add eax, 2
add edi, 2
cmp cl, bl
jne 0x5f36a2
xor eax, eax
jmp 0x5f36cb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x5f38f0
mov edi, str.Identity
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5f36fe
cmp cl, bl
je 0x5f36fa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5f36fe
add eax, 2
add edi, 2
cmp cl, bl
jne 0x5f36da
xor eax, eax
jmp 0x5f3703
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x5f372a
lea ecx, [esp + 0x84]
call fcn.005f2e10
lea ecx, [esp + 0x64]
call fcn.005f2e10
lea ecx, [esp + 0x74]
call fcn.005f2e10
jmp 0x5f3c64
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x24]
push ebx
push eax
push ebp
call fcn.005f4430
cmp dword [eax], 7
jne 0x5f38e7
lea ecx, [esp + 0xd4]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push 0x7ab720
call fcn.005f4430
cmp dword [esp + 0xd4], 4
jne 0x5f38db
mov ebp, dword [esp + 0xdc]
mov edi, 0x7ab71c
mov ecx, ebp
mov al, byte [ecx]
mov dl, al
cmp al, byte [edi]
jne 0x5f379a
cmp dl, bl
je 0x5f3796
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [edi + 1]
jne 0x5f379a
add ecx, 2
add edi, 2
cmp dl, bl
jne 0x5f3776
xor ecx, ecx
jmp 0x5f379f
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x5f37df
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push str.Length
call fcn.005f4430
cmp dword [eax], 1
jne 0x5f37c3
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x30], edx
lea ecx, [esp + 0x14]
call fcn.005f2e10
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], 3
jmp 0x5f38db
mov edi, str.AESV2
mov ecx, ebp
mov al, byte [ecx]
mov dl, al
cmp al, byte [edi]
jne 0x5f380a
cmp dl, bl
je 0x5f3806
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [edi + 1]
jne 0x5f380a
add ecx, 2
add edi, 2
cmp dl, bl
jne 0x5f37e6
xor ecx, ecx
jmp 0x5f380f
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x5f3856
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push str.Length
call fcn.005f4430
cmp dword [eax], 1
jne 0x5f3833
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x30], edx
lea ecx, [esp + 0x14]
call fcn.005f2e10
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], 3
mov dword [esi + 0x3c], 1
jmp 0x5f38db
mov edi, str.AESV3
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5f3881
cmp cl, bl
je 0x5f387d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5f3881
add eax, 2
add edi, 2
cmp cl, bl
jne 0x5f385d
xor eax, eax
jmp 0x5f3886
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x5f38db
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
push str.Length
call fcn.005f4430
cmp dword [eax], 1
jne 0x5f38aa
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x30], ecx
lea ecx, [esp + 0x14]
call fcn.005f2e10
cmp dword [esi + 0x30], 0x10
je 0x5f383c
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], 5
cmp eax, 5
je 0x5f38d4
cmp eax, 6
je 0x5f38d4
mov dword [esi + 0x38], 6
mov dword [esi + 0x3c], 2
lea ecx, [esp + 0xd4]
call fcn.005f2e10
lea ecx, [esp + 0x24]
call fcn.005f2e10
lea ecx, [esp + 0x84]
call fcn.005f2e10
lea ecx, [esp + 0x64]
call fcn.005f2e10
lea ecx, [esp + 0x74]
call fcn.005f2e10
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x108]
push ebx
push edx
mov ecx, dword [eax + 8]
push str.EncryptMetadata
call fcn.005f4430
cmp dword [eax], ebx
jne 0x5f3939
mov ecx, dword [esp + 0x110]
mov dword [esi + 0x40], ecx
lea ecx, [esp + 0x108]
call fcn.005f2e10
mov eax, dword [esi + 0x38]
cmp eax, 4
jg 0x5f39a2
mov edx, dword [esp + 0x3c]
cmp dword [edx], 0x20
jne 0x5f395f
mov eax, dword [esp + 0x4c]
cmp dword [eax], 0x20
je 0x5f3970
push str.Invalid_encryption_key_length
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
mov eax, dword [esp + 0xfc]
mov edi, dword [esp + 0x3c]
push 8
mov dword [esi + 8], eax
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 1
je 0x5f39f4
push edi
mov ecx, eax
call fcn.005df6b0
jmp 0x5f39f6
cmp eax, 6
jg 0x5f3970
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
cmp eax, 0x30
jl 0x5f39e6
mov edx, dword [esp + 0x4c]
cmp dword [edx], 0x30
jl 0x5f39e6
mov ecx, dword [esp + 0x94]
mov eax, 3
cmp ecx, eax
jne 0x5f39e6
mov ecx, dword [esp + 0x9c]
cmp dword [ecx], 0x20
jne 0x5f39e6
cmp dword [esp + 0x54], eax
jne 0x5f39e6
mov edx, dword [esp + 0x5c]
cmp dword [edx], 0x20
je 0x5f3970
push str.Invalid_encryption_key_length
push 0xffffffffffffffff
push 1
jmp 0x5f3c5c
xor eax, eax
mov edi, dword [esp + 0x4c]
push 8
mov byte [esp + 0x134], bl
mov dword [esi + 0x44], eax
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 2
je 0x5f3a28
push edi
mov ecx, eax
call fcn.005df6b0
jmp 0x5f3a2a
xor eax, eax
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x38]
cmp eax, 4
mov byte [esp + 0x130], bl
jg 0x5f3a68
mov ecx, dword [esi + 0x44]
cmp dword [ecx], 0x20
jge 0x5f3a52
push ebx
call fcn.005df930
mov ecx, dword [esi + 0x44]
cmp dword [ecx], 0x20
jl 0x5f3a44
mov ecx, dword [esi + 0x48]
cmp dword [ecx], 0x20
jge 0x5f3a68
push ebx
call fcn.005df930
mov ecx, dword [esi + 0x48]
cmp dword [ecx], 0x20
jl 0x5f3a5a
mov eax, dword [esi + 0x34]
mov ebp, 1
cmp eax, ebp
jl 0x5f3b71
cmp eax, 2
jg 0x5f3b71
mov ecx, dword [esi + 0x38]
cmp ecx, 2
jl 0x5f3b71
cmp ecx, 3
jg 0x5f3b71
cmp dword [esp + 0xa4], 6
jne 0x5f3b27
lea ecx, [esp + 0x118]
push ebx
push ecx
mov ecx, dword [esp + 0xb4]
push ebx
call fcn.006037c0
cmp dword [eax], 3
jne 0x5f3aea
mov edi, dword [esp + 0x120]
push 8
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 3
je 0x5f3b0d
push edi
mov ecx, eax
call fcn.005df6b0
jmp 0x5f3b0f
push 8
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 4
je 0x5f3b0d
mov ecx, eax
call fcn.005df150
jmp 0x5f3b0f
xor eax, eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x130], bl
mov dword [esi + 0x54], eax
call fcn.005f2e10
jmp 0x5f3b56
push 8
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 5
je 0x5f3b4a
mov ecx, eax
call fcn.005df150
jmp 0x5f3b4c
xor eax, eax
mov byte [esp + 0x130], bl
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x30]
cmp eax, 0x10
jg 0x5f3b62
cmp eax, ebx
jg 0x5f3b69
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x58], ebp
jmp 0x5f3c64
cmp eax, 5
jne 0x5f3c3c
mov ecx, dword [esi + 0x38]
cmp ecx, eax
je 0x5f3b8a
cmp ecx, 6
jne 0x5f3c3c
push 8
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 6
je 0x5f3bad
mov ecx, eax
call fcn.005df150
jmp 0x5f3baf
xor eax, eax
mov edi, dword [esp + 0x9c]
push 8
mov byte [esp + 0x134], bl
mov dword [esi + 0x54], eax
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 7
je 0x5f3be4
push edi
mov ecx, eax
call fcn.005df6b0
jmp 0x5f3be6
xor eax, eax
mov edi, dword [esp + 0x5c]
push 8
mov byte [esp + 0x134], bl
mov dword [esi + 0x4c], eax
call fcn.0044f661
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x130], 8
je 0x5f3c18
push edi
mov ecx, eax
call fcn.005df6b0
jmp 0x5f3c1a
xor eax, eax
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x30]
cmp eax, 0x20
mov byte [esp + 0x130], bl
jg 0x5f3c30
cmp eax, ebx
jg 0x5f3c37
mov dword [esi + 0x30], 0x20
mov dword [esi + 0x58], ebp
jmp 0x5f3c64
mov edx, dword [esi + 0x38]
push edx
push eax
push str.Unsupported_version_revision__0:d_1:d__of_Standard_security_handler
push 0xffffffffffffffff
push 6
call fcn.006033f0
add esp, 0x14
jmp 0x5f3c64
push str.Invalid_encryption_parameters
push 0xffffffffffffffff
push eax
call fcn.006033f0
add esp, 0xc
lea ecx, [esp + 0xa4]
call fcn.005f2e10
lea ecx, [esp + 0xf4]
call fcn.005f2e10
lea ecx, [esp + 0x54]
call fcn.005f2e10
lea ecx, [esp + 0x94]
call fcn.005f2e10
lea ecx, [esp + 0x44]
call fcn.005f2e10
lea ecx, [esp + 0x34]
call fcn.005f2e10
lea ecx, [esp + 0xb4]
call fcn.005f2e10
lea ecx, [esp + 0xc4]
call fcn.005f2e10
lea ecx, [esp + 0xe4]
call fcn.005f2e10
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8