Function at 0x7dac00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ecx + 0xe4]
test esi, esi
je 0x7db17e
mov ebx, ecx
mov ecx, dword [ecx]
movsx eax, word [esi + 0x2a]
cmp dword [ecx + 0x74], eax
jg 0x7dae09
mov edx, fcn.00794340
xor eax, eax
movzx edi, byte [0xbb8f2b]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00794340
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
jb 0x7dadf4
mov al, byte [0xbb8f2b]
mov ebp, esi
mov edi, ebx
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.00794340
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8f2b], ah
jne 0x7dac5e
mov ecx, fcn.00794340
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, fcn.00794340
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7dacdf
mov ebx, edi
mov esi, ebp
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb8f2b]
xor edx, fcn.00794340
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt edi, eax
jae 0x7dacb8
jmp 0x7dadf4
xor eax, eax
xor ecx, fcn.00794340
movzx edx, byte [0xbb8f2b]
mov ebx, edi
mov esi, ebp
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7dadcb
mov ecx, fcn.00794340
xor eax, eax
and ecx, 1
inc ecx
xor ecx, fcn.00794340
sete al
mov ecx, eax
not ecx
and ecx, 0x185
lea ecx, [eax + ecx*2 - 0x3cc9658e]
mov eax, dword [0xbb8f10]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb8f10], eax
not eax
imul edx, eax
mov eax, dword [0xbb8f14]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb8f14], eax
or esi, edx
not eax
mov edx, dword [0xbb8f18]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb8f18], edx
or esi, eax
not edx
mov eax, dword [0xbb8f1c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb8f1c], eax
or esi, edx
not eax
mov edx, dword [0xbb8f20]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb8f20], edx
or eax, esi
not edx
mov esi, ebp
imul edx, eax
xor dword [0xbb8f24], edx
mov dl, 1
shl dl, cl
or byte [0xbb8f2b], dl
mov eax, fcn.00794340
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00794340
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb8f2b], al
push dword [esi]
push 0xbb8f10
push ebx
call fcn.0078de60
add esp, 0x20
jmp 0x7db181
mov ebp, edx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 4]
mov dword [esp + 8], edx
mov edx, dword [edx + 4]
mov dword [esp], ecx
lea edx, [eax + edx + 2]
push 0
call fcn.0078fe60
add esp, 4
test eax, eax
je 0x7db17e
cmp byte [ebx + 0xc8], 2
mov edi, eax
jb 0x7dae4a
mov ecx, ebx
mov edx, edi
push ebp
call fcn.007e47b0
add esp, 4
mov dword [esp + 0xc], ebx
push dword [ebp + 4]
push dword [ebp]
push edi
call fcn.0098a270
add esp, 0xc
mov eax, dword [ebp + 4]
mov ecx, edi
mov byte [edi + eax], 0
call fcn.0080f110
movsx ebx, word [esi + 0x2a]
mov dword [esp + 4], esi
test ebx, ebx
jle 0x7db091
mov eax, dword [esp + 4]
xor ebp, ebp
mov esi, dword [eax + 4]
jmp 0x7dae8f
inc ebp
cmp ebp, ebx
jge 0x7db091
lea eax, [ebp + ebp*4]
push dword [esi + eax*4]
push edi
call fcn.00783700
add esp, 8
test eax, eax
jne 0x7dae86
mov edx, 0x7a9ca0
xor eax, eax
movzx esi, byte [0xbb8f4f]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7db07a
mov al, byte [0xbb8f4f]
xor ecx, ecx
cmp edx, 2
mov ah, 1
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 [0xbb8f4f], ah
jne 0x7daed9
mov ecx, 0x7a9ca0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
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 0x7daf54
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb8f4f]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7daf2d
jmp 0x7db07a
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb8f4f]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7db04e
mov eax, 0x7a9ca0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x3d82796d
lea ecx, [eax + ecx*2 + 0xc04]
mov eax, dword [0xbb8f30]
xor eax, ecx
mov dword [0xbb8f30], eax
not eax
mov edx, dword [0xbb8f34]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb8f34], edx
or esi, eax
not edx
mov eax, dword [0xbb8f38]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb8f38], eax
or esi, edx
not eax
mov edx, dword [0xbb8f3c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb8f3c], edx
or esi, eax
not edx
mov eax, dword [0xbb8f40]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb8f40], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb8f44]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb8f44], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb8f48], edx
mov dl, 1
shl dl, cl
or byte [0xbb8f4f], dl
mov eax, 0x7a9ca0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
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 [0xbb8f4f], al
push edi
push 0xbb8f30
push dword [esp + 0x14]
call fcn.0078de60
add esp, 0xc
mov ecx, dword [esp]
jmp 0x7db0c6
test bl, 7
je 0x7db09f
mov eax, dword [esp + 4]
mov ebp, dword [eax + 4]
jmp 0x7db0dd
mov esi, dword [esp + 4]
lea eax, [ebx + ebx*4]
mov ebx, dword [esp]
lea eax, [eax*4 + 0xa0]
mov edx, dword [esi + 4]
mov ecx, ebx
push 0
push eax
call fcn.00799570
add esp, 8
test eax, eax
jne 0x7db0d4
mov ecx, ebx
mov edx, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00780810
mov dword [esi + 4], eax
mov ebp, eax
movsx ebx, word [esi + 0x2a]
mov eax, dword [esp + 8]
lea esi, [ebx + ebx*4]
mov dword [ebp + esi*4 + 0x10], 0
mov dword [ebp + esi*4 + 0xc], 0
mov dword [ebp + esi*4 + 8], 0
mov dword [ebp + esi*4 + 4], 0
mov dword [ebp + esi*4], edi
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x7db118
mov byte [ebp + esi*4 + 0xe], 1
mov al, 0x41
jmp 0x7db163
lea ecx, [ebp + esi*4]
mov dword [esp], ecx
mov ecx, edi
call fcn.00783170
lea ecx, [edi + eax]
lea edi, [edi + eax + 1]
mov dword [esp + 0x10], ecx
push ebx
mov ebx, dword [esp + 0xc]
push dword [ebx]
push edi
call fcn.0098a270
add esp, 0xc
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx + 1], 0
mov ecx, edi
call fcn.0080f110
mov edx, dword [esp]
mov ecx, edi
call fcn.007f9cd0
or byte [ebp + esi*4 + 0x10], 4
mov byte [ebp + esi*4 + 0xd], al
mov eax, dword [esp + 4]
inc word [eax + 0x2a]
inc word [eax + 0x2c]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x4c], 0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret