Function at 0x795820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xd9]
mov byte [esp + 0xd8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
mov ebp, dword [esp + 0x1fc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp + 0x1c], 0x1111ff2f
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x7958f4
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x7958f4
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x7958f4
mov ecx, dword [ebp + 0x84]
test ecx, ecx
jne 0x795aa0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0x68], eax
jne 0x795931
mov eax, dword [ebp + 8]
test eax, eax
jne 0x79591a
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 5
pop edi
mov dword [ebp + 0x1c], 0x1111ff1f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1e8
ret
mov dword [ebp + 0x6c], eax
mov ecx, dword [eax + 0x3c]
add eax, ecx
xor ebx, ebx
mov dword [ebp + 0x70], eax
cmp word [eax + 6], bx
jbe 0x7959c0
xor edi, edi
mov edx, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x68]
push 0x865fbc
mov eax, dword [edx + 0x3c]
add eax, edi
lea esi, [eax + ecx + 0xf8]
push esi
call fcn.007a5a90
add esp, 8
test eax, eax
jne 0x79596d
mov dword [ebp + 0x74], esi
push 0x865fb4
push esi
call fcn.007a5a90
add esp, 8
test eax, eax
jne 0x795982
mov dword [ebp + 0x78], esi
push 0x862610
push esi
call fcn.007a5a90
add esp, 8
test eax, eax
jne 0x795997
mov dword [ebp + 0x7c], esi
push 0x865fac
push esi
call fcn.007a5a90
add esp, 8
test eax, eax
jne 0x7959af
mov dword [ebp + 0x80], esi
mov edx, dword [ebp + 0x70]
xor eax, eax
inc ebx
add edi, 0x28
mov ax, word [edx + 6]
cmp ebx, eax
jb 0x795946
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x84], 0
test cl, 1
je 0x7959e5
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x7959e5
mov edx, dword [eax + 0x1c]
shr edx, 0xc
mov dword [ebp + 0x84], edx
test ch, 1
je 0x795a05
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x795a05
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x84]
shr eax, 0xc
add edx, eax
mov dword [ebp + 0x84], edx
test ch, 0x10
je 0x795a25
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x795a25
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x84]
shr edx, 0xc
add eax, edx
mov dword [ebp + 0x84], eax
test ecx, 0x10000
je 0x795a48
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x795a48
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x84]
shr eax, 0xc
add edx, eax
mov dword [ebp + 0x84], edx
test ecx, 0x100000
je 0x795a6e
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x795a6e
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x84]
shr ecx, 0xc
add eax, ecx
mov dword [ebp + 0x84], eax
mov ecx, dword [ebp + 0x84]
test ecx, ecx
ja 0x795aa0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x795a89
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], 0x1001
pop edi
mov dword [ebp + 0x1c], 0x1111ff1f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1e8
ret
mov eax, dword [esp + 0x200]
test eax, eax
je 0x795ab4
inc ecx
xor edx, edx
div ecx
mov ebx, eax
jmp 0x795ab6
xor ebx, ebx
mov edx, dword [ebp + 0x18]
test dl, 1
je 0x795b29
mov esi, dword [ebp + 0x70]
test esi, esi
je 0x795b29
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x104]
mov dword [esp + 0x100], 0
rep stosd dword es:[edi], eax
mov ecx, 0x3e
lea edi, [esp + 0x100]
test dl, 2
rep movsd dword es:[edi], dword [esi]
je 0x795b01
mov dword [esp + 0x128], eax
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0xb0]
push 0xffff0001
push edx
push 0
push eax
lea ecx, [esp + 0x110]
push 0xf8
push ecx
call fcn.00796050
add esp, 0x18
test byte [ebp + 0x18], 0x10
je 0x795b5a
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x795b5a
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x60]
push 0xffff0002
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
push ebx
push ecx
push edx
mov edx, dword [ebp + 0x68]
add eax, edx
push eax
call fcn.00796050
add esp, 0x18
mov eax, dword [ebp + 0x18]
test ah, 1
je 0x795b8d
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x795b8d
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x68]
lea ecx, [esp + 0x10]
push 0xffff0002
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, esi
push edx
call fcn.00796050
add esp, 0x18
mov eax, dword [ebp + 0x18]
test ah, 0x10
je 0x795bc3
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x795bc3
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x68]
lea ecx, [esp + 0x88]
push 0xffff0002
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, esi
push edx
call fcn.00796050
add esp, 0x18
test dword [ebp + 0x18], 0x10000
je 0x795bfa
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x795bfa
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x68]
lea ecx, [esp + 0xd8]
push 0xffff0002
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, esi
push edx
call fcn.00796050
add esp, 0x18
test dword [ebp + 0x18], 0x100000
je 0x795c31
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x795c31
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x68]
lea ecx, [esp + 0x38]
push 0xffff0002
push ecx
mov ecx, dword [eax + 8]
push ebx
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, esi
push edx
call fcn.00796050
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x38]
mov bl, byte [esp + eax + 0xd8]
mov dl, byte [esp + eax + 0x88]
xor cl, bl
mov bl, byte [esp + eax + 0x10]
xor cl, dl
mov dl, byte [esp + eax + 0x60]
xor cl, bl
mov bl, byte [esp + eax + 0xb0]
xor cl, dl
xor cl, bl
mov byte [eax + ebp + 0x30], cl
inc eax
cmp eax, 0x28
jb 0x795c33
mov edx, dword [ebp + 0x70]
mov ecx, edx
mov eax, dword [edx + 0x1c]
mov dword [ebp + 0x28], eax
mov edx, dword [ecx + 0x28]
mov eax, ecx
mov dword [ebp + 0x24], edx
mov edx, eax
mov ecx, dword [eax + 0x50]
mov dword [ebp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [ebp + 0x20], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [ebp + 0x5c]
pop edi
sub eax, ecx
mov dword [ebp + 0x1c], 0x1111ff1f
mov dword [ebp + 0x58], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1e8
ret