Function at 0x784aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0xbd33e0]
mov ecx, dword [esp + 0x40]
xor eax, esp
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call fcn.007a0610
test eax, eax
jne 0x784ad9
mov ebx, 0xc0a
jmp 0x784dd9
mov ecx, fcn.007aacc0
xor esi, esi
mov dword [esp + 4], eax
and ecx, 1
inc ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
xor eax, eax
mov ebp, dword [esi*4 + 0xb559d0]
mov edi, dword [esi*4 + 0xb55b10]
mov dword [esp + 0x14], esi
xor ecx, fcn.007aacc0
sete al
mov ecx, eax
not ecx
and ecx, 0x405
lea edx, [eax + ecx*2 - 0x1ff54430]
mov eax, 1
xor edx, dword [esi*4 + 0xb51b80]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [ebp + edi - 1]
mov esi, dword [esp]
bt ecx, esi
jb 0x784bd7
mov dword [esp + 8], eax
mov al, byte [ebp + edi - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [ebp + edi - 1], cl
jne 0x784b5a
mov ecx, dword [esp + 8]
movzx eax, al
test ebx, eax
je 0x784b7c
movzx eax, byte [ebp + edi - 1]
test ecx, eax
je 0x784b71
jmp 0x784bd7
movzx eax, byte [ebp + edi - 1]
test ecx, eax
jne 0x784bd1
lea ecx, [edi - 4]
shr ecx, 2
je 0x784bc9
xor eax, eax
mov esi, ebp
mov dword [esp + 0x10], ecx
mov ecx, esi
mov dword [esp + 0x18], esi
mov esi, dword [esi]
mov dword [esp], edx
xor esi, edx
mov dword [ecx], esi
mov ecx, eax
not esi
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
shr edx, cl
mov ecx, dword [esp + 0x10]
or edx, dword [esp]
imul edx, esi
mov esi, dword [esp + 0x18]
add esi, 4
cmp eax, ecx
jne 0x784b95
mov eax, dword [esp + 8]
or byte [ebp + edi - 1], al
not bl
and byte [ebp + edi - 1], bl
mov esi, dword [esp + 0x14]
inc esi
cmp esi, 0x50
jne 0x784aec
mov eax, dword [0xc26a74]
cmp eax, 2
je 0x784c27
call fcn.00783aa0
test eax, eax
jne 0x784c27
mov edi, dword [esp + 4]
lea ebx, [esp + 0x20]
lea ebp, [esp + 0x1c]
push edi
call dword [0xbb3570]
cmp eax, 0xffffffff
je 0x784c3f
test al, 0x10
jne 0x784c9c
push edi
call dword [0xbb34ec]
test eax, eax
je 0x784c8b
xor ebx, ebx
jmp 0x784c56
mov edi, dword [esp + 4]
lea ebx, [esp + 0x20]
lea ebp, [esp + 0x1c]
push edi
call dword [0xbb357c]
cmp eax, 0xffffffff
jne 0x784c69
call dword [0xbb35b8]
mov dword [esp + 0x1c], eax
or eax, 1
mov ebx, 0x170a
cmp eax, 3
jne 0x784c9c
mov ecx, dword [esp + 0x20]
mov edx, 0x375b
call fcn.0079d3f0
jmp 0x784dd0
test al, 0x10
jne 0x784c9c
push edi
call dword [0xbb34f8]
test eax, eax
je 0x784c7c
xor ebx, ebx
jmp 0x784c56
mov ecx, ebx
mov edx, ebp
call fcn.0079d260
test eax, eax
jne 0x784c33
jmp 0x784c9c
mov ecx, ebx
mov edx, ebp
call fcn.0079d260
test eax, eax
jne 0x784c04
mov edx, fcn.007e4480
movzx ecx, byte [0xbb4b6f]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
setne al
bt ecx, eax
jb 0x784dac
mov al, byte [0xbb4b6f]
cmp edx, 3
mov ah, 1
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4b6f], ah
jne 0x784cc4
mov ecx, fcn.007e4480
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x784d15
movzx edx, byte [0xbb4b6f]
xor eax, eax
cmp ecx, 3
setne al
bt edx, eax
jae 0x784cfc
jmp 0x784dac
movzx edx, byte [0xbb4b6f]
xor eax, eax
cmp ecx, 3
setne al
bt edx, eax
jb 0x784d8e
mov eax, fcn.007e4480
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb4b60]
sete cl
xor ecx, 0xdabca049
add ecx, 0xf08
xor eax, ecx
mov edx, ecx
mov dword [0xbb4b60], eax
shr edx, 0x1f
not eax
mov ebx, dword [0xbb4b64]
or edx, ecx
and cl, 7
imul edx, eax
lea esi, [edx + edx]
xor ebx, edx
shr edx, 0x1e
mov dword [0xbb4b64], ebx
or esi, edx
not ebx
mov dl, 1
imul ebx, esi
shl dl, cl
xor dword [0xbb4b68], ebx
or byte [0xbb4b6f], dl
mov eax, fcn.007e4480
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
setne cl
xor cl, 7
rol al, cl
and byte [0xbb4b6f], al
mov edx, dword [esp + 0x1c]
mov ebx, 0xa0a
mov ecx, 0xa0a
push 0x3759
push dword [esp + 0x44]
push 0xbb4b60
call fcn.0079cac0
add esp, 0xc
push edi
call fcn.00780f60
add esp, 4
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00989fe9
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret