Function at 0x7d45a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [ecx + 0xe4]
mov ebx, edx
mov edi, ecx
test ebp, ebp
je 0x7d4d57
cmp byte [edi + 0xc8], 1
jne 0x7d4815
mov edx, fcn.0078d600
xor eax, eax
movzx esi, byte [0xbb1bff]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x7d4802
mov al, byte [0xbb1bff]
mov esi, ebx
xor ecx, ecx
cmp edx, 3
mov ah, 1
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 [0xbb1bff], ah
jne 0x7d45f9
mov ecx, fcn.0078d600
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d466b
mov ebx, esi
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb1bff]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7d4649
jmp 0x7d4802
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb1bff]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7d47d9
mov ecx, fcn.0078d600
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 9
lea ecx, [eax + ecx*2 + 0x401b0672]
mov eax, dword [0xbb1bd0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1bd0], eax
not eax
imul edx, eax
mov eax, dword [0xbb1bd4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1bd4], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1bd8]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1bd8], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1bdc]
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1bdc], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1be0]
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1be0], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1be4]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb1be4], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1be8]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb1be8], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1bec]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb1bec], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1bf0]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb1bf0], edx
or eax, esi
not edx
mov ebp, dword [0xbb1bf4]
imul edx, eax
mov esi, edx
shl esi, 9
xor ebp, edx
shr edx, 0x16
mov dword [0xbb1bf4], ebp
or edx, esi
not ebp
imul ebp, edx
mov dl, 1
xor dword [0xbb1bf8], ebp
shl dl, cl
or byte [0xbb1bff], dl
mov eax, fcn.0078d600
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
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 [0xbb1bff], al
push 0xbb1bd0
push edi
call fcn.00782570
add esp, 8
jmp 0x7d4d57
movsx eax, word [ebp + 0x2a]
mov ecx, dword [ebp + 4]
dec eax
lea edx, [eax + eax*4]
cmp dword [ecx + edx*4 + 4], 0
lea esi, [ecx + edx*4]
jne 0x7d4b98
mov eax, dword [esp + 0x24]
test eax, eax
je 0x7d49e4
mov dword [esp + 0xc], eax
mov eax, dword [eax + 4]
cmp eax, 6
je 0x7d49fb
cmp eax, 7
jne 0x7d4b98
mov dword [esp + 4], edx
mov edx, 0x98b2b4
xor eax, eax
mov dword [esp + 8], ecx
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
movzx ecx, byte [0xbb1c0f]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d49bf
mov al, byte [0xbb1c0f]
mov dword [esp], ebx
xor ecx, ecx
cmp edx, 2
mov ah, 1
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 [0xbb1c0f], ah
jne 0x7d4892
mov ecx, 0x98b2b4
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
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 0x7d490a
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 2
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
movzx edx, byte [0xbb1c0f]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7d48e5
jmp 0x7d49bf
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb1c0f]
mov ebx, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d4995
mov ecx, 0x98b2b4
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x37
lea ecx, [eax + ecx*2 - 0x35eb0840]
mov eax, dword [0xbb1c00]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1c00], eax
not eax
imul edx, eax
mov eax, dword [0xbb1c04]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1c04], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb1c08], eax
or byte [0xbb1c0f], dl
mov eax, 0x98b2b4
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb1c0f], al
push 7
mov eax, dword [esp + 0x10]
push dword [eax]
push 0xbb1c00
call fcn.00777e50
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test eax, eax
jne 0x7d4b98
mov dword [esp], ebx
mov dword [esp + 4], edx
dec word [ebp + 0x2c]
mov edx, esi
mov eax, 0x20
jmp 0x7d4b6e
mov dword [esp + 4], edx
mov edx, fcn.00809780
mov eax, fcn.00809780
mov dword [esp + 8], ecx
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb1c1b]
bt ecx, eax
jb 0x7d4b47
mov al, byte [0xbb1c1b]
mov dword [esp], ebx
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1c1b], ah
jne 0x7d4a3a
mov ecx, fcn.00809780
mov edx, fcn.00809780
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, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d4aae
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
movzx edx, byte [0xbb1c1b]
bt edx, eax
jae 0x7d4a8d
jmp 0x7d4b47
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb1c1b]
mov ebx, dword [esp]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7d4b1b
mov ecx, fcn.00809780
mov eax, fcn.00809780
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0xb8fdefb1
lea ecx, [ecx + eax*2 + 0x10]
mov eax, dword [0xbb1c10]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1c10], eax
not eax
imul edx, eax
xor dword [0xbb1c14], edx
mov dl, 1
shl dl, cl
or byte [0xbb1c1b], dl
mov ecx, fcn.00809780
mov eax, fcn.00809780
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb1c1b], al
push 6
mov eax, dword [esp + 0x10]
push dword [eax]
push 0xbb1c10
call fcn.00777e50
add esp, 0xc
mov ecx, dword [esp + 8]
test eax, eax
jne 0x7d4b98
mov edx, esi
mov eax, 0x40
mov dword [esp], ebx
mov esi, dword [esp + 4]
or word [ecx + esi*4 + 0x10], ax
or dword [ebp + 0x24], eax
lea ebx, [ecx + esi*4 + 4]
test byte [ecx + esi*4 + 0x10], 1
je 0x7d4b8c
mov ecx, edi
call fcn.00803c20
mov eax, dword [esp]
mov dword [ebx], eax
xor ebx, ebx
jmp 0x7d4d57
mov edx, fcn.007ee450
movzx ecx, byte [0xbb1c43]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7d4d47
mov al, byte [0xbb1c43]
cmp edx, 3
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1c43], ah
jne 0x7d4bc3
mov ecx, fcn.007ee450
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d4c1d
cmp ecx, 3
movzx edx, byte [0xbb1c43]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7d4c01
jmp 0x7d4d47
cmp ecx, 3
movzx edx, byte [0xbb1c43]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7d4d26
mov eax, fcn.007ee450
xor ecx, ecx
mov ebp, esi
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb1c20]
sete cl
or ecx, 0xd48f54d6
xor eax, ecx
and cl, 7
mov dword [0xbb1c20], eax
not eax
mov edx, dword [0xbb1c24]
imul eax, eax, 0xd48f54d7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb1c24], edx
or esi, eax
not edx
mov eax, dword [0xbb1c28]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb1c28], eax
or esi, edx
not eax
mov edx, dword [0xbb1c2c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb1c2c], edx
or esi, eax
not edx
mov eax, dword [0xbb1c30]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb1c30], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1c34]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb1c34], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb1c38]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb1c38], eax
or edx, esi
not eax
mov esi, ebp
imul eax, edx
mov dl, 1
xor dword [0xbb1c3c], eax
shl dl, cl
or byte [0xbb1c43], dl
mov eax, fcn.007ee450
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb1c43], al
push dword [esi]
push 0xbb1c20
push edi
call fcn.00782570
add esp, 0xc
mov ecx, dword [edi]
mov edx, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007c00e0