Function at 0xb246a0
Capabilities:
Access peb ldr_data
Check os version
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1b8
lea eax, [esp + 0x11c]
lea ecx, [0xcbfc24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x2c
call fcn.00af94c0
lea eax, [esp + 0x11c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xdc]
add eax, 0x2c
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x10c]
jne 0xb24713
mov dword [esp + 0x1c], 2
jmp 0xb249a9
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x108], eax
mov al, byte [esp + 0x48]
mov byte [esp + 0x4c], al
mov byte [esp + 0xf0], 6
mov byte [esp + 0xf1], 0x55
mov byte [esp + 0xf2], 0x54
mov byte [esp + 0xf3], 0x4b
mov word [esp + 0xf8], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jae 0xb247ca
jmp 0xb24770
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [esp + ecx + 0xf0]
mov edx, eax
add edx, 0xcdeb224d
add eax, 0x4d
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x110], edx
mov eax, dword [esp + 0x110]
add al, 0xe5
mov ecx, dword [esp + 0x24]
mov byte [esp + ecx + 0xf0], al
mov eax, dword [esp + 0x24]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jb 0xb24770
jmp 0xb247ca
mov eax, dword [esp + 0xf0]
mov eax, dword fs:[eax]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xd8]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
jne 0xb2480e
mov dword [esp + 0x1c], 4
jmp 0xb24964
mov eax, dword [esp + 0x30]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
cmp dword [eax + 0x30], 0
setne cl
xor eax, eax
test cl, 1
jne 0xb24833
jmp 0xb2492b
mov al, byte [esp + 0x44]
mov byte [esp + 0x50], al
mov byte [esp + 0xe0], 0xcd
mov byte [esp + 0xe1], 0xd0
mov byte [esp + 0xe2], 0xe3
mov byte [esp + 0xe3], 0x73
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jae 0xb24904
jmp 0xb2488f
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
movzx esi, byte [esp + eax + 0xe0]
lea eax, [ecx + esi + 0x2a6c7fc8]
mov edx, 0xd5938037
sub edx, ecx
mov edi, ecx
add edi, 0xc8
and edi, esi
or edx, esi
add edx, ecx
mov ecx, edx
add ecx, edi
lea edx, [edi + edx + 0x2a6c7fc9]
xor edx, eax
mov esi, 0x55938036
sub esi, ecx
and esi, eax
add esi, esi
sub esi, edx
mov dword [esp + 0x114], esi
mov eax, dword [esp + 0x114]
add al, 0x88
mov ecx, dword [esp + 0x28]
mov byte [esp + ecx + 0xe0], al
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jb 0xb2488f
jmp 0xb24904
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd4]
mov ecx, dword [ecx + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00b24eb0
cmp eax, dword [esp + 0x108]
sete al
test al, 1
jne 0xb24931
jmp 0xb24940
mov byte [esp + 0x23], 1
mov dword [esp + 0x1c], 1
jmp 0xb24948
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0
jne 0xb24962
jmp 0xb24953
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
jmp 0xb247ec
jmp 0xb24964
mov eax, dword [esp + 0x1c]
cmp eax, 4
jne 0xb24977
mov dword [esp + 0x1c], 0
jmp 0xb24977
cmp dword [esp + 0x1c], 0
jne 0xb2498a
mov dword [esp + 0x1c], 0
jmp 0xb24988
jmp 0xb2498a
mov eax, dword [esp + 0x1c]
jmp 0xb24990
cmp eax, 0
jne 0xb249a7
jmp 0xb24997
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x34], eax
jmp 0xb246f9
jmp 0xb249a9
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0xb24e99
mov al, byte [esp + 0x40]
mov byte [esp + 0x54], al
mov byte [esp + 0x58], 0xa5
mov byte [esp + 0x59], 0x99
mov byte [esp + 0x5a], 0xf7
mov byte [esp + 0x5b], 0x9b
mov byte [esp + 0x5c], 0xe7
mov byte [esp + 0x5d], 0x95
mov byte [esp + 0x5e], 0xeb
mov byte [esp + 0x5f], 0x97
mov byte [esp + 0x60], 0xe2
mov byte [esp + 0x61], 0x91
mov byte [esp + 0x62], 0xc2
mov byte [esp + 0x63], 0x93
mov byte [esp + 0x64], 0xde
mov byte [esp + 0x65], 0xad
mov byte [esp + 0x66], 0xd9
mov byte [esp + 0x67], 0xaf
mov byte [esp + 0x68], 0xd6
mov byte [esp + 0x69], 0xa9
mov byte [esp + 0x6a], 0xd3
mov byte [esp + 0x6b], 0xab
mov byte [esp + 0x6c], 0xd0
mov byte [esp + 0x6d], 0xa5
mov byte [esp + 0x6e], 0xdb
mov byte [esp + 0x6f], 0xa7
mov byte [esp + 0x70], 0x9d
mov byte [esp + 0x71], 0xa1
mov byte [esp + 0x72], 0xc6
mov byte [esp + 0x73], 0xa3
mov byte [esp + 0x74], 0xe0
mov byte [esp + 0x75], 0xbd
mov byte [esp + 0x76], 0xc9
mov byte [esp + 0x77], 0xbf
mov byte [esp + 0x78], 0xdb
mov byte [esp + 0x79], 0xb9
mov byte [esp + 0x7a], 0x37
mov byte [esp + 0x7b], 0xbb
mov byte [esp + 0x7c], 0xc1
mov byte [esp + 0x7d], 0xb5
mov byte [esp + 0x7e], 0xcb
mov byte [esp + 0x7f], 0xb7
mov byte [esp + 0x80], 0xc6
mov byte [esp + 0x81], 0xb1
mov byte [esp + 0x82], 0x3e
mov byte [esp + 0x83], 0xb3
mov byte [esp + 0x84], 0xbf
mov byte [esp + 0x85], 0xcd
mov byte [esp + 0x86], 0xaa
mov byte [esp + 0x87], 0xcf
mov byte [esp + 0x88], 0x9f
mov byte [esp + 0x89], 0xc9
mov byte [esp + 0x8a], 0x47
mov byte [esp + 0x8b], 0xcb
mov byte [esp + 0x8c], 0x48
mov byte [esp + 0x8d], 0xc5
mov byte [esp + 0x8e], 0xb2
mov byte [esp + 0x8f], 0xc7
mov byte [esp + 0x90], 0xb7
mov byte [esp + 0x91], 0xc1
mov byte [esp + 0x92], 0xb5
mov byte [esp + 0x93], 0xc3
mov byte [esp + 0x94], 0xa7
mov byte [esp + 0x95], 0xdd
mov byte [esp + 0x96], 0xfe
mov byte [esp + 0x97], 0xdf
mov byte [esp + 0x98], 0x86
mov byte [esp + 0x99], 0xd9
mov byte [esp + 0x9a], 0xa3
mov byte [esp + 0x9b], 0xdb
mov byte [esp + 0x9c], 0xa0
mov byte [esp + 0x9d], 0xd5
mov byte [esp + 0x9e], 0xab
mov byte [esp + 0x9f], 0xd7
mov byte [esp + 0xa0], 0xa3
mov byte [esp + 0xa1], 0xd1
mov byte [esp + 0xa2], 0xb6
mov byte [esp + 0xa3], 0xd3
mov byte [esp + 0xa4], 0x94
mov byte [esp + 0xa5], 0xed
mov byte [esp + 0xa6], 0x99
mov byte [esp + 0xa7], 0xef
mov byte [esp + 0xa8], 0x9e
mov byte [esp + 0xa9], 0xe9
mov byte [esp + 0xaa], 0x97
mov byte [esp + 0xab], 0xeb
mov byte [esp + 0xac], 0x6d
mov byte [esp + 0xad], 0xe5
mov byte [esp + 0xae], 0xa6
mov byte [esp + 0xaf], 0xe7
mov byte [esp + 0xb0], 0x90
mov byte [esp + 0xb1], 0xe1
mov byte [esp + 0xb2], 0x95
mov byte [esp + 0xb3], 0xe3
mov byte [esp + 0xb4], 0x70
mov byte [esp + 0xb5], 0xfd
mov byte [esp + 0xb6], 0xc8
mov byte [esp + 0xb7], 0xff
mov byte [esp + 0xb8], 0x9b
mov byte [esp + 0xb9], 0xf9
mov byte [esp + 0xba], 0x8d
mov byte [esp + 0xbb], 0xfb
mov byte [esp + 0xbc], 0x81
mov byte [esp + 0xbd], 0xf5
mov byte [esp + 0xbe], 0xc0
mov byte [esp + 0xbf], 0xf7
mov byte [esp + 0xc0], 0x80
mov byte [esp + 0xc1], 0xf1
mov byte [esp + 0xc2], 0x81
mov byte [esp + 0xc3], 0xf3
mov byte [esp + 0xc4], 0x80
mov byte [esp + 0xc5], 0xd
mov byte [esp + 0xc6], 0xe
mov byte [esp + 0xc7], 0xf
mov word [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0x76
jae 0xb24d55
jmp 0xb24cee
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
movzx ecx, byte [esp + ecx + 0x58]
add eax, 0xf7538914
mov edx, eax
and edx, ecx
mov esi, eax
xor esi, ecx
or eax, ecx
mov ecx, esi
xor ecx, eax
lea eax, [esi + edx*2]
add edx, ecx
sub eax, edx
mov dword [esp + 0x118], eax
mov ecx, dword [esp + 0x118]
mov eax, ecx
or eax, 0x73
and ecx, 0x73
add eax, ecx
inc al
mov ecx, dword [esp + 0x2c]
mov byte [esp + ecx + 0x58], al
mov eax, dword [esp + 0x2c]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x76
jb 0xb24cee
jmp 0xb24d55
lea eax, [esp + 0x148]
lea edx, [esp + 0x58]
mov edi, eax
mov ecx, 0x1c
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x70
lea edx, [esp + 0x58]
add edx, 0x70
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov eax, dword [0xcc8ba8]
lea ecx, [esp + 0x148]
xor edx, edx
lea edx, [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x37
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
call eax
sub esp, 0x18
mov eax, dword [esp + 0x3c]
mov ecx, 2
mul ecx
seto dl
mov ecx, 0xffffffff
test dl, 1
jne 0xb24dda
mov ecx, eax
mov dword [esp], ecx
call fcn.00af9490
mov dword [esp + 0x38], eax
mov eax, dword [0xcc8ba8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x148]
xor edi, edi
lea edi, [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], 0x37
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
call eax
sub esp, 0x18
mov byte [esp + 0x22], 0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x104]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00b2d080
cmp eax, 0
jl 0xb24e6e
mov eax, dword [esp + 0x104]
mov ecx, eax
add ecx, 1
xor eax, 0xffffffff
or eax, 0x80
add eax, ecx
cmp eax, 0
setne al
test al, 1
jne 0xb24e67
jmp 0xb24e6e
mov byte [esp + 0x22], 1
jmp 0xb24e6e
mov eax, dword [esp + 0x38]
cmp eax, 0
je 0xb24e81
mov dword [esp], eax
call fcn.00af94a0
jmp 0xb24e81
mov al, byte [esp + 0x22]
and al, 1
mov byte [esp + 0x23], al
mov dword [esp + 0x1c], 1
jmp 0xb24e95
jmp 0xb24e97
jmp 0xb24e99
mov al, byte [esp + 0x23]
and al, 1
movzx eax, al
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret