Function at 0x7843e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc8
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd4]
push ebx
push ebp
mov ebp, dword [esp + 0xd8]
push esi
push edi
push 0x7f
lea ecx, [esp + 0x59]
push 0
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x60], 0
call fcn.00786f70
mov edx, dword [esp + 0xe8]
imul edx, edx, 0x126
add esp, 0xc
cmp dword [edx + 0x798370], 0
jne 0x784444
mov eax, 0xa2
jmp 0x78461f
lea eax, [esp + 0x1c]
push 0x19
push eax
call fcn.00781e50
mov al, byte [esp + 0xf4]
add esp, 8
xor ebx, ebx
xor al, 0x2c
mov byte [esp + 0x13], al
jmp 0x784468
mov al, byte [esp + 0x13]
mov edx, dword [ebp]
mov cl, bl
xor cl, 0x2c
mov byte [esp + 0x20], al
mov eax, dword [ebp + 4]
mov byte [esp + 0x1f], cl
mov ecx, dword [ebp + 8]
mov dword [esp + 0x21], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x25], eax
mov byte [esp + 0x1d], 0x33
mov byte [esp + 0x1e], 0x2c
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], edx
xor eax, eax
lea ecx, [ecx]
xor byte [esp + eax + 0x21], 0x2c
add eax, 1
cmp eax, 0x10
jl 0x7844a0
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x38]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
mov edx, dword [esp + 0xf8]
mov byte [esp + 0x50], al
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00782010
add esp, 0x28
test eax, eax
jne 0x7845f6
add ebx, 1
add ebp, 0x10
cmp ebx, 8
jl 0x784464
mov al, byte [esp + 0x13]
sub esp, 0x1c
mov byte [esp + 0x3c], al
mov byte [esp + 0x39], 0x33
mov byte [esp + 0x3a], 0x2c
mov byte [esp + 0x3b], 0x24
mov ecx, 6
lea esi, [esp + 0x38]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
mov byte [esp + 0x54], al
mov eax, dword [esp + 0xfc]
push edx
push eax
call fcn.00782010
add esp, 0x28
test eax, eax
jne 0x78461f
xor ebx, ebx
lea ebp, [esp + 0x54]
mov dl, byte [esp + 0x13]
mov cl, bl
add cl, 9
xor cl, 0x2c
mov byte [esp + 0x1f], cl
sub esp, 0x1c
mov byte [esp + 0x3c], dl
mov byte [esp + 0x39], 0x33
mov byte [esp + 0x3a], 0x2c
mov ecx, 6
lea esi, [esp + 0x38]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
mov edx, dword [esp + 0xf8]
mov byte [esp + 0x50], al
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.00782010
add esp, 0x28
test eax, eax
jne 0x7845f6
mov eax, dword [esp + 0x3d]
mov ecx, dword [esp + 0x41]
mov edx, dword [esp + 0x45]
mov dword [ebp], eax
mov eax, dword [esp + 0x49]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
add ebx, 1
add ebp, 0x10
cmp ebx, 8
jl 0x784551
cmp word [esp + 0xe8], 0
jne 0x7845fd
movzx ax, byte [esp + 0x5b]
cmp ax, 0x78
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
ja 0x7845f6
movzx edx, ax
push edx
lea eax, [esp + 0x60]
jmp 0x78460f
mov eax, 0x2e
jmp 0x78461f
mov edx, dword [esp + 0x18]
mov word [edx], 0x80
push 0x80
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00787470
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00786f61
add esp, 0xc8
ret 0x14