Function at 0x7d83c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ecx]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
test edx, edx
mov dword [esp], eax
jne 0x7d88f8
test edi, edi
jne 0x7d83eb
cmp dword [esp + 0x30], 0
je 0x7d88f8
mov eax, fcn.007967c0
mov edx, 3
mov dword [esp + 4], ecx
sub edx, eax
xor eax, eax
movzx esi, byte [0xbb296f]
mov ecx, edx
xor ecx, fcn.007967c0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7d8546
mov al, byte [0xbb296f]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.007967c0
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb296f], ah
jne 0x7d842b
mov edx, fcn.007967c0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007967c0
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 0x7d84b6
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb296f]
xor edx, fcn.007967c0
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7d848a
jmp 0x7d8546
xor eax, eax
xor ecx, fcn.007967c0
movzx edx, byte [0xbb296f]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d8516
mov eax, fcn.007967c0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007967c0
sete al
mov ecx, eax
not ecx
and ecx, 0x219
lea ecx, [eax + ecx*2 + 0x15b91486]
mov al, 1
xor dword [0xbb2968], ecx
and cl, 7
shl al, cl
or byte [0xbb296f], al
mov eax, fcn.007967c0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007967c0
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 [0xbb296f], al
mov edx, fcn.007c4290
xor eax, eax
movzx esi, byte [0xbb297b]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007c4290
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x7d8696
mov al, byte [0xbb297b]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.007c4290
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 [0xbb297b], ah
jne 0x7d857b
mov ecx, fcn.007c4290
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007c4290
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d85f9
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb297b]
add edx, fcn.007c4290
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7d85d2
jmp 0x7d8696
xor eax, eax
add ecx, fcn.007c4290
movzx edx, byte [0xbb297b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7d866c
mov ecx, fcn.007c4290
xor eax, eax
mov esi, dword [0xbb2970]
not ecx
and ecx, 1
add ecx, fcn.007c4290
sete al
mov ecx, eax
not ecx
and ecx, 0x905
lea ecx, [eax + ecx*2 - 0x3783992e]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb2970], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb2974], edx
mov dl, 1
shl dl, cl
or byte [0xbb297b], dl
mov eax, fcn.007c4290
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007c4290
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 [0xbb297b], al
mov edx, fcn.00821400
movzx ecx, byte [0xbb29ab]
not edx
and edx, 1
mov eax, edx
add eax, fcn.00821400
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d88ae
mov al, byte [0xbb29ab]
mov ecx, edx
mov ah, 1
add ecx, fcn.00821400
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb29ab], ah
jne 0x7d86c8
mov ecx, fcn.00821400
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.00821400
sete dl
not dl
add dl, 0xc0
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d873d
mov eax, ecx
movzx edx, byte [0xbb29ab]
add eax, fcn.00821400
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt edx, eax
jae 0x7d8719
jmp 0x7d88ae
add ecx, fcn.00821400
movzx ecx, byte [0xbb29ab]
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d8887
mov eax, fcn.00821400
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00821400
mov eax, dword [0xbb2980]
sete cl
xor ecx, 0x61f7a107
or ecx, 0x10c0
xor eax, ecx
mov dword [0xbb2980], eax
not eax
mov edx, dword [0xbb2984]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb2984], edx
or esi, eax
not edx
mov eax, dword [0xbb2988]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb2988], eax
or esi, edx
not eax
mov edx, dword [0xbb298c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb298c], edx
or esi, eax
not edx
mov eax, dword [0xbb2990]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb2990], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb2994]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb2994], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb2998]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb2998], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb299c]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb299c], edx
or eax, esi
not edx
mov ebx, dword [0xbb29a0]
imul edx, eax
mov esi, edx
shl esi, 8
xor ebx, edx
shr edx, 0x17
mov dword [0xbb29a0], ebx
or edx, esi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb29a4], ebx
shl dl, cl
or byte [0xbb29ab], dl
mov eax, fcn.00821400
not eax
and eax, 1
add eax, fcn.00821400
mov al, 0xfe
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb29ab], al
test edi, edi
mov eax, 0xbb2968
mov ecx, 0xbb2970
cmovne ecx, eax
push ecx
push 0xbb2980
push dword [esp + 0xc]
call fcn.00782570
add esp, 0xc
mov esi, dword [esp]
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007c00e0
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.007c0430
mov ecx, esi
mov edx, ebp
call fcn.007c0190
xor edi, edi
jmp 0x7d897f
mov esi, dword [esp + 0x20]
mov ebx, ecx
push esi
push dword [esp + 0x20]
call fcn.007d8e50
add esp, 8
test eax, eax
je 0x7d88cf
mov edi, eax
mov eax, dword [esp + 0x24]
mov ebp, dword [edi]
dec ebp
cmp byte [ebx + 0xc8], 2
jb 0x7d894b
mov ecx, ebx
mov ebx, eax
lea eax, [ebp + ebp*8]
mov edx, dword [edi + eax*8 + 0x10]
mov eax, ebx
test edx, edx
je 0x7d894b
test esi, esi
je 0x7d893c
cmp dword [esi], 0
jne 0x7d8940
mov esi, dword [esp + 0x1c]
push esi
call fcn.007d8f10
add esp, 4
mov eax, ebx
cmp dword [eax + 4], 0
je 0x7d8963
mov ecx, dword [esp]
mov edx, eax
call fcn.007d8f60
lea ecx, [ebp + ebp*8]
mov dword [edi + ecx*8 + 0x14], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [ebp + ebp*8]
mov dword [edi + eax*8 + 0x1c], ecx
mov dword [edi + eax*8 + 0x38], esi
mov dword [edi + eax*8 + 0x3c], edx
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret