Function at 0x82a3a0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, edx
mov dword [esp + 0x10], ecx
call fcn.007f7590
xor edx, edx
test edi, edi
mov dword [esp], eax
je 0x82a6ba
mov esi, fcn.007fdcc0
mov eax, fcn.007fdcc0
mov dword [esp + 0x14], edi
and esi, 1
xor esi, eax
mov ebx, dword [edi + 0x2c]
mov ecx, dword [esp]
mov ebp, edx
mov edx, 0x48
push dword [edi + 0x34]
push 0
call fcn.007d10d0
add esp, 8
mov ecx, edi
call fcn.0082b800
mov ecx, dword [esp + 0x14]
mov edx, eax
cmp ebp, eax
cmovge edx, ebp
cmp dword [ecx + 0x58], 0
jne 0x82a6af
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
cmp esi, 0xffffffff
movzx ecx, byte [0xbb9c33]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x82a4ff
mov al, byte [0xbb9c33]
cmp esi, 0xffffffff
mov dl, 1
sete cl
or cl, 2
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb9c33], dl
jne 0x82a430
cmp esi, 0xffffffff
movzx eax, al
sete cl
or cl, 2
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x82a47f
cmp esi, 0xffffffff
movzx ecx, byte [0xbb9c33]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jae 0x82a463
jmp 0x82a4ff
cmp esi, 0xffffffff
movzx ecx, byte [0xbb9c33]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x82a4e9
xor ecx, ecx
cmp esi, 0xffffffff
mov eax, dword [0xbb9c24]
sete cl
or ecx, 0x2b14ae72
add ecx, 0x300
xor eax, ecx
mov dword [0xbb9c24], eax
not eax
mov edx, dword [0xbb9c28]
imul eax, ecx
and cl, 7
lea ebp, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb9c28], edx
or ebp, eax
not edx
mov al, 1
imul edx, ebp
shl al, cl
xor dword [0xbb9c2c], edx
or byte [0xbb9c33], al
cmp esi, 0xffffffff
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb9c33], al
mov edx, fcn.007fc0d0
movzx ecx, byte [0xbb9c53]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82a62b
mov al, byte [0xbb9c53]
cmp edx, 1
mov ah, 1
seta cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9c53], ah
jne 0x82a52a
cmp edx, 1
movzx eax, al
seta cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x82a579
cmp edx, 1
movzx ecx, byte [0xbb9c53]
seta al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x82a55d
jmp 0x82a62b
cmp edx, 1
movzx ecx, byte [0xbb9c53]
seta al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x82a615
xor ebx, ebx
cmp edx, 1
mov eax, dword [0xbb9c40]
seta bl
or ebx, 0xd13e7768
add ebx, 0x2c
mov ebp, ebx
xor eax, ebx
mov dword [0xbb9c40], eax
shr ebp, 0x1f
not eax
or ebp, ebx
mov ecx, dword [0xbb9c44]
and bl, 7
imul ebp, eax
lea eax, [ebp + ebp]
mov dword [esp + 0xc], eax
mov eax, ebp
xor ecx, ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1e
mov dword [0xbb9c44], ecx
not ecx
or ebp, eax
mov eax, dword [0xbb9c48]
imul ecx, ebp
lea ebp, [ecx*4]
xor eax, ecx
shr ecx, 0x1d
mov dword [0xbb9c48], eax
or ebp, ecx
not eax
mov ecx, ebx
imul eax, ebp
xor dword [0xbb9c4c], eax
mov ah, 1
shl ah, cl
or byte [0xbb9c53], ah
cmp edx, 1
mov al, 0xfe
seta cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb9c53], al
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x20]
cmp eax, 0xbb9c24
je 0x82a640
cmp eax, 0xbb9c40
jne 0x82a671
mov ebp, dword [esp]
mov edx, 0x45
mov ecx, ebp
push dword [edi + 0x40]
push 0
call fcn.007d10d0
add esp, 8
mov eax, dword [edi + 0x40]
mov ecx, ebp
mov edx, 0x45
inc eax
push eax
push 0
call fcn.007d10d0
mov ecx, dword [esp + 0x10]
add esp, 8
test byte [ecx + 5], 0x10
mov edx, dword [esp + 4]
je 0x82a6af
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x82a6af
mov ebp, dword [esp]
mov edx, 0x8a
mov ecx, ebp
push eax
call fcn.007f9600
add esp, 4
mov eax, dword [edi + 0x40]
mov edx, 0x45
mov ecx, ebp
inc eax
push eax
push 0
call fcn.007d10d0
mov edx, dword [esp + 0xc]
add esp, 8
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x82a3d2
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x2c]
add edx, eax
inc eax
mov dword [ecx + 0x2c], edx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret