Function at 0x7fb650
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [0xbd33e0]
mov ebx, edx
mov ebp, ecx
xor eax, esp
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
mov esi, dword [edx + 0xc]
call fcn.007fdd80
test eax, eax
jne 0x7fbd54
mov ecx, ebp
mov edx, ebx
mov dword [esp + 0x24], esi
call fcn.007fddd0
mov ecx, dword [ebx + 0xc]
mov esi, eax
call fcn.007fb610
mov ecx, dword [ebp]
mov edi, eax
lea edx, [eax + eax*4 + 1]
push 0
call fcn.0078a8a0
add esp, 4
mov ecx, dword [ebp]
mov edx, ebx
mov ebx, eax
cmp byte [ecx + 0x51], 0
jne 0x7fbd40
mov ecx, dword [esp + 0x60]
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], esi
xor esi, esi
mov dword [esp + 8], ebp
lea ebp, [esp + 0x38]
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x5c], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
cmove eax, esi
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x14], ebx
push ebx
push eax
push 3
call fcn.007fde50
add esp, 0x10
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.007fc040
add esp, 4
test edi, edi
mov edx, edi
jg 0x7fb729
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
jmp 0x7fb73b
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 4]
cmp dword [ebx + esi*4], esi
jne 0x7fb73b
inc esi
cmp esi, edx
jl 0x7fb731
cmp esi, edx
mov ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp], edx
mov dword [esp + 0x20], eax
je 0x7fb7a7
mov edx, dword [esp]
mov ecx, ebp
call fcn.007fa700
mov edx, dword [esp]
mov dword [esp + 0xc], eax
test edx, edx
jg 0x7fb767
mov ebx, dword [esp + 0x10]
jmp 0x7fb7a3
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + esi*4]
mov edx, 0x4d
lea ebp, [esi + ecx]
mov ecx, dword [esp + 4]
add eax, edi
push 0
push eax
push ebp
call fcn.007d10f0
mov edx, dword [esp + 0xc]
add esp, 0xc
inc esi
cmp esi, edx
jne 0x7fb771
mov ebp, dword [esp + 8]
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], 5
jne 0x7fbab0
mov ebx, dword [esp + 0x1c]
mov ecx, ebp
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x14]
call fcn.007d3920
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.007fb640
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov dword [esp], 0
cmp ecx, dword [esp + 0x5c]
je 0x7fb803
mov ecx, ebp
call fcn.007fcfa0
mov ecx, edi
mov edx, 0x65
mov dword [esp], eax
push eax
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.007d10f0
add esp, 0xc
mov ecx, dword [ebx + 0xc]
call fcn.007fcfe0
cmp dword [esi], 0
mov edi, dword [esp]
mov byte [esp + 0x1c], al
jle 0x7fba6c
mov ebx, fcn.0078adf0
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp], edi
imul ebx, ebx
and ebx, 3
mov dword [esp + 0x30], ebx
cmp byte [esp + 0x1c], 0x45
mov dword [esp + 0x24], ebp
jne 0x7fb980
xor eax, eax
cmp ebx, 3
movzx edx, byte [0xbb7d13]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7fb931
mov al, byte [0xbb7d13]
xor ecx, ecx
cmp ebx, 3
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb7d13], dl
jne 0x7fb868
xor ecx, ecx
cmp ebx, 3
movzx eax, al
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 2]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7fb8ca
xor eax, eax
cmp ebx, 3
movzx edx, byte [0xbb7d13]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jae 0x7fb8ab
jmp 0x7fb931
xor eax, eax
cmp ebx, 3
movzx edx, byte [0xbb7d13]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7fb913
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x861
lea ecx, [eax + ecx*2 - 0x39822f66]
mov al, 1
xor dword [0xbb7d0c], ecx
and cl, 7
shl al, cl
or byte [0xbb7d13], al
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb7d13], al
mov ebx, dword [esp + 8]
mov ecx, ebx
call fcn.007fcfa0
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, ebx
mov edi, eax
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x30]
lea eax, [ebp + ebp*4]
mov edx, dword [esi + eax*4 + 4]
push edi
call fcn.007f7750
add esp, 4
mov ecx, dword [esp + 4]
mov edx, 0x5a
push 0xffffffffffffffff
push 0xbb7d0c
push 0
push 1
push edi
call fcn.007f75d0
add esp, 0x14
jmp 0x7fb99b
lea eax, [ebp + ebp*4]
mov ecx, dword [esp + 8]
mov edx, dword [esi + eax*4 + 4]
lea eax, [esp + 0x34]
push eax
call fcn.007fa200
add esp, 4
mov edi, eax
cmp dword [esp], 0
je 0x7fb9c9
lea eax, [ebp + ebp*4]
mov ecx, dword [esi + eax*4 + 4]
call fcn.007fe7a0
test eax, eax
je 0x7fb9c9
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, 0x65
push eax
push edi
push eax
call fcn.007d10f0
add esp, 0xc
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 8]
call fcn.007fc440
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x5c]
jne 0x7fb9e7
mov eax, dword [esi]
dec eax
cmp ebp, eax
jge 0x7fba19
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
xor eax, eax
cmp ebp, edi
mov ecx, esi
setne al
lea edx, [eax + eax + 0x33]
push 0xfffffffffffffffe
push dword [esp + 0x18]
push edi
push dword [esp + 0x34]
push ebp
call fcn.007f75d0
add esp, 0x14
mov eax, dword [esp + 0x2c]
movsx eax, byte [eax]
jmp 0x7fba4e
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 4]
xor eax, eax
cmp ecx, edi
mov ebp, ecx
mov ecx, esi
setne al
lea edx, [eax + eax + 0x32]
push 0xfffffffffffffffe
push dword [esp + 0x18]
push edi
push dword [esp + 0x68]
push ebp
call fcn.007f75d0
add esp, 0x14
mov eax, dword [esp + 0x2c]
movsx eax, byte [eax]
or eax, 0x10
movzx edx, ax
mov ecx, esi
call fcn.0078e010
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edi, dword [esp]
inc ebp
cmp ebp, dword [esi]
jl 0x7fb833
mov esi, dword [esp + 4]
test edi, edi
je 0x7fba93
mov ecx, esi
mov edx, 0x32
push dword [esp + 0x60]
push edi
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x5c]
mov ecx, esi
call fcn.007f7790
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.007fbd70
mov ebp, dword [esp + 8]
mov edx, edi
mov ecx, ebp
call fcn.007fc440
jmp 0x7fbd1f
mov esi, dword [esp + 0x5c]
xor ecx, ecx
cmp esi, dword [esp + 0x60]
je 0x7fbad2
mov ecx, ebp
mov esi, eax
call fcn.007fb640
mov edx, dword [esp]
mov ebx, dword [esp + 0x10]
mov ecx, eax
mov eax, esi
mov esi, ecx
cmp dword [ebp + 0x24], 0
jne 0x7fbd27
mov ebx, dword [esp + 0x1c]
test edx, edx
mov dword [esp + 0x14], ecx
jle 0x7fbb1e
xor ebp, ebp
mov ecx, dword [ebx + 0xc]
mov edx, ebp
call fcn.007fcf30
mov ecx, eax
call fcn.007fe7a0
test eax, eax
je 0x7fbb18
mov eax, dword [esp + 0xc]
mov ecx, edi
mov edx, 0x32
lea eax, [ebp + eax]
push esi
push eax
call fcn.007d10d0
add esp, 8
inc ebp
cmp ebp, dword [esp]
jne 0x7fbaea
cmp dword [esp + 0x18], 1
jne 0x7fbb57
mov esi, dword [esp + 0x38]
mov ecx, edi
mov edx, 0x1f
push dword [esp + 0xc]
push dword [esp + 0x60]
push esi
call fcn.007d10f0
add esp, 0xc
mov ecx, edi
mov edx, 0xb
call fcn.007f75b0
mov ebp, dword [esp + 8]
mov dword [esp + 0x1c], eax
jmp 0x7fbbc2
mov ecx, edi
mov edi, dword [esp]
mov edx, 0x5a
push edi
push dword [esp + 0x30]
push 0
push edi
mov esi, dword [esp + 0x1c]
push esi
call fcn.007f75d0
add esp, 0x14
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 8]
cmp eax, dword [esp + 0x60]
jne 0x7fbba2
mov ecx, dword [esp + 4]
mov edx, 0x1d
push edi
push esi
push eax
push ebx
call fcn.0078dfd0
add esp, 0x10
jmp 0x7fbd1f
mov ecx, dword [esp + 4]
mov edx, 0x1e
push edi
push esi
push 0
push ebx
call fcn.0078dfd0
add esp, 0x10
mov edi, dword [esp + 4]
mov esi, ebx
mov dword [esp + 0x1c], eax
cmp dword [esp], 1
mov edx, dword [esp + 0x14]
jne 0x7fbbec
mov eax, dword [esp + 0x40]
test eax, eax
je 0x7fbbec
mov edx, 0x33
mov ecx, edi
push dword [esp + 0x5c]
push eax
call fcn.007d10d0
mov edx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x60]
jne 0x7fbc07
mov ecx, edi
mov edx, eax
call fcn.007f7790
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
test edx, edx
je 0x7fbc16
mov ecx, edi
call fcn.007fbd70
mov eax, dword [esp + 0x5c]
mov ecx, edi
mov edx, 0x25
push eax
mov dword [esp + 0x1c], esi
push esi
mov esi, eax
call fcn.007d10d0
add esp, 8
mov ecx, dword [esp]
mov dword [esp + 0x28], eax
cmp ecx, 2
jl 0x7fbc45
mov ecx, ebp
call fcn.007fb640
mov ecx, dword [esp]
mov esi, eax
test ecx, ecx
jle 0x7fbcbe
mov ebx, dword [esp + 4]
xor edi, edi
mov dword [esp + 0x14], esi
mov ecx, ebp
call fcn.007fcfa0
mov ecx, dword [esp + 0x24]
mov edx, edi
mov ebp, eax
call fcn.007fcf30
mov ecx, dword [esp + 8]
mov edx, eax
call fcn.007d3920
mov esi, eax
mov ecx, ebx
mov edx, 0x59
push ebp
push edi
push dword [esp + 0x20]
call fcn.007d10f0
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov edx, 0x34
lea eax, [edi + eax]
push 0xfffffffffffffffe
push esi
mov esi, dword [esp + 0x1c]
push ebp
push esi
push eax
call fcn.007f75d0
add esp, 0x14
mov ecx, dword [esp + 8]
mov edx, ebp
mov ebp, dword [esp + 8]
call fcn.007fc440
inc edi
cmp edi, dword [esp]
jne 0x7fbc53
mov ebx, dword [esp + 4]
mov edx, 0xb
mov ecx, ebx
push dword [esp + 0x60]
push 0
call fcn.007d10d0
add esp, 8
cmp dword [esp], 2
jl 0x7fbd14
mov ecx, ebx
mov edx, esi
call fcn.007fbd70
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, 5
inc eax
push eax
push dword [esp + 0x1c]
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0xb
push dword [esp + 0x5c]
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.007f75c0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
cmp ecx, eax
je 0x7fbd40
mov edx, ecx
mov ecx, ebp
call fcn.007fc440
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp]
mov edx, ebx
call fcn.00780810
mov ecx, dword [ebp]
mov edx, esi
call fcn.00780810
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00989fe9
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret