Function at 0x790ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, fcn.007bde30
mov eax, fcn.007bde30
xor esi, esi
mov dword [esp + 8], ecx
and edx, 1
xor edx, eax
mov dword [esp + 0x10], edx
xor eax, eax
cmp dword [esp + 0x10], 0xffffffff
mov edi, dword [esi*4 + 0xb4d370]
mov ebp, dword [esi*4 + 0xb4d4b0]
mov dword [esp + 0x18], esi
sete al
mov ecx, eax
not ecx
and ecx, 0x685
lea edx, [eax + ecx*2 + 0xc9bf95a]
mov eax, 1
xor edx, dword [esi*4 + 0xb4ba10]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [edi + ebp - 1]
mov esi, dword [esp]
bt ecx, esi
jb 0x790de4
mov dword [esp + 4], eax
mov al, byte [edi + ebp - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + ebp - 1], cl
jne 0x790d69
mov ecx, dword [esp + 4]
movzx eax, al
test ebx, eax
je 0x790d8b
movzx eax, byte [edi + ebp - 1]
test ecx, eax
je 0x790d80
jmp 0x790de4
mov dword [esp + 0xc], ebx
movzx eax, byte [edi + ebp - 1]
test ecx, eax
jne 0x790dda
lea ecx, [ebp - 4]
shr ecx, 2
je 0x790dd2
xor eax, eax
mov ebx, edi
mov dword [esp + 0x14], ecx
mov esi, dword [ebx]
mov ecx, eax
mov dword [esp], edx
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
xor esi, edx
shr edx, cl
mov ecx, dword [esp + 0x14]
or edx, dword [esp]
mov dword [ebx], esi
not esi
add ebx, 4
imul edx, esi
cmp eax, ecx
jne 0x790da8
mov eax, dword [esp + 4]
or byte [edi + ebp - 1], al
mov eax, dword [esp + 0xc]
not al
and byte [edi + ebp - 1], al
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 0x50
jne 0x790d00
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x790fed
push eax
call dword [0xbabde4]
test eax, eax
jne 0x790fd8
mov edx, fcn.007cdcd0
xor eax, eax
movzx esi, byte [0xbacdf3]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007cdcd0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x790fae
mov al, byte [0xbacdf3]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.007cdcd0
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbacdf3], ah
jne 0x790e4a
mov ecx, fcn.007cdcd0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007cdcd0
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x790ed3
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbacdf3]
add edx, fcn.007cdcd0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x790ea7
jmp 0x790fae
xor eax, eax
add ecx, fcn.007cdcd0
movzx edx, byte [0xbacdf3]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x790f81
mov eax, fcn.007cdcd0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007cdcd0
sete cl
mov eax, ecx
xor eax, 0xa7eeb3c5
lea ecx, [eax + ecx*2 + 0x1004]
mov eax, dword [0xbacde0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbacde0], eax
not eax
imul edx, eax
mov eax, dword [0xbacde4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbacde4], eax
or esi, edx
not eax
mov edx, dword [0xbacde8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbacde8], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbacdec], edx
or byte [0xbacdf3], al
mov eax, fcn.007cdcd0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007cdcd0
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbacdf3], al
call dword [0xbabc58]
mov ecx, 0x180a
mov edx, eax
mov dword [edi + 0x14], eax
push 0x3352
push dword [edi + 0x1c]
push 0xbacde0
call fcn.007911b0
add esp, 0x28
jmp 0x79119c
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x791199
push eax
call dword [0xbabb44]
test eax, eax
jne 0x791192
mov edx, fcn.007a5760
xor eax, eax
movzx esi, byte [0xbace13]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x791170
mov al, byte [0xbace13]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbace13], ah
jne 0x791037
mov ecx, fcn.007a5760
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7910a4
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbace13]
seta al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
bt esi, eax
jae 0x791083
jmp 0x791170
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbace13]
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x791148
mov eax, fcn.007a5760
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0xbae8a741
lea ecx, [eax + ecx*2 + 0x120]
mov eax, dword [0xbace00]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbace00], eax
not eax
imul edx, eax
mov eax, dword [0xbace04]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbace04], eax
or esi, edx
not eax
mov edx, dword [0xbace08]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbace08], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbace0c], edx
or byte [0xbace13], al
mov eax, fcn.007a5760
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbace13], al
call dword [0xbabc58]
mov ecx, 0x180a
mov edx, eax
mov dword [edi + 0x14], eax
push 0x335d
push dword [edi + 0x1c]
push 0xbace00
jmp 0x790fcb
mov dword [edi + 0x28], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret