Function at 0x7d7d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
mov ebp, ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
call fcn.007e4800
test eax, eax
je 0x7d8167
mov ecx, ebp
mov edi, eax
call fcn.007f7590
test eax, eax
je 0x7d816f
mov edx, fcn.007b0fc0
mov ebx, eax
movzx ecx, byte [str.__Neb]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d7ead
mov al, byte [str.__Neb]
cmp edx, 1
mov ah, 1
seta cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [str.__Neb], ah
jne 0x7d7dbe
mov ecx, fcn.007b0fc0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
or dl, 4
add dl, 4
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d7e28
cmp ecx, 1
movzx edx, byte [str.__Neb]
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt edx, eax
jae 0x7d7e08
jmp 0x7d7ead
cmp ecx, 1
movzx ecx, byte [str.__Neb]
seta al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d7e86
mov eax, fcn.007b0fc0
xor ecx, ecx
mov dl, 1
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb7e78]
seta cl
or ecx, 0x21791bdc
add ecx, 0x804
xor eax, ecx
mov dword [0xbb7e78], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbb7e7c], eax
or byte [str.__Neb], dl
mov eax, fcn.007b0fc0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
rol al, cl
and byte [str.__Neb], al
mov edx, fcn.007ffde0
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb7e93]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d8011
mov al, byte [0xbb7e93]
mov dword [esp], ebx
xor ebx, ebx
cmp edx, 3
mov ah, 1
sete bl
mov ecx, ebx
not ecx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7e93], ah
jne 0x7d7ee4
mov ecx, fcn.007ffde0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d7f5c
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 3
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
movzx edx, byte [0xbb7e93]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7d7f37
jmp 0x7d8011
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb7e93]
mov ebx, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d7fe7
mov eax, fcn.007ffde0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x5e01f4cf
lea ecx, [eax + ecx*2 + 0x1040]
mov eax, dword [0xbb7e84]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb7e84], eax
not eax
imul edx, eax
mov eax, dword [0xbb7e88]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb7e88], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb7e8c], eax
or byte [0xbb7e93], dl
mov eax, fcn.007ffde0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb7e93], al
mov edx, 0x7916d0
xor eax, eax
and edx, 1
inc edx
mov ecx, edx
xor ecx, 0x7916d0
movzx ecx, byte [0xbb7ea3]
sete al
bt ecx, eax
jb 0x7d8134
mov al, byte [0xbb7ea3]
mov ecx, edx
mov ah, 1
xor ecx, 0x7916d0
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7ea3], ah
jne 0x7d803c
mov ecx, 0x7916d0
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x7916d0
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d809a
mov edx, ecx
xor eax, eax
xor edx, 0x7916d0
movzx edx, byte [0xbb7ea3]
sete al
bt edx, eax
jae 0x7d807c
jmp 0x7d8134
xor eax, eax
xor ecx, 0x7916d0
movzx ecx, byte [0xbb7ea3]
sete al
bt ecx, eax
jb 0x7d8116
mov edx, 0x7916d0
mov eax, dword [0xbb7e94]
xor ecx, ecx
mov dword [esp], ebx
and edx, 1
inc edx
xor edx, 0x7916d0
sete cl
mov edx, eax
xor edx, ecx
or ecx, 0x203e1a78
xor eax, ecx
xor edx, 0xdfc1e587
mov dword [0xbb7e94], eax
imul edx, ecx
and cl, 1
mov eax, dword [0xbb7e98]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb7e98], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb7e9c], eax
or byte [0xbb7ea3], dl
mov eax, 0x7916d0
and eax, 1
inc eax
xor eax, 0x7916d0
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbb7ea3], al
mov ecx, ebp
mov edx, 0x20
push 0
push edi
push dword [esi*4 + 0xb50568]
call fcn.008002d0
add esp, 0xc
test eax, eax
jne 0x7d816f
mov ecx, ebx
xor edx, edx
push 0xfffffffffffffff9
push edi
push 0
push 0
push esi
call fcn.007f75d0
add esp, 0x18
jmp 0x7d816a
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp]
mov edx, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00780810