Function at 0x801ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [esp + 0x18], ecx
mov eax, dword [0xbd33e0]
xor eax, esp
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], edx
movsx ebx, word [edx + 0x2a]
test ebx, ebx
jg 0x801ae6
xor ebp, ebp
jmp 0x801b00
mov esi, dword [edx + 4]
xor edi, edi
xor ebp, ebp
mov ecx, dword [esi]
call fcn.0080f040
inc edi
add esi, 0x14
lea ebp, [ebp + eax + 5]
cmp edi, ebx
jne 0x801aed
mov eax, fcn.007805f0
mov ecx, fcn.007805f0
xor edx, edx
mov dword [esp + 4], ebp
mov dword [esp + 0x10], ebx
xor ecx, 2
or eax, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
xor ebx, ebx
mov esi, dword [edx*4 + 0xb57244]
mov ebp, dword [edx*4 + str._b_b_f_b]
mov dword [esp + 0x24], edx
add eax, dword [esp + 0x1c]
mov eax, 1
sete bl
xor ebx, 0xf0019a7
add ebx, 0x20
xor ebx, dword [edx*4 + 0xb57264]
mov ecx, ebx
and cl, 7
movzx edx, cl
shl eax, cl
xor cl, 7
mov dword [esp], edx
mov edx, 1
shl edx, cl
movzx ecx, byte [esi + ebp - 1]
mov edi, dword [esp]
bt ecx, edi
jb 0x801c03
mov dword [esp + 0x14], eax
mov al, byte [esi + ebp - 1]
mov ecx, eax
or cl, dl
lock cmpxchg byte [esi + ebp - 1], cl
jne 0x801b86
mov ecx, dword [esp + 0x14]
movzx eax, al
test edx, eax
je 0x801ba8
movzx eax, byte [esi + ebp - 1]
test ecx, eax
je 0x801b9d
jmp 0x801c03
movzx eax, byte [esi + ebp - 1]
test ecx, eax
jne 0x801bfd
lea ecx, [ebp - 4]
shr ecx, 2
je 0x801bf5
xor eax, eax
mov edi, esi
mov dword [esp + 0x20], ecx
mov ecx, edi
mov dword [esp + 0x28], edi
mov edi, dword [edi]
mov dword [esp], ebx
xor edi, ebx
mov dword [ecx], edi
mov ecx, eax
not edi
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
shr ebx, cl
mov ecx, dword [esp + 0x20]
or ebx, dword [esp]
imul ebx, edi
mov edi, dword [esp + 0x28]
add edi, 4
cmp eax, ecx
jne 0x801bc1
mov eax, dword [esp + 0x14]
or byte [esi + ebp - 1], al
not dl
and byte [esi + ebp - 1], dl
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 4
jne 0x801b22
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
call fcn.0080f040
add eax, dword [esp + 4]
mov ecx, 0xbb8e88
mov ebp, 0xbb8ea4
mov esi, 0xbb8eb0
cmp eax, 0x32
mov dword [esp + 0x3c], eax
cmovl ebp, ecx
mov ecx, 0xbb8e90
cmovl esi, ecx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*2 + 0x23]
xor ecx, ecx
mov eax, edx
mov dword [esp + 4], edx
sar eax, 0x1f
push eax
call fcn.0078fe60
add esp, 4
mov ebx, eax
test eax, eax
jne 0x801c74
mov ecx, dword [esp + 0x18]
call fcn.0078a090
jmp 0x802171
mov edx, fcn.007881c0
mov eax, fcn.007881c0
movzx ecx, byte [0xbb8ed3]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 4]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x801de3
mov al, byte [0xbb8ed3]
cmp edx, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8ed3], ah
jne 0x801cad
mov ecx, fcn.007881c0
mov edx, fcn.007881c0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
not dl
and dl, 5
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x801d11
cmp ecx, 0xffffffff
movzx edx, byte [0xbb8ed3]
sete al
not al
and al, 5
movzx eax, al
bt edx, eax
jae 0x801cf3
jmp 0x801de3
cmp ecx, 0xffffffff
movzx ecx, byte [0xbb8ed3]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x801dbc
mov edx, fcn.007881c0
mov eax, fcn.007881c0
xor ecx, ecx
mov ebp, esi
and edx, 1
xor edx, eax
mov eax, dword [0xbb8ec0]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x9542d2e5
add ecx, 0xa10
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb8ec0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb8ec4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb8ec4], eax
or esi, edx
not eax
mov edx, dword [0xbb8ec8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb8ec8], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
mov esi, ebp
mov ebp, dword [esp + 4]
shl al, cl
xor dword [0xbb8ecc], edx
or byte [0xbb8ed3], al
mov ecx, fcn.007881c0
mov eax, fcn.007881c0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbb8ed3], al
push 0xbb8ec0
push ebx
push ebp
call fcn.00783420
add esp, 0xc
mov ecx, ebx
call fcn.00783170
lea edx, [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x40], eax
push dword [edi]
call fcn.0080f060
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, ebp
mov dword [esp + 0x38], esi
lea edx, [eax + 1]
lea ebp, [ebx + eax + 1]
mov dword [esp + 0x40], edx
mov byte [ebx + eax], 0x28
sub ecx, edx
cmp word [edi + 0x2a], 0
jle 0x80206a
mov eax, fcn.0078f460
mov esi, fcn.0078f460
mov dword [esp + 0x2c], edx
xor edx, edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ebx
xor esi, 2
or eax, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edi, dword [edx*4 + 0xb57280]
mov esi, dword [edx*4 + str._f_f_f_f_f]
mov dword [esp + 0x24], edx
add ecx, dword [esp + 0x14]
sete al
mov ecx, eax
xor ecx, 0x606064cd
lea ebx, [ecx + eax*2 + 0x1020]
mov eax, 1
xor ebx, dword [edx*4 + 0xb572c0]
mov edx, 1
mov ecx, ebx
and cl, 7
shl eax, cl
movzx ebp, cl
xor cl, 7
shl edx, cl
movzx ecx, byte [edi + esi - 1]
bt ecx, ebp
jb 0x801f3f
mov dword [esp + 0x10], eax
mov al, byte [edi + esi - 1]
mov ecx, eax
or cl, dl
lock cmpxchg byte [edi + esi - 1], cl
jne 0x801ec1
mov ecx, dword [esp + 0x10]
movzx eax, al
test edx, eax
je 0x801ee3
movzx eax, byte [edi + esi - 1]
test ecx, eax
je 0x801ed8
jmp 0x801f3f
movzx eax, byte [edi + esi - 1]
test ecx, eax
jne 0x801f39
lea ecx, [esi - 4]
shr ecx, 2
je 0x801f31
xor eax, eax
mov ebp, edi
mov dword [esp + 0x20], ecx
mov ecx, ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [ebp]
mov dword [esp], ebx
xor ebp, ebx
mov dword [ecx], ebp
mov ecx, eax
not ebp
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
shr ebx, cl
mov ecx, dword [esp + 0x20]
or ebx, dword [esp]
imul ebx, ebp
mov ebp, dword [esp + 0x28]
add ebp, 4
cmp eax, ecx
jne 0x801efc
mov eax, dword [esp + 0x10]
or byte [edi + esi - 1], al
not dl
and byte [edi + esi - 1], dl
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 5
jne 0x801e5d
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x3c], 0x32
mov ecx, 0xbb8e98
mov esi, dword [eax + 4]
mov eax, 0xc26bb7
cmovl ecx, eax
push ecx
mov edi, dword [esp + 0x38]
push edi
push dword [esp + 0x38]
call fcn.00783420
add esp, 0xc
mov ecx, edi
call fcn.00783170
mov ebx, dword [esp + 8]
add eax, dword [esp + 0x2c]
lea edx, [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x40], eax
push dword [esi]
call fcn.0080f060
add esp, 4
movsx eax, byte [esi + 0xd]
mov dword [esp], esi
mov edi, dword [eax*4 + 0xb504fc]
mov ecx, edi
call fcn.00783170
mov esi, dword [esp + 0x40]
mov ebp, eax
lea eax, [ebx + esi]
push ebp
push edi
push eax
call fcn.0098a270
add esp, 0xc
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
add esi, ebp
mov dword [esp + 0x40], esi
lea ebp, [ebx + esi]
sub ecx, esi
cmp word [eax + 0x2a], 2
jl 0x80206a
mov edi, dword [esp]
mov edx, 1
mov dword [esp], edx
push dword [esp + 0x18]
push ebp
push ecx
call fcn.00783420
add esp, 0xc
mov ecx, ebp
call fcn.00783170
add eax, esi
mov ecx, ebx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], eax
push dword [edi + 0x14]
call fcn.0080f060
add esp, 4
movsx eax, byte [edi + 0x21]
lea edi, [edi + 0x14]
mov ebp, dword [eax*4 + 0xb504fc]
mov ecx, ebp
call fcn.00783170
mov ebx, eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 8]
lea eax, [eax + esi]
push ebx
push ebp
push eax
call fcn.0098a270
mov edx, dword [esp + 0xc]
add esp, 0xc
mov eax, dword [esp + 0xc]
add esi, ebx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
inc edx
mov dword [esp + 0x40], esi
movsx eax, word [eax + 0x2a]
sub ecx, esi
lea ebp, [ebx + esi]
cmp edx, eax
jl 0x801fea
mov edx, fcn.007abb60
mov edi, ecx
xor eax, eax
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007abb60
movzx ecx, byte [0xbb8f0b]
mov esi, dword [esp + 0x38]
setne al
bt ecx, eax
jb 0x802161
mov al, byte [0xbb8f0b]
mov ecx, edx
mov ah, 1
add ecx, fcn.007abb60
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8f0b], ah
jne 0x80209c
mov ecx, fcn.007abb60
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.007abb60
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8020f8
mov edx, ecx
xor eax, eax
add edx, fcn.007abb60
movzx edx, byte [0xbb8f0b]
setne al
bt edx, eax
jae 0x8020dd
jmp 0x802161
xor eax, eax
add ecx, fcn.007abb60
movzx ecx, byte [0xbb8f0b]
setne al
bt ecx, eax
jb 0x802142
mov eax, fcn.007abb60
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007abb60
mov al, 1
sete cl
xor ecx, 0xe2ab94d1
add ecx, 0x440
xor dword [0xbb8f04], ecx
and cl, 7
shl al, cl
or byte [0xbb8f0b], al
mov eax, fcn.007abb60
not eax
and eax, 1
add eax, fcn.007abb60
mov al, 0xfe
setne cl
xor cl, 7
rol al, cl
and byte [0xbb8f0b], al
push esi
push 0xbb8f04
push ebp
push edi
call fcn.00783420
add esp, 0x10
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00989fe9
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret