Function at 0x812be0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xc7], 0
jne 0x81309c
cmp byte [ecx + 0x10], 0
jne 0x81309c
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [esp], eax
mov eax, edx
mov edx, dword [edx + 0x34]
test edx, edx
jne 0x812c06
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov byte [ecx + 0x10], 1
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x20]
mov edx, dword [edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp]
call fcn.007d13b0
cmp dword [edi], 0
jle 0x813087
mov eax, 0x7a20a0
mov esi, 3
xor ebp, ebp
mov dword [esp + 8], ebx
sub esi, eax
lea edx, [ebp + ebp*4]
mov eax, dword [edi + edx*4 + 8]
mov ecx, dword [edi + edx*4 + 4]
test eax, eax
je 0x812c70
test byte [edi + edx*4 + 0x10], 3
jne 0x812c70
mov ecx, dword [esp]
mov edx, ebp
push 0xffffffffffffffff
jmp 0x813073
test byte [esp + 0x10], 0x44
je 0x812f22
cmp byte [ecx], 0xa4
jne 0x812f22
movzx eax, word [ecx + 0x20]
mov edx, dword [ecx + 0x2c]
test ax, ax
jns 0x812ca3
movzx eax, word [edx + 0x28]
test ax, ax
jns 0x812ca3
mov dword [esp + 0xc], 0xbb99cc
jmp 0x812cb1
mov ecx, dword [edx + 4]
cwde
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
mov ebx, 0x8410d0
mov eax, 0x8410d0
movzx ecx, byte [0xbb99d7]
and ebx, 1
xor ebx, eax
cmp ebx, 0xffffffff
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x812dae
mov al, byte [0xbb99d7]
cmp ebx, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb99d7], ah
jne 0x812ce2
cmp ebx, 0xffffffff
movzx eax, al
sete cl
not cl
and cl, 5
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x812d34
cmp ebx, 0xffffffff
movzx ecx, byte [0xbb99d7]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jae 0x812d19
jmp 0x812dae
cmp ebx, 0xffffffff
movzx ecx, byte [0xbb99d7]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x812d96
mov dword [esp + 4], edx
xor edx, edx
cmp ebx, 0xffffffff
mov eax, dword [0xbb99cc]
sete dl
xor edx, 0x93910615
add edx, 0x1380
mov ecx, edx
xor eax, edx
shr ecx, 0x1f
mov dword [0xbb99cc], eax
not eax
or ecx, edx
and dl, 7
imul ecx, eax
mov al, 1
xor dword [0xbb99d0], ecx
mov ecx, edx
mov edx, dword [esp + 4]
shl al, cl
or byte [0xbb99d7], al
cmp ebx, 0xffffffff
mov al, 0xfe
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbb99d7], al
test byte [esp + 0x10], 4
je 0x812f04
mov ebx, fcn.007af130
xor eax, eax
imul ebx, ebx
and ebx, 3
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb99e3]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x812ee7
mov al, byte [0xbb99e3]
mov dword [esp + 4], edx
xor ecx, ecx
cmp ebx, 3
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb99e3], dl
jne 0x812df3
xor ecx, ecx
cmp ebx, 3
movzx eax, al
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov edx, dword [esp + 4]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x812e67
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb99e3]
and al, 7
movzx eax, al
bt ecx, eax
jae 0x812e40
jmp 0x812ee7
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
movzx ecx, byte [0xbb99e3]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x812ec6
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x541
lea ecx, [eax + ecx*2 + 0x32ef2886]
mov eax, dword [0xbb99d8]
xor eax, ecx
mov dword [0xbb99d8], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbb99dc], eax
mov ah, 1
shl ah, cl
or byte [0xbb99e3], ah
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb99e3], al
push dword [esp + 0xc]
push dword [edx]
push 0xbb99d8
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0078df10
add esp, 0x10
jmp 0x813069
mov ecx, dword [esp]
mov edx, ebp
push 0xffffffffffffffff
push dword [esp + 0x10]
push 0
call fcn.007d1410
add esp, 0xc
mov ebx, dword [esp + 8]
jmp 0x81307e
test eax, eax
jne 0x813060
mov eax, esi
movzx ecx, byte [0xbb99f3]
xor eax, 0x7a20a0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x81304c
mov al, byte [0xbb99f3]
mov ecx, esi
mov dl, 1
xor ecx, 0x7a20a0
sete cl
not cl
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb99f3], dl
jne 0x812f50
mov ecx, esi
movzx eax, al
xor ecx, 0x7a20a0
sete cl
not cl
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x812fb3
mov eax, esi
movzx ecx, byte [0xbb99f3]
xor eax, 0x7a20a0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jae 0x812f91
jmp 0x81304c
mov eax, esi
movzx ecx, byte [0xbb99f3]
xor eax, 0x7a20a0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x813030
mov eax, esi
xor ecx, ecx
xor eax, 0x7a20a0
mov eax, dword [0xbb99e4]
sete cl
xor ecx, 0x5632133b
add ecx, 0x1088
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb99e4], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb99e8]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb99e8], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp + 8]
shl dl, cl
xor dword [0xbb99ec], eax
or byte [0xbb99f3], dl
mov eax, esi
xor eax, 0x7a20a0
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb99f3], al
lea eax, [ebp + 1]
push eax
push 0xbb99e4
push ebx
call fcn.0078df10
add esp, 0xc
jmp 0x813069
mov ecx, ebx
mov edx, eax
call fcn.0078a6b0
mov ecx, dword [esp]
mov edx, ebp
push fcn.00780fe0
push eax
push 0
call fcn.007d1410
add esp, 0xc
inc ebp
cmp ebp, dword [edi]
jl 0x812c4d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
call fcn.00819830
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret