Function at 0x827df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, 0x7988d0
mov dword [esp], ecx
xor eax, eax
imul esi, esi
movzx edi, byte [0xbb9fc7]
and esi, 3
cmp esi, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x827f0c
mov al, byte [0xbb9fc7]
xor ecx, ecx
cmp esi, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9fc7], ah
jne 0x827e2a
mov ecx, 0x7988d0
xor ebx, ebx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete bl
mov esi, ebx
xor ebx, 3
lea ebx, [ebx + esi*2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x827e94
xor ebx, ebx
cmp ecx, 3
movzx esi, byte [0xbb9fc7]
sete bl
mov eax, ebx
xor eax, 3
lea eax, [eax + ebx*2]
bt esi, eax
jae 0x827e76
jmp 0x827f0c
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb9fc7]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x827ee4
mov eax, 0x7988d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0xb747e0cb
lea ecx, [eax + ecx*2 + 0x1240]
mov al, 1
xor dword [0xbb9fc0], ecx
and cl, 7
shl al, cl
or byte [0xbb9fc7], al
mov eax, 0x7988d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb9fc7], al
movzx ebx, word [edx + 0x18]
mov eax, dword [edx + 0x20]
test ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
jne 0x827f45
test byte [edx + 0x24], 0x30
je 0x8286d2
mov dword [esp + 0xc], edx
push 2
push 0xbb9fc0
push dword [esp + 8]
call fcn.00782dd0
add esp, 0xc
jmp 0x8282fe
movzx eax, word [edx + 0x2a]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
push 2
push 0xbb9fc0
push dword [esp + 8]
call fcn.00782dd0
add esp, 0xc
mov esi, fcn.0078df50
mov edi, fcn.008292d0
xor ebp, ebp
imul esi, esi
not edi
and esi, 3
and edi, 1
mov ecx, dword [esp + 8]
mov edx, ebp
call fcn.008286e0
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x8280cf
mov edx, fcn.007a4240
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb9fd3]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8280bc
mov al, byte [0xbb9fd3]
xor ebx, ebx
cmp edx, 2
mov ah, 1
sete bl
mov ecx, ebx
xor ecx, 1
lea ecx, [ebx + ecx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9fd3], ah
jne 0x827fc8
xor ecx, ecx
cmp edx, 2
movzx eax, al
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
mov ebx, dword [esp + 4]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x82803c
xor eax, eax
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb9fd3]
and al, 7
movzx eax, al
bt ecx, eax
jae 0x828015
jmp 0x8280bc
xor eax, eax
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb9fd3]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82809b
xor eax, eax
cmp edx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x151
lea ecx, [eax + ecx*2 + 0x137fb8a6]
mov eax, dword [0xbb9fc8]
xor eax, ecx
mov dword [0xbb9fc8], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbb9fcc], eax
mov ah, 1
shl ah, cl
or byte [0xbb9fd3], ah
xor eax, eax
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9fd3], al
push 5
push 0xbb9fc8
push dword [esp + 8]
call fcn.00782dd0
add esp, 0xc
cmp esi, 1
movzx ecx, byte [0xbb9fdf]
seta al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8281c2
mov al, byte [0xbb9fdf]
cmp esi, 1
mov dl, 1
seta cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb9fdf], dl
jne 0x8280f3
cmp esi, 1
movzx eax, al
seta cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x82814d
cmp esi, 1
movzx ecx, byte [0xbb9fdf]
seta al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jae 0x828130
jmp 0x8281c2
cmp esi, 1
movzx ecx, byte [0xbb9fdf]
seta al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x8281a7
xor ecx, ecx
cmp esi, 1
mov eax, dword [0xbb9fd4]
seta cl
xor ecx, 0xd457b1ef
add ecx, 0xc20
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb9fd4], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb9fd8], edx
mov dl, 1
shl dl, cl
or byte [0xbb9fdf], dl
cmp esi, 1
mov al, 0xfe
seta cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9fdf], al
mov eax, edi
movzx ecx, byte [0xbb9fef]
add eax, fcn.008292d0
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x8282d3
mov al, byte [0xbb9fef]
mov ecx, edi
mov dl, 1
add ecx, fcn.008292d0
sete cl
or cl, 6
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb9fef], dl
jne 0x8281e6
mov ecx, edi
movzx eax, al
add ecx, fcn.008292d0
sete cl
or cl, 6
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x828243
mov eax, edi
movzx ecx, byte [0xbb9fef]
add eax, fcn.008292d0
sete al
or al, 6
movzx eax, al
bt ecx, eax
jae 0x828223
jmp 0x8282d3
mov eax, edi
movzx ecx, byte [0xbb9fef]
add eax, fcn.008292d0
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x8282b9
mov eax, edi
xor ecx, ecx
add eax, fcn.008292d0
mov eax, dword [0xbb9fe0]
sete cl
or ecx, 0x3ab9b72e
add ecx, 0x100
xor eax, ecx
mov dword [0xbb9fe0], eax
not eax
mov edx, dword [0xbb9fe4]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb9fe4], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, dword [esp + 4]
shl al, cl
xor dword [0xbb9fe8], edx
or byte [0xbb9fef], al
mov eax, edi
add eax, fcn.008292d0
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb9fef], al
cmp ebp, dword [esp + 0x10]
mov eax, 0xbb9fd4
mov ecx, 0xbb9fe0
cmovb eax, ecx
push dword [esp + 0x14]
push eax
push dword [esp + 8]
call fcn.00783530
add esp, 0xc
inc ebp
cmp ebp, ebx
jne 0x827f7b
mov edi, dword [esp + 0xc]
mov esi, ebx
mov eax, dword [edi + 0x24]
test al, 0x20
je 0x82843d
mov eax, fcn.007aad80
mov edx, 3
movzx ecx, byte [0xbb9ff7]
sub edx, eax
mov eax, edx
xor eax, fcn.007aad80
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82841a
mov al, byte [0xbb9ff7]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007aad80
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9ff7], ah
jne 0x82833f
mov edx, fcn.007aad80
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007aad80
setne dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8283a5
mov eax, ecx
movzx edx, byte [0xbb9ff7]
xor eax, fcn.007aad80
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x828388
jmp 0x82841a
xor ecx, fcn.007aad80
movzx ecx, byte [0xbb9ff7]
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x8283f5
mov eax, fcn.007aad80
mov edx, 3
xor ecx, ecx
sub edx, eax
mov al, 1
xor edx, fcn.007aad80
sete cl
xor ecx, 0xff376151
add ecx, 0x1154
xor dword [0xbb9ff0], ecx
and cl, 7
shl al, cl
or byte [0xbb9ff7], al
mov eax, fcn.007aad80
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007aad80
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb9ff7], al
movzx eax, word [edi + 0x1a]
mov ecx, dword [esp]
mov edx, dword [esp + 8]
push 0xbb9ff0
push ebx
push ebx
push eax
call fcn.00828930
add esp, 0x10
mov eax, dword [edi + 0x24]
mov esi, 1
test al, 0x10
je 0x828598
mov edx, fcn.007bc0d0
xor eax, eax
movzx ebp, byte [0xbb9fff]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebp, eax
jb 0x82857d
mov al, byte [0xbb9fff]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9fff], ah
jne 0x82847a
mov ecx, fcn.007bc0d0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8284f6
mov ebx, dword [esp + 4]
xor eax, eax
cmp ecx, 3
movzx ebp, byte [0xbb9fff]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x8284d0
jmp 0x82857d
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb9fff]
mov ebx, dword [esp + 4]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x828552
mov ecx, fcn.007bc0d0
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x58b
lea ecx, [eax + ecx*2 + 0x5707a234]
mov al, 1
xor dword [0xbb9ff8], ecx
and cl, 7
shl al, cl
or byte [0xbb9fff], al
mov eax, fcn.007bc0d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9fff], al
movzx eax, word [edi + 0x1c]
mov ecx, dword [esp]
mov edx, dword [esp + 8]
push 0xbb9ff8
push esi
push ebx
push eax
call fcn.00828930
add esp, 0x10
mov edx, fcn.007c5760
xor eax, eax
movzx esi, byte [0xbba007]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.007c5760
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x8286bd
mov al, byte [0xbba007]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.007c5760
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba007], ah
jne 0x8285cb
mov ecx, fcn.007c5760
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, fcn.007c5760
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x828642
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbba007]
xor edx, fcn.007c5760
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
bt esi, eax
jae 0x82861f
jmp 0x8286bd
xor eax, eax
xor ecx, fcn.007c5760
movzx edx, byte [0xbba007]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x828695
mov eax, fcn.007c5760
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007c5760
sete cl
mov eax, ecx
xor eax, 0xb90136a1
lea ecx, [eax + ecx*2 + 0x218]
mov al, 1
xor dword [0xbba000], ecx
and cl, 7
shl al, cl
or byte [0xbba007], al
mov eax, fcn.007c5760
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007c5760
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbba007], al
push 1
push 0xbba000
push dword [esp + 8]
call fcn.00782dd0
add esp, 0x24
jmp 0x8286d5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret