Function at 0x82f9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov dword [esp + 0x24], edx
xor ebx, ebx
mov edx, dword [ebp + 8]
mov eax, dword [0xbd33e0]
mov edi, edx
xor eax, ebp
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ecx]
setne bl
mov al, byte [edx + ebx + 0x19]
mov dword [esp + 8], ecx
cmp al, 7
jne 0x82fa2b
mov ecx, dword [esp + 8]
xor esi, esi
test byte [ecx + 0x22], 8
jne 0x830422
mov esi, dword [edi + ebx*4 + 0x1c]
test al, al
mov ecx, edi
je 0x830422
test esi, esi
jne 0x830422
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov byte [esp + 3], al
lea eax, [esp + 0x68]
lea esi, [esp + 0x6c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push eax
push esi
push edi
call fcn.0082ebd0
add esp, 0xc
xor esi, esi
test eax, eax
jne 0x830422
cmp dword [edi + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ebx
jg 0x82faab
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
jmp 0x830008
mov edx, fcn.0083bbd0
movzx ecx, byte [0xbba4bf]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x82fbb9
mov al, byte [0xbba4bf]
cmp edx, 3
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba4bf], ah
jne 0x82fad8
mov ecx, fcn.0083bbd0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fb38
cmp ecx, 3
movzx edx, byte [0xbba4bf]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x82fb1a
jmp 0x82fbb9
cmp ecx, 3
movzx ecx, byte [0xbba4bf]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x82fb96
mov eax, fcn.0083bbd0
xor ecx, ecx
mov esi, dword [0xbba4b4]
mov dl, 1
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
xor ecx, 0x79dd9f23
or ecx, 0x90
xor esi, ecx
mov dword [0xbba4b4], esi
not esi
imul esi, ecx
and cl, 3
shl dl, cl
xor dword [0xbba4b8], esi
or byte [0xbba4bf], dl
mov eax, fcn.0083bbd0
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbba4bf], al
mov edx, fcn.007a25e0
mov eax, fcn.007a25e0
movzx esi, byte [0xbba4cb]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x82fd11
mov al, byte [0xbba4cb]
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba4cb], ah
jne 0x82fbf2
mov ecx, fcn.007a25e0
mov edx, fcn.007a25e0
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82fc6e
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbba4cb]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x82fc48
jmp 0x82fd11
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbba4cb]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x82fce2
mov ecx, fcn.007a25e0
mov eax, fcn.007a25e0
mov esi, dword [0xbba4c0]
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0x5e6524d9
lea ecx, [ecx + eax*2 + 0x100c]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbba4c0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbba4c4], edx
mov dl, 1
shl dl, cl
or byte [0xbba4cb], dl
mov ecx, fcn.007a25e0
mov eax, fcn.007a25e0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbba4cb], al
cmp dword [ebp + 0xc], 0
mov dl, byte [esp + 3]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
setne al
cmp dl, 7
setne cl
cmp dl, 0xa
setne dl
xor esi, esi
or dl, al
lea eax, [edi + 0x24]
lea edi, [esp + 0x48]
and dl, cl
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x6c]
lea eax, [eax + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 4], edx
mov ecx, dword [0xb506a8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov ecx, dword [0xb506ac]
test eax, eax
lea eax, [eax + esi*4]
cmove eax, dword [esp + 0x38]
test edx, edx
mov dword [esp + 0x64], ecx
mov ecx, dword [0xb506b0]
mov dword [esp + 0x58], ecx
mov ecx, dword [0xb506b4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [eax]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
je 0x82fdb5
lea ecx, [esi + esi]
add ecx, dword [edx + 4]
movsx ecx, word [ecx]
mov dword [esp + 0x14], esi
lea ecx, [ecx + ecx*4]
mov edx, dword [eax + ecx*4]
mov ecx, edi
call fcn.008022d0
mov eax, dword [ebp + 8]
lea ecx, [ebx + ebx*4]
lea esi, [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx*4]
mov ecx, esi
call fcn.008022d0
mov ebx, dword [esp + 8]
mov edx, 0x3b
mov ecx, ebx
push 0
push esi
call fcn.007e4510
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
push edi
call fcn.007e4510
add esp, 8
mov edi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x64]
push eax
call fcn.007e4510
add esp, 8
mov ecx, dword [esp + 0xc]
mov edx, 0x8b
push edi
mov edi, ecx
push eax
call fcn.007db7a0
add esp, 8
mov ecx, edi
mov edx, 0x35
push esi
push eax
call fcn.007db7a0
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.007ea860
add esp, 4
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x18], eax
je 0x82ff15
mov ecx, ebx
mov edx, 0x3b
push 0
lea esi, [esp + 0x4c]
push esi
call fcn.007e4510
add esp, 8
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.007e4510
add esp, 8
mov ecx, edi
mov edx, 0x8b
push dword [esp + 0x2c]
push eax
call fcn.007db7a0
add esp, 8
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov edx, 0x3b
push 0
push esi
call fcn.007e4510
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x64]
push eax
call fcn.007e4510
add esp, 8
mov ecx, edi
mov edx, 0x8b
push esi
push eax
call fcn.007db7a0
add esp, 8
mov ecx, edi
mov edx, 0x2d
push dword [esp + 0x2c]
push eax
call fcn.007db7a0
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.007ea860
add esp, 4
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 8]
movzx eax, byte [esp + 3]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x1f], 0
mov ecx, edi
jne 0x82ff37
lea edi, [esp + 0x48]
jmp 0x82fffe
cmp al, 9
je 0x82ff8c
cmp al, 0xa
jne 0x82ffb4
mov ebx, dword [esp + 8]
mov edx, 0x3b
mov ecx, ebx
push 0
lea eax, [esp + 0x4c]
push eax
call fcn.007e4510
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.007e4510
add esp, 8
mov ebx, dword [esp + 0xc]
mov edx, 0x8b
mov ecx, ebx
push esi
mov esi, dword [esp + 0x18]
push eax
call fcn.007db7a0
add esp, 8
jmp 0x82ffcd
mov eax, dword [ecx]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [eax + ecx*4 + 0x10], 0x60
jne 0x82ffb4
mov edx, dword [eax + ecx*4 + 4]
test edx, edx
je 0x82ffb4
mov ecx, dword [esp + 8]
push 0
call fcn.007fc000
add esp, 4
jmp 0x82ffc9
mov ecx, dword [esp + 8]
mov edx, 0x77
push 0
push 0
call fcn.007e4510
add esp, 8
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, ebx
push eax
call fcn.007e4370
add esp, 4
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x54]
push eax
call fcn.007e4420
add esp, 8
mov edx, dword [esp + 4]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x48]
inc esi
cmp esi, dword [ecx + 0x14]
jl 0x82fd68
mov esi, ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 8]
call fcn.00780810
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call fcn.00783170
cmp byte [esp + 3], 7
mov dword [esp + 0x14], edi
jne 0x8302b5
mov edx, fcn.007a20f0
mov esi, fcn.007a20f0
mov dword [esp + 4], eax
xor eax, eax
or edx, 2
xor esi, 2
movzx ebx, byte [0xbba4f3]
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt ebx, eax
jb 0x830238
mov al, byte [0xbba4f3]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba4f3], ah
jne 0x83006c
mov ecx, fcn.007a20f0
mov edx, fcn.007a20f0
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 1
lea ebx, [esi + ebx*2 + 2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x8300e8
mov edi, dword [esp + 0x14]
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbba4f3]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 2]
bt esi, eax
jae 0x8300c5
jmp 0x830238
xor eax, eax
add ecx, edx
movzx edx, byte [0xbba4f3]
mov edi, dword [esp + 0x14]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x83020b
mov ecx, fcn.007a20f0
mov edx, fcn.007a20f0
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x801
lea ecx, [eax + ecx*2 + 0x715123fa]
mov eax, dword [0xbba4d0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbba4d0], eax
not eax
imul edx, eax
mov eax, dword [0xbba4d4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbba4d4], eax
or esi, edx
not eax
mov edx, dword [0xbba4d8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbba4d8], edx
or esi, eax
not edx
mov eax, dword [0xbba4dc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbba4dc], eax
or esi, edx
not eax
mov edx, dword [0xbba4e0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbba4e0], edx
or eax, esi
not edx
mov ebx, dword [0xbba4e4]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbba4e4], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbba4e8]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbba4e8], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbba4ec], edx
mov dl, 1
shl dl, cl
or byte [0xbba4f3], dl
mov eax, fcn.007a20f0
mov ecx, fcn.007a20f0
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbba4f3], al
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], edi
mov edx, 0x47
mov dword [esp + 0x44], eax
push 0xbba4d0
call fcn.007e44c0
add esp, 4
mov esi, eax
test eax, eax
je 0x830264
mov byte [esi + 1], 2
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x40]
xor edx, edx
mov ecx, ebx
push 0
push eax
call fcn.007e46f0
add esp, 8
mov edi, eax
mov ecx, ebx
xor edx, edx
push esi
call fcn.007e4370
add esp, 4
mov ecx, ebx
mov edx, eax
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
push edi
call fcn.007e4230
add esp, 0x1c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 8]
mov edx, eax
add edx, 0x51
inc dword [ebx + 0x118]
mov word [ebx + 0x11c], 0
mov ecx, ebx
push 0
mov edi, eax
call fcn.0078a8a0
add esp, 4
mov esi, eax
test eax, eax
jne 0x8302e8
xor edi, edi
jmp 0x830380
lea eax, [esi + 0x24]
mov dword [esp + 4], eax
mov dword [esi + 0x1c], eax
mov eax, esi
add eax, 0x50
mov dword [esi + 0x30], eax
push edi
push dword [esp + 0x18]
push eax
call fcn.0098a270
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, ebx
push 1
call fcn.007fc000
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov ecx, ebx
push 1
call fcn.007ff8b0
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esi + 0x38], eax
mov ecx, ebx
push 1
call fcn.007ff740
add esp, 4
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x830353
mov dword [esp + 0x10], 0
jmp 0x83037c
mov ecx, dword [esp + 0xc]
mov edx, 0x13
push 0
push eax
call fcn.007db7a0
add esp, 8
mov ecx, ebx
mov dword [esp + 0x10], eax
mov edx, eax
push 1
call fcn.007fc000
add esp, 4
mov dword [esi + 0xc], eax
mov edi, dword [esp + 4]
dec dword [ebx + 0x118]
je 0x83038c
xor eax, eax
jmp 0x830393
movzx eax, word [ebx + 0x11e]
mov edx, dword [esp + 0x18]
mov ecx, ebx
mov word [ebx + 0x11c], ax
call fcn.007cb9e0
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.007cb9e0
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.007cb9f0
mov edx, dword [esp + 0x28]
mov ecx, ebx
call fcn.007cba90
cmp byte [ebx + 0x51], 1
jne 0x8303d9
mov ecx, ebx
mov edx, esi
call fcn.007d3350
xor esi, esi
jmp 0x830422
mov al, byte [esp + 3]
cmp al, 7
jne 0x8303e5
mov al, 0x88
jmp 0x8303f5
cmp al, 0xa
jne 0x8303f3
cmp dword [ebp + 0xc], 0
jne 0x8303f3
mov al, 0x7e
jmp 0x8303f5
mov al, 0x7f
mov ecx, dword [esp + 0x24]
mov byte [edi], al
mov dword [edi + 4], esi
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
mov eax, dword [ecx + 0x48]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], esi
setne cl
or cl, 0x7e
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.00989fe9
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret