Function at 0x82d6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x3c]
mov ebx, edx
mov ebp, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
call fcn.007ebd10
test eax, eax
mov dword [esp + 4], eax
je 0x82e246
mov eax, fcn.007f16f0
mov edx, 3
movzx esi, byte [0xbb3be3]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007f16f0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x82d8d2
mov al, byte [0xbb3be3]
mov edi, ebx
mov esi, edx
xor ebx, ebx
mov ah, 1
xor esi, fcn.007f16f0
sete bl
mov ecx, ebx
not ecx
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3be3], ah
jne 0x82d767
mov edx, fcn.007f16f0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007f16f0
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 0x82d7f1
mov ebx, edi
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb3be3]
xor edx, fcn.007f16f0
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x82d7c6
jmp 0x82d8d2
xor eax, eax
xor ecx, fcn.007f16f0
movzx edx, byte [0xbb3be3]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82d8a1
mov eax, fcn.007f16f0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007f16f0
sete al
mov ecx, eax
not ecx
and ecx, 0xb
lea ecx, [eax + ecx*2 - 0x412902c]
mov eax, dword [0xbb3bd0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb3bd0], eax
not eax
imul edx, eax
mov eax, dword [0xbb3bd4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3bd4], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb3bd8]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3bd8], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb3bdc], edx
mov dl, 1
shl dl, cl
or byte [0xbb3be3], dl
mov eax, fcn.007f16f0
mov ecx, 3
mov ebx, edi
sub ecx, eax
xor eax, eax
xor ecx, fcn.007f16f0
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb3be3], al
mov edx, 0x78a300
movzx ecx, byte [0xbb3c93]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82daa1
mov al, byte [0xbb3c93]
cmp edx, 3
mov ah, 1
sete cl
not cl
add cl, 0x80
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3c93], ah
jne 0x82d901
mov ecx, 0x78a300
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
not dl
add dl, 0x80
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82d969
cmp ecx, 3
movzx edx, byte [0xbb3c93]
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt edx, eax
jae 0x82d949
jmp 0x82daa1
cmp ecx, 3
movzx ecx, byte [0xbb3c93]
sete al
not al
add al, 0x80
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82da7b
mov eax, 0x78a300
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb3c70]
sete cl
xor ecx, 0x637fcfaf
sub ecx, 0xffffff80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb3c70], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb3c74]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3c74], eax
or esi, edx
not eax
mov edx, dword [str.k1_vaO_]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [str.k1_vaO_], edx
or esi, eax
not edx
mov eax, dword [0xbb3c7c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb3c7c], eax
or esi, edx
not eax
mov edx, dword [0xbb3c80]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb3c80], edx
or eax, esi
not edx
mov edi, dword [0xbb3c84]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb3c84], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb3c88]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb3c88], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbb3c8c], edx
mov dl, 1
shl dl, cl
or byte [0xbb3c93], dl
mov eax, 0x78a300
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
not cl
add cl, 0x80
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb3c93], al
mov ecx, dword [esp + 0x14]
mov esi, ebx
shl esi, 4
mov eax, dword [ecx + 0x10]
lea edx, [eax + esi]
mov dword [esp], edx
mov edx, 0xbb3bd0
push dword [eax + esi]
call fcn.0078bd40
add esp, 4
test eax, eax
jne 0x82de16
mov edx, fcn.00805430
xor eax, eax
movzx esi, byte [0xbb3c03]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00805430
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x82dc42
mov al, byte [0xbb3c03]
mov edi, ebx
mov esi, edx
xor ebx, ebx
mov ah, 1
xor esi, fcn.00805430
sete bl
mov ecx, ebx
xor ecx, 3
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3c03], ah
jne 0x82db00
mov ecx, fcn.00805430
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, fcn.00805430
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82db7c
mov ebx, edi
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb3c03]
xor edx, fcn.00805430
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x82db56
jmp 0x82dc42
xor eax, eax
xor ecx, fcn.00805430
movzx edx, byte [0xbb3c03]
mov ebx, edi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x82dc1a
mov eax, fcn.00805430
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00805430
sete cl
mov eax, ecx
xor eax, 0x3b52ab93
lea ecx, [eax + ecx*2 + 0x890]
mov eax, dword [0xbb3bf0]
xor eax, ecx
mov dword [0xbb3bf0], eax
not eax
mov edx, dword [0xbb3bf4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb3bf4], edx
or esi, eax
not edx
mov eax, dword [0xbb3bf8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb3bf8], eax
cmp edi, dword [ebx - 0x829f700]
sal byte [edx - 0x3950f0ff], 1
shl dl, cl
xor dword [0xbb3bfc], eax
or byte [0xbb3c03], dl
mov eax, fcn.00805430
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00805430
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb3c03], al
mov edx, fcn.008297b0
xor eax, eax
movzx esi, byte [0xbb3c6b]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x82ddeb
mov al, byte [0xbb3c6b]
mov esi, ebx
xor ecx, ecx
cmp edx, 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 [0xbb3c6b], ah
jne 0x82dc74
mov ecx, fcn.008297b0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82dce3
mov ebx, esi
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb3c6b]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x82dcc2
jmp 0x82ddeb
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb3c6b]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x82ddc3
mov eax, fcn.008297b0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x5767b04b
lea ecx, [eax + ecx*2 + 0x1040]
mov eax, dword [0xbb3c50]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb3c50], eax
not eax
imul edx, eax
mov eax, dword [0xbb3c54]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3c54], eax
or esi, edx
not eax
mov edx, dword [0xbb3c58]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3c58], edx
or esi, eax
not edx
mov eax, dword [0xbb3c5c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb3c5c], eax
or esi, edx
not eax
mov edx, dword [0xbb3c60]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb3c60], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb3c64], edx
mov dl, 1
shl dl, cl
or byte [0xbb3c6b], dl
mov eax, fcn.008297b0
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 [0xbb3c6b], al
push 0xbb3bf0
push 0xbb3bd0
mov esi, dword [esp + 8]
push dword [esi]
push 0xbb3c50
push ebp
call fcn.007f6930
add esp, 0x14
mov edi, dword [ebp + 0x5c]
mov ax, 0x10
mov dword [esp + 8], eax
jmp 0x82de7b
mov edi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbb3bd0
push 1
push edi
call fcn.007ec020
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x82de5d
push eax
push dword [esp + 0x10]
push 0xbb3bd0
mov esi, dword [esp + 0xc]
push dword [esi]
push 0xbb3c70
push ebp
call fcn.007f6930
add esp, 0x18
mov dword [esp + 8], 0
jmp 0x82de7b
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push edi
call fcn.007c57e0
add esp, 8
mov dword [esp + 8], 0
mov esi, dword [esp]
mov edx, fcn.00775570
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb3c23]
bt ecx, eax
jb 0x82dff3
mov al, byte [0xbb3c23]
mov dword [esp + 0x18], ebx
xor ecx, ecx
cmp edx, 2
mov ah, 1
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 [0xbb3c23], ah
jne 0x82deaf
mov ecx, fcn.00775570
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82df20
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 2
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
movzx edx, byte [0xbb3c23]
bt edx, eax
jae 0x82deff
jmp 0x82dff3
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb3c23]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x82dfc7
mov eax, fcn.00775570
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0xef6f07a1
lea ecx, [eax + ecx*2 + 0x80]
mov eax, dword [0xbb3c10]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb3c10], eax
not eax
imul edx, eax
mov eax, dword [0xbb3c14]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3c14], eax
or esi, edx
not eax
mov edx, dword [0xbb3c18]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3c18], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
mov esi, dword [esp]
shl al, cl
xor dword [0xbb3c1c], edx
or byte [0xbb3c23], al
mov eax, fcn.00775570
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb3c23], al
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, 0xbb3c10
push dword [esi]
call fcn.0078bd40
add esp, 4
test eax, eax
je 0x82e05f
mov esi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbb3c10
push 1
push esi
call fcn.007ec020
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x82e049
push eax
push dword [esp + 0x10]
push 0xbb3c10
mov esi, dword [esp + 0xc]
push dword [esi]
push 0xbb3c70
push ebp
call fcn.007f6930
add esp, 0x18
jmp 0x82e05f
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push esi
call fcn.007c57e0
add esp, 8
mov esi, dword [esp]
mov edx, fcn.007a3650
movzx ecx, byte [0xbb3c43]
not edx
and edx, 1
mov eax, edx
add eax, fcn.007a3650
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82e1af
mov al, byte [0xbb3c43]
mov ecx, edx
mov ah, 1
add ecx, fcn.007a3650
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3c43], ah
jne 0x82e08d
mov ecx, fcn.007a3650
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.007a3650
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82e0f4
mov eax, ecx
movzx edx, byte [0xbb3c43]
add eax, fcn.007a3650
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x82e0d4
jmp 0x82e1af
add ecx, fcn.007a3650
movzx ecx, byte [0xbb3c43]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82e18d
mov eax, fcn.007a3650
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007a3650
mov eax, dword [0xbb3c30]
sete cl
or ecx, 0x1efe2a4
add ecx, 0x820
xor eax, ecx
mov dword [0xbb3c30], eax
not eax
mov edx, dword [0xbb3c34]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb3c34], edx
or esi, eax
not edx
mov eax, dword [0xbb3c38]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb3c38], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
mov esi, dword [esp]
shl dl, cl
xor dword [0xbb3c3c], eax
or byte [0xbb3c43], dl
mov eax, fcn.007a3650
not eax
and eax, 1
add eax, fcn.007a3650
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb3c43], al
mov ecx, dword [esp + 0x14]
mov edx, 0xbb3c30
push dword [esi]
call fcn.0078bd40
add esp, 4
test eax, eax
je 0x82e218
mov esi, dword [eax + 0x1c]
mov ecx, ebp
mov edx, ebx
push 0xbb3c30
push 1
push esi
call fcn.007ec020
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x82e205
push eax
push dword [esp + 0x10]
push 0xbb3c30
mov eax, dword [esp + 0xc]
push dword [eax]
push 0xbb3c70
push ebp
call fcn.007f6930
add esp, 0x18
jmp 0x82e218
mov ecx, dword [esp + 4]
mov edx, 0x89
push ebx
push esi
call fcn.007c57e0
add esp, 8
mov esi, dword [esp + 4]
mov edx, 0x61
mov ecx, esi
push 3
push ebx
push edi
push dword [esp + 0x28]
call fcn.007826e0
add esp, 0x10
movzx edx, word [esp + 8]
mov ecx, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00782720
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret