Function at 0x795c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
mov eax, dword [0xbd33e0]
mov ebx, edx
mov ebp, ecx
xor eax, esp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [edx], 0
call fcn.007808b0
mov esi, eax
test eax, eax
jne 0x796848
xor edx, edx
test di, di
js 0x795ce3
mov al, byte [0xbb32f4]
test al, al
je 0x795ce3
mov edx, 1
test edi, 0x10000
jne 0x795ce3
movzx edx, byte [0xbb32f5]
test edi, 0x40000
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebp
mov dword [esp], edx
je 0x795cfe
and edi, 0xfffdffff
jmp 0x795d0d
cmp dword [0xbb33b8], 0
je 0x795d11
or edi, 0x20000
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], edi
and edi, 0xfff600e7
mov ecx, 0x200
xor edx, edx
xor esi, esi
mov dword [esp + 0x34], edi
call fcn.007870a0
test eax, eax
je 0x79680b
cmp dword [esp], 0
mov ebp, eax
jne 0x795e12
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, 0x81b240
mov esi, 3
sub esi, eax
xor eax, eax
movzx edx, byte [0xbb3b93]
mov dword [esp + 4], edi
mov ecx, esi
xor ecx, 0x81b240
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x795edf
mov al, byte [0xbb3b93]
mov edi, esi
xor edx, edx
xor edi, 0x81b240
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [edx + ecx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb3b93], dl
jne 0x795d87
mov edx, 0x81b240
mov ecx, 3
xor ebx, ebx
movzx eax, al
sub ecx, edx
mov esi, ecx
xor esi, 0x81b240
sete bl
mov edx, ebx
xor edx, 1
lea edx, [ebx + edx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x795e35
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb3b93]
xor edx, 0x81b240
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x795de6
jmp 0x795edf
mov ecx, 1
call fcn.00780a40
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x795d44
push ebp
call fcn.00780f60
add esp, 4
jmp 0x79680b
xor eax, eax
xor ecx, 0x81b240
movzx edx, byte [0xbb3b93]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x795eaf
mov eax, 0x81b240
mov ecx, 3
mov esi, dword [str.2_p0]
sub ecx, eax
xor eax, eax
xor ecx, 0x81b240
sete al
mov ecx, eax
not ecx
and ecx, 0x231
lea ecx, [eax + ecx*2 + 0x713e5c0e]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [str.2_p0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb3b8c], edx
mov dl, 1
shl dl, cl
or byte [0xbb3b93], dl
mov eax, 0x81b240
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x81b240
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb3b93], al
mov esi, fcn.007ffd90
xor eax, eax
movzx edx, byte [0xbbdf4f]
not esi
and esi, 1
mov ecx, esi
add ecx, fcn.007ffd90
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x796041
mov al, byte [0xbbdf4f]
mov edx, esi
xor ecx, ecx
add edx, fcn.007ffd90
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbbdf4f], dl
jne 0x795f18
mov ecx, fcn.007ffd90
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007ffd90
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x795f9e
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbdf4f]
add edx, fcn.007ffd90
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x795f73
jmp 0x796041
xor eax, eax
add ecx, fcn.007ffd90
movzx edx, byte [0xbbdf4f]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x796015
mov ecx, fcn.007ffd90
xor eax, eax
mov esi, dword [0xbbdf44]
not ecx
and ecx, 1
add ecx, fcn.007ffd90
sete al
mov ecx, eax
not ecx
and ecx, 0x703
lea ecx, [eax + ecx*2 + 0x5d01a03c]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbbdf44], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbbdf48], edx
mov dl, 1
shl dl, cl
or byte [0xbbdf4f], dl
mov eax, fcn.007ffd90
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007ffd90
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbdf4f], al
mov esi, fcn.007fdcc0
xor eax, eax
movzx edx, byte [0xbbdf5b]
imul esi, esi
and esi, 3
cmp esi, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x796191
mov al, byte [0xbbdf5b]
xor ecx, ecx
cmp esi, 2
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbbdf5b], dl
jne 0x796077
mov ecx, fcn.007fdcc0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7960f2
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbbdf5b]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7960cb
jmp 0x796191
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbbdf5b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x796165
mov ecx, fcn.007fdcc0
xor eax, eax
mov esi, dword [0xbbdf50]
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x801
lea ecx, [eax + ecx*2 - 0x4e570e3a]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbbdf50], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbbdf54], edx
mov dl, 1
shl dl, cl
or byte [0xbbdf5b], dl
mov eax, fcn.007fdcc0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbdf5b], al
push dword [esp]
call fcn.007801d0
add esp, 4
lea eax, [ebp + 0x1b4]
mov dword [ebp + 0x44], 0xff
mov dword [ebp + 0x14], 2
mov dword [ebp + 0x60], 0xf03b7906
lea edi, [ebp + 0x6c]
mov ecx, 0xb
mov esi, 0xb4c378
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x118], 1
mov word [ebp + 0x11c], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x98], 0
mov byte [ebp + 0x4f], 1
mov byte [ebp + 0x54], 0xff
mov eax, dword [0xbb3398]
mov ecx, dword [0xbb339c]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x9c], 0x7fffffff
or dword [ebp + 0x20], 0xe00480e0
lea ecx, [ebp + 0x194]
call fcn.007c9cf0
mov ecx, ebp
add ecx, 0x168
call fcn.007c9cf0
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.0081c6e0
push 0
push 1
call fcn.007969a0
add esp, 0x10
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.0081c6e0
push 0
push 3
call fcn.007969a0
add esp, 0x10
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.0081c6e0
push 0
push 2
call fcn.007969a0
add esp, 0x10
mov ecx, ebp
mov edx, 0xbbdf44
push 0
push 0x846a90
push 0
push 1
call fcn.007969a0
add esp, 0x10
mov ecx, ebp
mov edx, 0xbbdf50
push 0
push 0x846ac0
push 0
push 1
call fcn.007969a0
add esp, 0x10
cmp byte [ebp + 0x51], 0
jne 0x7967fe
mov ecx, ebp
mov edx, 1
push 0
push str.2_p0
call fcn.007d3a60
add esp, 8
mov dword [ebp + 8], eax
mov eax, dword [esp + 4]
mov ecx, 0x46
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0xc]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7962ff
mov ecx, 0xd06
call fcn.00780040
mov edi, 0x15
jmp 0x79633a
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
lea esi, [esp + 0x18]
lea edi, [esp + 0x34]
push eax
push esi
push ebp
push edi
call fcn.00836c00
add esp, 0x10
test eax, eax
je 0x7964b6
mov edi, eax
cmp eax, 7
jne 0x79633a
mov ecx, ebp
call fcn.0078a090
mov edi, 7
mov eax, 0x7a8880
mov esi, 3
movzx edx, byte [0xbbdf63]
sub esi, eax
xor eax, eax
mov ecx, esi
xor ecx, 0x7a8880
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79648e
mov al, byte [0xbbdf63]
mov dword [esp], edi
mov edi, esi
xor ecx, ecx
mov ah, 1
xor edi, 0x7a8880
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbdf63], ah
jne 0x796377
mov esi, 0x7a8880
mov ecx, 3
xor edx, edx
movzx eax, al
sub ecx, esi
mov esi, ecx
xor esi, 0x7a8880
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7963ff
mov edi, dword [esp]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbdf63]
xor edx, 0x7a8880
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7963d5
jmp 0x79648e
xor eax, eax
xor ecx, 0x7a8880
movzx edx, byte [0xbbdf63]
mov edi, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x796460
mov eax, 0x7a8880
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x7a8880
sete al
mov ecx, eax
not ecx
and ecx, 0x447
lea ecx, [eax + ecx*2 + 0x261ae3b8]
mov al, 1
xor dword [0xbbdf5c], ecx
and cl, 7
shl al, cl
or byte [0xbbdf63], al
mov eax, 0x7a8880
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x7a8880
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbdf63], al
mov esi, dword [esp + 0x14]
mov eax, 0xbbdf5c
test esi, esi
cmove eax, esi
push esi
push eax
push edi
push ebp
call fcn.00787000
add esp, 0x10
push esi
call fcn.00780f60
add esp, 4
jmp 0x7967fe
mov eax, 0x100
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
or eax, dword [esp + 0x34]
add esi, 4
push eax
push 0
push esi
push ebp
call fcn.007a1210
add esp, 0x10
test eax, eax
je 0x7964f7
cmp eax, 0xc0a
jne 0x7964e9
mov eax, 7
mov ecx, ebp
mov edx, eax
call fcn.007870c0
jmp 0x7967fe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
call fcn.00787c60
mov eax, dword [ebp + 0x10]
mov ecx, ebp
mov edx, dword [eax + 4]
call fcn.00837fb0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [ebp + 0x51], 0
mov edx, dword [ebp + 0x10]
jne 0x796527
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x4d]
mov byte [ebp + 0x4e], al
mov esi, fcn.00833840
movzx ecx, byte [0xbbdf6f]
imul esi, esi
and esi, 3
cmp esi, 1
seta al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x79663a
mov al, byte [0xbbdf6f]
cmp esi, 1
mov ah, 1
seta cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbdf6f], ah
jne 0x796554
mov ecx, fcn.00833840
movzx esi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta ah
not ah
and ah, 5
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x7965b4
cmp ecx, 1
movzx esi, byte [0xbbdf6f]
seta al
not al
and al, 5
movzx eax, al
bt esi, eax
jae 0x796596
jmp 0x79663a
cmp ecx, 1
movzx ecx, byte [0xbbdf6f]
seta al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x796617
mov eax, fcn.00833840
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbbdf64]
seta cl
xor ecx, 0xf1f84905
add ecx, 0x120
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbbdf64], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov ah, 1
xor dword [0xbbdf68], esi
shl ah, cl
or byte [0xbbdf6f], ah
mov eax, fcn.00833840
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbbdf6f], al
mov eax, fcn.007ab160
mov esi, 3
movzx ecx, byte [0xbbdf7b]
sub esi, eax
mov eax, esi
xor eax, fcn.007ab160
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x796759
mov al, byte [0xbbdf7b]
mov ecx, esi
mov ah, 1
xor ecx, fcn.007ab160
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbdf7b], ah
jne 0x79666a
mov esi, fcn.007ab160
mov ecx, 3
sub ecx, esi
mov esi, ecx
xor esi, fcn.007ab160
sete ah
or ah, 6
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7966d3
mov eax, ecx
movzx esi, byte [0xbbdf7b]
xor eax, fcn.007ab160
sete al
or al, 6
movzx eax, al
bt esi, eax
jae 0x7966b3
jmp 0x796759
xor ecx, fcn.007ab160
movzx ecx, byte [0xbbdf7b]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x796734
mov eax, fcn.007ab160
mov esi, 3
xor ecx, ecx
sub esi, eax
mov eax, dword [0xbbdf70]
xor esi, fcn.007ab160
sete cl
or ecx, 0x4def49e
add ecx, 0x1280
xor eax, ecx
mov dword [0xbbdf70], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbbdf74], eax
mov ah, 1
shl ah, cl
or byte [0xbbdf7b], ah
mov eax, fcn.007ab160
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007ab160
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbbdf7b], al
mov ecx, dword [edx + 4]
call fcn.00788700
mov ecx, ebp
xor edx, edx
call fcn.00837fb0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xbbdf64
mov eax, dword [ebp + 0x10]
mov byte [eax + 8], 3
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], 0xbbdf70
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x18], 1
mov dword [ebp + 0x60], 0xa029a697
cmp byte [ebp + 0x51], 0
jne 0x7967fe
mov ecx, ebp
xor edx, edx
call fcn.007870c0
mov ecx, ebp
call fcn.00846b10
push ebp
call fcn.00795b80
add esp, 4
mov ecx, ebp
test eax, eax
jne 0x7967d1
call fcn.00846c90
push ebp
call fcn.00795b80
add esp, 4
test eax, eax
je 0x7967d8
jmp 0x7967fe
mov edx, eax
call fcn.007870c0
mov ecx, ebp
xor edx, edx
push dword [0xbb3308]
push dword [0xbb3304]
call fcn.007940d0
add esp, 8
push 0x3e8
push ebp
call fcn.00795390
add esp, 8
push dword [ebp + 0xc]
call fcn.007801e0
add esp, 4
mov esi, ebp
push esi
call fcn.00795b80
add esp, 4
mov edi, dword [esp + 0x10]
mov ebx, eax
test eax, eax
je 0x796837
cmp ebx, 7
jne 0x796830
push esi
call fcn.00794350
add esp, 4
xor esi, esi
jmp 0x796837
mov dword [esi + 0x60], 0x4b771290
mov dword [edi], esi
push dword [esp + 0x18]
call fcn.00780f60
add esp, 4
movzx esi, bl
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00989fe9
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret