Function at 0x7db190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0xbd33e0]
mov ebx, edx
mov esi, ecx
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0xe4]
mov edi, dword [ecx]
test eax, eax
je 0x7db772
cmp byte [edi + 0xa5], 0
mov dword [esp + 4], esi
jne 0x7db1c9
mov esi, edi
xor ecx, ecx
jmp 0x7db1d5
cmp byte [edi + 0xa4], 1
mov esi, edi
setne cl
movsx ebp, word [eax + 0x2a]
mov edi, dword [eax + 4]
movzx edx, cl
mov ecx, ebx
dec ebp
call fcn.0080f160
test eax, eax
jne 0x7db482
mov edx, fcn.0078b340
mov eax, fcn.0078b340
mov dword [esp + 8], edi
and edx, 1
movzx edi, byte [0xbb8f83]
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
mov edi, esi
mov esi, dword [esp + 4]
jb 0x7db464
mov al, byte [0xbb8f83]
mov dword [esp], ebx
xor ebx, ebx
cmp edx, 0xffffffff
mov ah, 1
sete bl
mov ecx, ebx
xor ecx, 1
lea ecx, [ebx + ecx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8f83], ah
jne 0x7db231
mov ecx, fcn.0078b340
mov edx, fcn.0078b340
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7db2a8
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
movzx edx, byte [0xbb8f83]
bt edx, eax
jae 0x7db286
jmp 0x7db464
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb8f83]
mov ebx, dword [esp]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7db437
mov ecx, fcn.0078b340
mov eax, fcn.0078b340
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [eax + ecx*2 + 0x7f14f802]
mov eax, dword [0xbb8f50]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb8f50], eax
not eax
imul edx, eax
mov eax, dword [0xbb8f54]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb8f54], eax
or ebx, edx
not eax
mov edx, dword [0xbb8f58]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb8f58], edx
or ebx, eax
not edx
mov eax, dword [0xbb8f5c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb8f5c], eax
or ebx, edx
not eax
mov edx, dword [0xbb8f60]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb8f60], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb8f64]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb8f64], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8f68]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb8f68], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb8f6c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb8f6c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8f70]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb8f70], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb8f74]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb8f74], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8f78]
mov ebx, eax
shl ebx, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb8f78], edx
or eax, ebx
not edx
mov ebx, dword [esp]
imul edx, eax
xor dword [0xbb8f7c], edx
mov dl, 1
shl dl, cl
or byte [0xbb8f83], dl
mov ecx, fcn.0078b340
mov eax, fcn.0078b340
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb8f83], al
mov ecx, dword [esp + 8]
lea eax, [ebp + ebp*4]
push dword [ecx + eax*4]
push 0xbb8f50
push esi
call fcn.0078de60
add esp, 0xc
jmp 0x7db772
lea ebp, [ebp + ebp*4]
test byte [edi + ebp*4 + 0x10], 0x60
je 0x7db6b1
mov edx, fcn.007c4e40
movzx ecx, byte [0xbb8fbf]
mov edi, esi
mov esi, dword [esp + 4]
imul edx, edx
and edx, 3
cmp edx, 2
setb al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7db69e
mov al, byte [0xbb8fbf]
cmp edx, 2
mov ah, 1
setb cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb8fbf], ah
jne 0x7db4c2
mov ecx, fcn.007c4e40
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
setb dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7db51c
cmp ecx, 2
movzx edx, byte [0xbb8fbf]
setb al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7db500
jmp 0x7db69e
cmp ecx, 2
movzx edx, byte [0xbb8fbf]
setb al
or al, 4
movzx eax, al
bt edx, eax
jb 0x7db67d
mov eax, fcn.007c4e40
xor ecx, ecx
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb8f90]
seta cl
xor ecx, 0x28f654a1
add ecx, 0x63c
xor eax, ecx
mov dword [0xbb8f90], eax
not eax
mov edx, dword [0xbb8f94]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb8f94], edx
or ebx, eax
not edx
mov eax, dword [0xbb8f98]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb8f98], eax
or ebx, edx
not eax
mov edx, dword [0xbb8f9c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb8f9c], edx
or ebx, eax
not edx
mov eax, dword [0xbb8fa0]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb8fa0], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8fa4]
mov ebx, eax
shl ebx, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb8fa4], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb8fa8]
mov ebx, edx
shl ebx, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb8fa8], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8fac]
mov ebx, eax
shl ebx, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb8fac], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb8fb0]
mov ebx, edx
shl ebx, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb8fb0], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb8fb4]
mov ebx, eax
shl ebx, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb8fb4], edx
or eax, ebx
not edx
mov ebx, ebp
imul edx, eax
xor dword [0xbb8fb8], edx
mov dl, 1
shl dl, cl
or byte [0xbb8fbf], dl
mov eax, fcn.007c4e40
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
setb cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb8fbf], al
push 0xbb8f90
push esi
call fcn.0078de60
add esp, 8
jmp 0x7db772
mov edx, dword [edi + ebp*4 + 4]
mov ecx, esi
mov esi, edi
mov edi, ecx
call fcn.007cb9e0
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0xc], 0xb2
mov ecx, edi
push dword [esp + 0x5c]
call fcn.0080f170
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0x1000
lea edx, [esp + 0xc]
mov ecx, edi
push 1
call fcn.007fc000
add esp, 4
mov dword [esi + ebp*4 + 4], eax
mov ecx, edi
mov edx, dword [esp + 0x14]
call fcn.00780810
mov esi, dword [esp + 4]
cmp byte [esi + 0xc8], 2
jb 0x7db784
mov ecx, esi
mov edx, ebx
call fcn.0080f1c0
mov ecx, edi
mov edx, ebx
call fcn.007cb9e0
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00989fe9
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret