Function at 0x791240
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x390
mov esi, dword [esp + 0x3a8]
lea eax, [esp + 0xc9]
mov dword [esp], eax
mov dword [esp + 8], 0x207
mov dword [esp + 4], 0
call fcn.007ce3c0
test esi, esi
jne 0x791289
mov eax, 3
sub eax, esi
xor eax, esi
je 0x791289
mov eax, 0xf900000e
jmp 0x79192a
xor eax, eax
cmp dword [esp + 0x3b4], 0
je 0x79192a
mov esi, dword [esp + 0x3b8]
lea ecx, [esp + 0xca]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xcb]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0xcc]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0xcd]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0xce]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0xcf]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xd5]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0xd6]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0xd7]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xaa]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xab]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x2d0]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x2e0]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2d1]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x2d2]
lea edx, [esp + 0x2d3]
lea edi, [esp + 0x2d4]
mov dword [esp + 0x94], edi
lea edi, [esp + 0x2d5]
mov dword [esp + 0x90], edi
lea ebx, [esp + 0x2d6]
mov dword [esp + 0x8c], ebx
lea edi, [esp + 0x2d7]
mov dword [esp + 0x88], edi
lea ebp, [esp + 0x2d8]
mov dword [esp + 0x84], ebp
lea edi, [esp + 0x2d9]
mov dword [esp + 0x80], edi
lea edi, [esp + 0x2da]
mov dword [esp + 0x7c], edi
lea edi, [esp + 0x2db]
lea ebx, [esp + 0x2dc]
mov dword [esp + 0x74], ebx
lea ebx, [esp + 0x2dd]
lea ebp, [esp + 0x2de]
mov dword [esp + 0x6c], ebp
lea ebp, [esp + 0x2df]
jmp 0x791420
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
add eax, ecx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x64], 0
test eax, eax
jne 0x791456
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov ecx, eax
or ecx, 2
mov edx, eax
xor edx, 2
add edx, ecx
jne 0x791400
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], edi
jmp 0x791470
mov dword [esp + 0x68], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
test esi, esi
jne 0x791483
mov eax, 3
sub eax, esi
xor eax, esi
jne 0x791925
movzx ecx, byte [esi + 0x2c]
mov eax, 0xfa000008
cmp ecx, 0x24
je 0x79192a
mov al, byte [esi + 0x26]
mov byte [esp + 0xc9], al
mov al, byte [esi + 0x27]
mov ecx, dword [esp + 0x44]
mov byte [ecx], al
mov al, byte [esi + 0x28]
mov ecx, dword [esp + 0x40]
mov byte [ecx], al
mov al, byte [esi + 0x29]
mov edi, dword [esp + 0x5c]
mov byte [edi], al
mov al, byte [esi + 0x2a]
mov ebx, dword [esp + 0x58]
mov byte [ebx], al
mov al, byte [esi + 0x2b]
mov ecx, dword [esp + 0x3c]
mov byte [ecx], al
mov al, byte [esi + 0x2c]
mov ebp, dword [esp + 0x54]
mov byte [ebp], al
lea eax, [esi + 0x2d]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 8], 0x200
call fcn.007c51d0
movzx edi, byte [edi]
movzx esi, byte [ebx]
shl esi, 8
lea ebx, [esi + edi + 0xfff9]
movzx eax, bx
inc eax
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.007ca0c0
call fcn.005bf590
mov ecx, dword [esp + 0x4c]
mov byte [ecx], al
call fcn.005bf590
mov ecx, dword [esp + 0x48]
mov byte [ecx], al
mov eax, dword [esp + 0x60]
mov byte [eax], bl
mov eax, dword [esp + 0x18]
mov byte [eax], bh
lea ebp, [esi + edi + 0xfffc]
movzx eax, bp
cmp eax, 0xf
ja 0x791579
or esi, edi
mov ecx, 0xffff0014
sub ecx, esi
movzx edx, cx
movzx ecx, cl
add eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call fcn.007c51a0
mov bp, 0x10
lea esi, [esp + 0xa9]
mov dword [esp], esi
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
call fcn.007c51a0
mov al, byte [esp + 0xc9]
mov byte [esp + 0xa9], al
mov eax, dword [esp + 0x4c]
mov al, byte [eax]
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
mov eax, dword [esp + 0x48]
mov al, byte [eax]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
movzx ecx, bp
mov eax, 0xf9000022
cmp ecx, 0x10
jb 0x79192a
mov dword [esp + 0x2c], ecx
xor edi, edi
mov ebx, 0xffffffff
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], eax
and eax, 0xfff0
shr eax, 4
mov dword [esp + 0x24], eax
shl eax, 4
movzx eax, ax
mov dword [esp + 0x20], eax
jmp 0x79161d
inc edi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 8], 0x10
call fcn.007c51d0
dec ebx
mov eax, edi
and eax, 1
xor eax, ebx
setne al
movzx eax, al
cmp edi, eax
jb 0x791600
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0x38]
nop dword [eax]
mov al, byte [ebx]
xor byte [esi], al
mov eax, dword [esp + 0x98]
mov al, byte [eax]
xor byte [esi + 1], al
mov eax, dword [esp + 0xa4]
mov al, byte [eax]
xor byte [esi + 2], al
mov eax, dword [esp + 0xa0]
mov al, byte [eax]
xor byte [esi + 3], al
mov eax, dword [esp + 0x94]
mov al, byte [eax]
xor byte [esi + 4], al
mov eax, dword [esp + 0x90]
mov al, byte [eax]
xor byte [esi + 5], al
mov eax, dword [esp + 0x8c]
mov al, byte [eax]
xor byte [esi + 6], al
mov eax, dword [esp + 0x88]
mov al, byte [eax]
xor byte [esi + 7], al
mov eax, dword [esp + 0x84]
mov al, byte [eax]
xor byte [esi + 8], al
mov eax, dword [esp + 0x80]
mov al, byte [eax]
xor byte [esi + 9], al
mov eax, dword [esp + 0x7c]
mov al, byte [eax]
xor byte [esi + 0xa], al
mov eax, dword [esp + 0x78]
mov al, byte [eax]
xor byte [esi + 0xb], al
mov eax, dword [esp + 0x74]
mov al, byte [eax]
xor byte [esi + 0xc], al
mov eax, dword [esp + 0x70]
mov al, byte [eax]
xor byte [esi + 0xd], al
mov eax, dword [esp + 0x6c]
mov al, byte [eax]
xor byte [esi + 0xe], al
mov eax, dword [esp + 0x68]
mov al, byte [eax]
xor byte [esi + 0xf], al
mov dword [esp + 4], edi
mov eax, dword [esp + 0x3a8]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0079b660
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x10
call fcn.007c51d0
add ebp, 0xfffffff0
movzx eax, bp
add esi, 0x10
cmp eax, 0xf
ja 0x791640
mov ebp, edi
mov esi, dword [esp + 0x24]
shl esi, 4
movzx eax, si
mov edx, dword [esp + 0x28]
movzx ecx, dx
cmp ecx, eax
je 0x7917d7
sub edx, esi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
lea esi, [ecx + eax + 0x10]
movzx edi, dx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.007c51d0
mov eax, 0x10
sub eax, edi
lea ecx, [esi - 0x10]
mov dword [esp + 0x28], ecx
lea ecx, [esi + edi - 0x10]
lea edx, [esp + edi + 0x2d0]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.007c51d0
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x3a8]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0079b660
mov dword [esp + 8], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.007c51d0
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], 0x10
call fcn.007c51d0
mov edi, dword [esp + 0x2c]
mov dword [esp + 8], edi
lea esi, [esp + 0xb9]
mov dword [esp + 4], esi
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0079c6b0
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x3a8]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0079b660
lea eax, [esp + 0xc9]
lea eax, [edi + eax + 0xd]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], 6
call fcn.007c51d0
mov eax, dword [esp + 0x3b0]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
lea ecx, [edi + 0x13]
mov eax, dword [esp + 0x5c]
mov byte [eax], cl
movzx eax, ch
mov edx, dword [esp + 0x58]
mov byte [edx], al
mov edx, dword [esp + 0x54]
mov byte [edx], 0x24
movzx ecx, cl
shl eax, 8
or eax, ecx
movzx eax, ax
add eax, 0xfffffff9
mov esi, dword [esp + 0x34]
mov dword [esi], eax
mov ecx, dword [esi + 4]
cmp ecx, 0x10
lea edx, [ecx + 0xa]
mov ecx, 0x1a
cmovae ecx, edx
mov dword [esi + 4], ecx
cmp eax, 0x200
mov eax, 0xfa000003
ja 0x79192a
mov dword [esp + 0x38], ebp
mov dword [esp + 0x9c], ebx
cmp ecx, 0x200
ja 0x79192a
mov al, byte [esp + 0xc9]
mov byte [esi + 0x26], al
mov eax, dword [esp + 0x44]
mov al, byte [eax]
mov byte [esi + 0x27], al
mov eax, dword [esp + 0x40]
mov al, byte [eax]
mov byte [esi + 0x28], al
mov eax, dword [esp + 0x5c]
mov al, byte [eax]
mov byte [esi + 0x29], al
mov eax, dword [esp + 0x58]
mov al, byte [eax]
mov byte [esi + 0x2a], al
mov eax, dword [esp + 0x3c]
mov al, byte [eax]
mov byte [esi + 0x2b], al
mov eax, dword [esp + 0x54]
mov al, byte [eax]
mov byte [esi + 0x2c], al
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 8], 0x200
call fcn.007c51d0
add esi, 0x230
mov ecx, dword [esp + 0x64]
inc ecx
mov dword [esp + 0x64], ecx
xor eax, eax
cmp ecx, dword [esp + 0x3b4]
jb 0x791470
jmp 0x79192a
mov eax, 0xf900000e
add esp, 0x390
pop esi
pop edi
pop ebx
pop ebp
ret