Function at 0x784040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc4
mov eax, dword [0x773564]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
imul eax, eax, 0x126
cmp dword [eax + 0x798370], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd8]
push edi
mov dword [esp + 0x14], esi
jne 0x784083
mov eax, 0xa2
jmp 0x78428e
cmp word [esp + 0xe4], 0
jne 0x7840df
push 0x80
lea ecx, [esp + 0x54]
push 0
push ecx
call fcn.00786f70
mov ax, word [esp + 0xec]
add esp, 0xc
cmp ax, 0x78
jbe 0x7840ba
mov eax, 0x1f
jmp 0x78428e
jne 0x7840c2
cmp byte [esi + 0x77], 0
jne 0x7840b0
movzx edx, ax
push edx
mov byte [esp + 0x5b], al
lea eax, [esp + 0x5c]
push esi
push eax
mov byte [esp + 0x62], 0
call fcn.00787470
add esp, 0xc
jmp 0x7840f0
cmp byte [esi + 0x7f], 0
jne 0x7840b0
mov ecx, 0x20
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push 0x19
push ecx
call fcn.00781e50
mov al, byte [esp + 0xf0]
add esp, 8
xor ebx, ebx
xor al, 0x2c
mov byte [esp + 0x13], al
lea ebp, [esp + 0x50]
jmp 0x784118
mov al, byte [esp + 0x13]
mov ecx, dword [ebp + 4]
mov byte [esp + 0x1c], al
mov eax, dword [ebp]
mov dl, bl
xor dl, 0x2c
mov dword [esp + 0x1d], eax
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x1b], dl
mov edx, dword [ebp + 8]
mov dword [esp + 0x29], eax
mov byte [esp + 0x19], 0x32
mov byte [esp + 0x1a], 0x2c
mov dword [esp + 0x21], ecx
mov dword [esp + 0x25], edx
xor eax, eax
lea ecx, [ecx]
xor byte [esp + eax + 0x1d], 0x2c
add eax, 1
cmp eax, 0x10
jl 0x784150
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x38]
mov byte [esp + 0x50], al
mov eax, dword [esp + 0xf8]
push edx
push eax
call fcn.00782010
add esp, 0x28
test eax, eax
jne 0x7842a9
add ebx, 1
add ebp, 0x10
cmp ebx, 8
jl 0x784114
mov cl, byte [esp + 0x13]
mov byte [esp + 0x1c], cl
sub esp, 0x1c
mov byte [esp + 0x35], 0x32
mov byte [esp + 0x36], 0x2c
mov byte [esp + 0x37], 0x24
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
mov ecx, dword [esp + 0xf4]
lea edx, [esp + 0x50]
mov byte [esp + 0x4c], al
push edx
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.00782010
add esp, 0x28
xor ebx, ebx
lea ebp, [esp + 0x50]
lea esp, [esp]
mov al, byte [esp + 0x13]
mov dl, bl
add dl, 9
sub esp, 0x1c
xor dl, 0x2c
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], al
mov byte [esp + 0x35], 0x32
mov byte [esp + 0x36], 0x2c
mov ecx, 6
lea esi, [esp + 0x34]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.007821c0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x38]
mov byte [esp + 0x50], al
mov eax, dword [esp + 0xf8]
push edx
push eax
call fcn.00782010
add esp, 0x28
test eax, eax
jne 0x7842a9
mov ecx, dword [esp + 0x39]
mov edx, dword [esp + 0x3d]
mov eax, dword [esp + 0x41]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x45]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
add ebx, 1
add ebp, 0x10
cmp ebx, 8
jl 0x784200
mov edi, dword [esp + 0x14]
mov ecx, 0x20
lea esi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00786f61
add esp, 0xc4
ret 0x14
mov eax, 0x2d
jmp 0x78428e