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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x394
mov esi, dword [esp + 0x3ac]
lea eax, [esp + 0xc1]
mov dword [esp], eax
mov dword [esp + 8], 0x203
mov dword [esp + 4], 0
call fcn.007ce3c0
test esi, esi
jne 0x791989
mov eax, 3
sub eax, esi
xor eax, esi
je 0x791989
mov edx, 0xf900000e
jmp 0x791fc4
xor edx, edx
cmp dword [esp + 0x3b4], 0
je 0x791fc4
mov ebx, dword [esp + 0x3b8]
lea eax, [esp + 0xc2]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc3]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa2]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc5]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xa3]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc6]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c4]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x384]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x374]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x385]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x386]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x387]
lea ecx, [esp + 0x388]
mov ebp, 0
lea edx, [esp + 0x389]
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x38a]
mov dword [esp + 0x78], edx
lea esi, [esp + 0x38b]
mov dword [esp + 0x74], esi
lea edx, [esp + 0x38c]
mov dword [esp + 0x70], edx
lea edi, [esp + 0x38d]
mov dword [esp + 0x6c], edi
lea edx, [esp + 0x38e]
mov dword [esp + 0x68], edx
lea edx, [esp + 0x38f]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x390]
lea esi, [esp + 0x391]
mov dword [esp + 0x5c], esi
lea esi, [esp + 0x392]
lea edi, [esp + 0x393]
mov dword [esp + 0x54], edi
lea edi, [esp + 0xc7]
mov dword [esp + 0xc], edi
xor edi, edi
jmp 0x791af0
mov eax, ebp
and eax, 1
xor eax, ebp
cmp eax, 0xffffffff
setne al
movzx eax, al
add ebp, eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
test ebp, ebp
jne 0x791b1a
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov eax, ebp
or eax, 2
mov ecx, ebp
xor ecx, 2
add ecx, eax
jne 0x791ad0
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], edx
jmp 0x791b30
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
nop dword [eax + eax]
test ebx, ebx
jne 0x791b53
mov eax, 3
sub eax, ebx
xor eax, ebx
jne 0x791fa8
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x90]
mov al, byte [ebx + 0x1d]
mov byte [esp + 0xc1], al
mov al, byte [ebx + 0x1e]
mov byte [ebp], al
mov al, byte [ebx + 0x1f]
mov esi, dword [esp + 0x2c]
mov byte [esi], al
lea eax, [ebx + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 4], eax
mov ebp, ecx
mov dword [esp], ebp
mov dword [esp + 8], 0x200
call fcn.007c51d0
movzx eax, byte [esi]
test al, al
js 0x791faf
mov dword [esp + 0x24], ebx
movzx eax, ax
shl eax, 8
mov ecx, dword [esp + 0x34]
movzx ecx, byte [ecx]
lea ebx, [ecx + eax - 8]
mov dword [esp + 0x88], ebx
lea eax, [esp + 0xa1]
mov dword [esp], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
call fcn.007c51a0
mov al, byte [esp + 0xc1]
mov byte [esp + 0xa1], al
mov al, byte [ebp]
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x1c]
mov byte [ecx], al
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
movzx ebp, bx
mov dword [esp + 0x38], ebp
mov dword [esp + 8], ebp
lea esi, [esp + 0xb1]
mov dword [esp + 4], esi
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0079c6b0
mov dword [esp + 4], edi
mov eax, dword [esp + 0x3ac]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0079b660
lea eax, [esp + 0xc1]
lea eax, [ebp + eax + 5]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 8], 6
call fcn.007c7b90
mov edx, 0xfa000004
test eax, eax
jne 0x791fc4
mov edi, ebx
mov eax, edi
and eax, 0xf
mov ecx, edi
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
mov ebp, dword [esp + 0x8c]
je 0x791d8c
mov edx, edi
mov al, dl
and al, 0xf
mov esi, 0xffffffff
mov ecx, edx
and ecx, 0xfff0
mov edx, dword [esp + 0x3c]
lea ebx, [edx + ecx]
lea ecx, [edx + ecx - 0x10]
mov dword [esp + 0x50], ecx
movzx eax, al
mov dword [esp + 0x4c], eax
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x48], ecx
lea eax, [esp + eax + 0x384]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
lea eax, [edx + eax - 0x10]
mov dword [esp + 0x40], eax
jmp 0x791d83
mov dword [esp], ebp
mov edi, dword [esp + 0x50]
mov dword [esp + 4], edi
mov dword [esp + 8], 0x10
call fcn.007c51d0
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.007c51d0
mov edi, dword [esp + 0x90]
mov dword [esp + 4], edi
mov eax, dword [esp + 0x3ac]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.0079b660
mov dword [esp + 8], esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov edi, dword [esp + 0x88]
call fcn.007c51d0
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.007c51d0
add esi, 1
jb 0x791cf0
lea eax, [esp + 0xa1]
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], 0x10
call fcn.007c51d0
cmp dword [esp + 0x38], 0x10
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp + 0x10]
jb 0x791ec7
mov esi, dword [esp + 0x3c]
nop word cs:[eax + eax]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x10
call fcn.007c51d0
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x3ac]
mov dword [esp], eax
call fcn.0079b430
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0079b660
mov ecx, dword [esp + 0x8c]
mov al, byte [ecx]
xor byte [esi], al
mov eax, dword [esp + 0x84]
mov al, byte [eax]
xor byte [esi + 1], al
mov eax, dword [esp + 0x80]
mov al, byte [eax]
xor byte [esi + 2], al
mov eax, dword [esp + 0x98]
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 + 0x7c]
mov al, byte [eax]
xor byte [esi + 5], al
mov eax, dword [esp + 0x78]
mov al, byte [eax]
xor byte [esi + 6], al
mov eax, dword [esp + 0x74]
mov al, byte [eax]
xor byte [esi + 7], al
mov eax, dword [esp + 0x70]
mov al, byte [eax]
xor byte [esi + 8], al
mov eax, dword [esp + 0x6c]
mov al, byte [eax]
xor byte [esi + 9], al
mov eax, dword [esp + 0x68]
mov al, byte [eax]
xor byte [esi + 0xa], al
mov eax, dword [esp + 0x64]
mov al, byte [eax]
xor byte [esi + 0xb], al
mov eax, dword [esp + 0x60]
mov al, byte [eax]
xor byte [esi + 0xc], al
mov eax, dword [esp + 0x5c]
mov al, byte [eax]
xor byte [esi + 0xd], al
mov eax, dword [esp + 0x58]
mov al, byte [eax]
xor byte [esi + 0xe], al
mov eax, dword [esp + 0x54]
mov al, byte [eax]
xor byte [esi + 0xf], al
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esp + 8], 0x10
call fcn.007c51d0
add edi, 0xfffffff0
movzx eax, di
add esi, 0x10
cmp eax, 0xf
ja 0x791dd0
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
test al, al
mov ebp, dword [esp + 0x34]
mov edx, 0xfa000004
js 0x791f10
movzx ecx, ax
shl ecx, 8
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax]
or eax, ecx
movzx ecx, ax
mov esi, dword [esp + 0x38]
add esi, 0xfffffffe
cmp ecx, esi
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
jle 0x791f1a
jmp 0x791fc4
xor eax, eax
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx esi, ax
lea eax, [esi + 2]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.007ca0c0
mov dword [ebx], esi
mov al, byte [esp + 0xc1]
mov byte [ebx + 0x1d], al
movzx edx, byte [ebp]
mov byte [ebx + 0x1e], dl
mov eax, dword [esp + 0x2c]
mov al, byte [eax]
mov byte [ebx + 0x1f], al
test al, al
js 0x791fbe
mov esi, dword [esp + 0x30]
mov dword [esp + 4], esi
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], 0x200
call fcn.007c51d0
mov eax, edi
or eax, 2
mov ecx, edi
xor ecx, 2
add ecx, eax
setne al
movzx eax, al
add edi, eax
xor edx, edx
cmp edi, dword [esp + 0x3b4]
jae 0x791fc4
mov ecx, esi
add ebx, 0x220
mov eax, 3
sub eax, edi
xor eax, edi
jne 0x791b40
jmp 0x791fc4
mov edx, 0xf900000e
jmp 0x791fc4
mov eax, dword [esp + 0x34]
movzx edx, byte [eax]
or edx, 0xfb000000
jmp 0x791fc4
or edx, 0xfb000000
mov eax, edx
add esp, 0x394
pop esi
pop edi
pop ebx
pop ebp
ret