Function at 0x7e12b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [0xbd33e0]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], 0
mov ebx, dword [ecx]
cmp word [ecx + 0xc4], 0
jle 0x7e150d
mov eax, fcn.007a3a30
mov edx, 3
movzx ecx, byte [0xbb98eb]
sub edx, eax
mov eax, edx
xor eax, fcn.007a3a30
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7e14fa
mov al, byte [0xbb98eb]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007a3a30
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb98eb], ah
jne 0x7e131b
mov edx, fcn.007a3a30
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007a3a30
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e1384
mov eax, ecx
movzx edx, byte [0xbb98eb]
xor eax, fcn.007a3a30
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7e1364
jmp 0x7e14fa
xor ecx, fcn.007a3a30
movzx ecx, byte [0xbb98eb]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7e14d5
mov eax, fcn.007a3a30
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbb98c0]
xor edx, fcn.007a3a30
sete cl
or ecx, 0x943df11e
add ecx, 0xd40
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb98c0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb98c4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb98c4], eax
or esi, edx
not eax
mov edx, dword [0xbb98c8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb98c8], edx
or esi, eax
not edx
mov eax, dword [0xbb98cc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb98cc], eax
or esi, edx
not eax
mov edx, dword [0xbb98d0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb98d0], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb98d4]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb98d4], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb98d8]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb98d8], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb98dc]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb98dc], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb98e0]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb98e0], edx
or eax, esi
not edx
mov esi, dword [ebp + 0x10]
imul edx, eax
xor dword [0xbb98e4], edx
mov dl, 1
shl dl, cl
or byte [0xbb98eb], dl
mov eax, fcn.007a3a30
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007a3a30
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb98eb], al
push 0xbb98c0
push edi
call fcn.0078de60
add esp, 8
jmp 0x7e1761
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov ecx, edi
push dword [ebp + 0x1c]
push 0
push 1
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.007d8180
add esp, 0x14
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x7e1761
cmp dword [edi + 0x24], 0
jne 0x7e1761
mov edx, fcn.0083fed0
mov esi, fcn.0083fed0
mov dword [esp], eax
or edx, 2
xor esi, 2
movzx ecx, byte [0xbb98f7]
mov eax, edx
add eax, esi
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7e1662
mov al, byte [0xbb98f7]
mov ecx, edx
mov ah, 1
add ecx, esi
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb98f7], ah
jne 0x7e1577
mov ecx, fcn.0083fed0
mov edx, fcn.0083fed0
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
or ah, 2
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7e15d9
mov eax, ecx
movzx esi, byte [0xbb98f7]
add eax, edx
sete al
or al, 2
movzx eax, al
bt esi, eax
jae 0x7e15bc
jmp 0x7e1662
add ecx, edx
movzx ecx, byte [0xbb98f7]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7e163d
mov eax, fcn.0083fed0
mov edx, fcn.0083fed0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb98ec]
sete cl
or ecx, 0xf96f95ea
add ecx, 0x408
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb98ec], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb98f0], edx
mov dl, 1
shl dl, cl
or byte [0xbb98f7], dl
mov eax, fcn.0083fed0
mov ecx, fcn.0083fed0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb98f7], al
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0xc]
call fcn.00800700
add esp, 8
mov eax, dword [esp]
mov ecx, ebx
mov edx, dword [eax + 0x48]
call fcn.0078dee0
lea esi, [esp + 0x10]
mov edx, edi
mov ecx, esi
push dword [esp + 0xc]
push 0xbb98ec
push eax
call fcn.0080fba0
add esp, 0xc
mov ecx, esi
mov esi, dword [ebp + 0x14]
mov edx, esi
call fcn.008102e0
test eax, eax
je 0x7e16b6
mov esi, dword [ebp + 0x10]
jmp 0x7e1761
or byte [esi + 6], 0x20
cmp byte [edi + 0xc8], 1
jbe 0x7e16cf
mov eax, esi
mov dword [esp + 8], 0
jmp 0x7e16dd
mov ecx, ebx
mov edx, esi
push 1
call fcn.007ff740
add esp, 4
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp]
mov dword [ecx + 0xc], eax
mov ecx, ebx
mov edx, esi
push 1
call fcn.007ff8b0
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x18], eax
cmp byte [ebx + 0x51], 0
jne 0x7e1761
mov eax, dword [edi + 0xbc]
mov ecx, dword [edi + 0xc0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp byte [eax], 0x3b
je 0x7e171f
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], 0
mov ecx, dword [ecx]
sub eax, ecx
movzx edx, byte [ecx + eax - 1]
dec eax
test byte [edx + 0xb4bd18], 1
jne 0x7e172f
add ecx, eax
lea eax, [esp + 0x28]
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 1
mov ecx, edi
push 0
push 0
push eax
call fcn.007d95d0
add esp, 0xc
mov edx, dword [esp + 8]
mov ecx, ebx
call fcn.007cba90
cmp byte [edi + 0xc8], 2
jb 0x7e177e
mov ecx, edi
mov edx, esi
call fcn.0080f3c0
mov ecx, ebx
mov edx, esi
call fcn.007cb9f0
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00989fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret