Function at 0x81eb60
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.007ebd10
xor edx, edx
test edi, edi
mov dword [esp], eax
je 0x81ee7a
mov esi, fcn.007f2440
mov eax, fcn.007f2440
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.007c57e0
add esp, 8
mov ecx, edi
call fcn.0081ffc0
mov ecx, dword [esp + 0x14]
mov edx, eax
cmp ebp, eax
cmovge edx, ebp
cmp dword [ecx + 0x58], 0
jne 0x81ee6f
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
cmp esi, 0xffffffff
movzx ecx, byte [0xbb22d3]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x81ecbf
mov al, byte [0xbb22d3]
cmp esi, 0xffffffff
mov dl, 1
sete cl
or cl, 2
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb22d3], dl
jne 0x81ebf0
cmp esi, 0xffffffff
movzx eax, al
sete cl
or cl, 2
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x81ec3f
cmp esi, 0xffffffff
movzx ecx, byte [0xbb22d3]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jae 0x81ec23
jmp 0x81ecbf
cmp esi, 0xffffffff
movzx ecx, byte [0xbb22d3]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x81eca9
xor ecx, ecx
cmp esi, 0xffffffff
mov eax, dword [0xbb22c4]
sete cl
or ecx, 0x2b14ae72
add ecx, 0x300
xor eax, ecx
mov dword [0xbb22c4], eax
not eax
mov edx, dword [0xbb22c8]
imul eax, ecx
and cl, 7
lea ebp, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb22c8], edx
or ebp, eax
not edx
mov al, 1
imul edx, ebp
shl al, cl
xor dword [0xbb22cc], edx
or byte [0xbb22d3], al
cmp esi, 0xffffffff
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb22d3], al
mov edx, fcn.007f0850
movzx ecx, byte [0xbb22f3]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x81edeb
mov al, byte [0xbb22f3]
cmp edx, 1
mov ah, 1
seta cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb22f3], ah
jne 0x81ecea
cmp edx, 1
movzx eax, al
seta cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x81ed39
cmp edx, 1
movzx ecx, byte [0xbb22f3]
seta al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x81ed1d
jmp 0x81edeb
cmp edx, 1
movzx ecx, byte [0xbb22f3]
seta al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x81edd5
xor ebx, ebx
cmp edx, 1
mov eax, dword [0xbb22e0]
seta bl
or ebx, 0xd13e7768
add ebx, 0x2c
mov ebp, ebx
xor eax, ebx
mov dword [0xbb22e0], eax
shr ebp, 0x1f
not eax
or ebp, ebx
mov ecx, dword [0xbb22e4]
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 [0xbb22e4], ecx
not ecx
or ebp, eax
mov eax, dword [0xbb22e8]
imul ecx, ebp
lea ebp, [ecx*4]
xor eax, ecx
shr ecx, 0x1d
mov dword [0xbb22e8], eax
or ebp, ecx
not eax
mov ecx, ebx
imul eax, ebp
xor dword [0xbb22ec], eax
mov ah, 1
shl ah, cl
or byte [0xbb22f3], ah
cmp edx, 1
mov al, 0xfe
seta cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb22f3], al
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x20]
cmp eax, 0xbb22c4
je 0x81ee00
cmp eax, 0xbb22e0
jne 0x81ee31
mov ebp, dword [esp]
mov edx, 0x45
mov ecx, ebp
push dword [edi + 0x40]
push 0
call fcn.007c57e0
add esp, 8
mov eax, dword [edi + 0x40]
mov ecx, ebp
mov edx, 0x45
inc eax
push eax
push 0
call fcn.007c57e0
mov ecx, dword [esp + 0x10]
add esp, 8
test byte [ecx + 5], 0x10
mov edx, dword [esp + 4]
je 0x81ee6f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x81ee6f
mov ebp, dword [esp]
mov edx, 0x8a
mov ecx, ebp
push eax
call fcn.007edd80
add esp, 4
mov eax, dword [edi + 0x40]
mov edx, 0x45
mov ecx, ebp
inc eax
push eax
push 0
call fcn.007c57e0
mov edx, dword [esp + 0xc]
add esp, 8
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x81eb92
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