Function at 0x7a5760
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ecx + 0x98]
mov edi, dword [ecx + 0x58]
mov ebp, dword [ecx]
mov ebx, ecx
mov byte [esp + 3], 1
and eax, 0xc
lea esi, [edi + 0x28]
cmp eax, 4
je 0x7a578d
mov al, byte [ebp + 0x23]
and al, 1
mov byte [esp + 3], al
mov ecx, esi
mov edx, 8
call fcn.007a1b70
mov dword [ebx + 0x78], 0
cmp dword [ebx + 0x28], 7
jne 0x7a57b7
mov ecx, ebp
call fcn.0077e7a0
mov edi, 1
jmp 0x7a5c51
mov ecx, dword [ebx + 0x6c]
cmp byte [esp + 3], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 8], ecx
jne 0x7a57d7
xor edi, edi
xor eax, eax
jmp 0x7a57eb
mov esi, dword [ebx + 0x58]
xor eax, eax
test byte [esi + 0x170], 0x10
lea edi, [esi + 0x168]
jne 0x7a57f1
xor ebp, ebp
mov esi, ecx
jmp 0x7a581f
mov edx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
xor ebp, ebp
shr edx, 2
jne 0x7a5808
mov esi, ecx
jmp 0x7a581f
mov esi, ecx
mov dword [esp + 0xc], edi
mov edi, dword [eax + ebp*4]
inc ebp
add esi, dword [edi + 4]
cmp ebp, edx
jne 0x7a580e
mov edi, dword [esp + 0xc]
mov ebp, edx
mov ecx, dword [ebx + 0x24]
lea edx, [ecx + 1]
cmp ecx, esi
mov dword [ebx + 0x24], edx
jge 0x7a5c5b
mov dword [esp + 4], ebx
mov edx, ecx
mov ebx, ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], edi
mov edx, ebx
sub edx, ecx
jge 0x7a5859
mov ecx, dword [esp + 4]
mov dword [esp + 8], ebx
lea ebx, [ebx + ebx*4]
shl ebx, 2
add ebx, dword [ecx + 0x68]
jmp 0x7a5880
mov ecx, dword [eax]
xor edi, edi
mov ebx, dword [ecx + 4]
jmp 0x7a586c
mov ecx, dword [eax + edi*4 + 4]
sub edx, ebx
inc edi
mov ebx, dword [ecx + 4]
cmp edx, ebx
jge 0x7a5862
lea ebx, [edx + edx*4]
mov edi, dword [esp + 0xc]
mov dword [esp + 8], edx
shl ebx, 2
add ebx, dword [ecx]
cmp byte [esp + 3], 0
jne 0x7a588b
mov edi, ebx
jmp 0x7a5903
cmp byte [ebx + 1], 0xfc
je 0x7a5895
mov edi, ebx
jmp 0x7a5903
test ebp, ebp
jg 0x7a589d
xor ecx, ecx
jmp 0x7a58ac
mov edx, dword [ebx + 0x10]
xor ecx, ecx
cmp dword [eax + ecx*4], edx
je 0x7a58ac
inc ecx
cmp ecx, ebp
jl 0x7a58a2
cmp ecx, ebp
je 0x7a58b4
mov edi, ebx
jmp 0x7a5903
xor eax, eax
test ebp, ebp
lea edx, [ebp*4 + 4]
mov ecx, edi
setne al
mov dword [esp + 0x18], edx
push eax
call fcn.007a3f20
add esp, 4
mov ecx, dword [esp + 4]
test eax, eax
mov dword [ecx + 0x28], eax
je 0x7a58e6
mov edi, 1
jmp 0x7a5c51
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x10]
mov dword [eax + ebp*4], ecx
or byte [edi + 8], 0x10
inc ebp
mov ecx, dword [esp + 0x18]
mov dword [edi + 0xc], ecx
mov edi, ebx
mov ecx, dword [ebx + 0x10]
add esi, dword [ecx + 4]
mov ecx, dword [esp + 4]
test byte [ecx + 0x98], 8
je 0x7a594d
mov cl, byte [edi]
cmp cl, 0x3e
je 0x7a5925
mov ebx, dword [esp + 4]
cmp cl, 0xae
je 0x7a594d
mov edx, dword [ebx + 0x24]
jmp 0x7a5931
mov ebx, dword [esp + 4]
mov edx, dword [ebx + 0x24]
cmp edx, 1
jg 0x7a594d
mov edi, dword [esp + 0xc]
lea ecx, [edx + 1]
cmp edx, esi
mov dword [ebx + 0x24], ecx
jge 0x7a5c5b
mov ecx, dword [ebx + 0x6c]
mov ebx, edx
jmp 0x7a5840
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x7a5984
mov esi, dword [esp + 4]
mov ecx, 9
mov dword [esi + 0x28], 9
call fcn.0077e340
push eax
push esi
call fcn.007a3990
add esp, 8
mov edi, 1
jmp 0x7a5c51
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x14]
mov ebx, edi
mov eax, dword [eax + 0x98]
and eax, 0xc
cmp eax, 4
jne 0x7a59d5
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov word [esi + 0x30], 4
mov dword [esi + 0x28], eax
sar eax, 0x1f
mov dword [esi + 0x2c], eax
mov word [esi + 0x58], 0xa02
movzx ecx, byte [ebx]
call fcn.007aeda0
mov ecx, eax
mov dword [esi + 0x60], eax
call fcn.00777870
mov dword [esi + 0x5c], eax
mov byte [esi + 0x5a], 1
add esi, 0x78
mov word [esi + 8], 4
lea ebp, [esi + 0x78]
mov edx, 0x64
mov eax, dword [ebx + 4]
mov ecx, ebp
mov dword [esi], eax
sar eax, 0x1f
mov dword [esi + 4], eax
mov word [esi + 0x30], 4
mov eax, dword [ebx + 8]
mov dword [esi + 0x28], eax
sar eax, 0x1f
mov dword [esi + 0x2c], eax
mov word [esi + 0x58], 4
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x50], eax
sar eax, 0x1f
mov dword [esi + 0x54], eax
call fcn.007a4750
mov edi, 1
test eax, eax
jne 0x7a5c51
mov word [esi + 0x80], 0x202
mov ecx, ebx
mov edx, dword [esi + 0x88]
push dword [esi + 0x90]
call fcn.007aeed0
add esp, 4
cmp eax, dword [esi + 0x88]
je 0x7a5a6b
mov dword [esi + 0x84], 0
mov ecx, ebp
mov edx, eax
push 0
push 1
push 0xffffffffffffffff
call fcn.0077de60
add esp, 0xc
jmp 0x7a5a7f
mov ecx, eax
call fcn.00777870
mov dword [esi + 0x84], eax
mov byte [esi + 0x82], 1
mov edx, dword [esp + 4]
mov eax, dword [edx + 0x98]
mov ecx, eax
and ecx, 0xc
cmp ecx, 4
jne 0x7a5c30
lea ecx, [esi + 0xa0]
mov edx, 4
call fcn.007a4750
test eax, eax
jne 0x7a5c51
mov eax, 0x775470
mov edx, 3
movzx ecx, byte [0xbad5bb]
sub edx, eax
mov eax, edx
xor eax, 0x775470
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7a5be9
mov al, byte [0xbad5bb]
mov ecx, edx
mov ah, 1
xor ecx, 0x775470
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad5bb], ah
jne 0x7a5ae3
mov edx, 0x775470
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, 0x775470
sete dl
not dl
add dl, 0x40
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7a5b5a
mov eax, ecx
movzx edx, byte [0xbad5bb]
xor eax, 0x775470
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt edx, eax
jae 0x7a5b36
jmp 0x7a5be9
xor ecx, 0x775470
movzx ecx, byte [0xbad5bb]
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7a5bbf
mov eax, 0x775470
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbad5b0]
xor edx, 0x775470
mov dl, 1
sete cl
xor ecx, 0x1a67619f
or ecx, 0xc40
xor eax, ecx
mov dword [0xbad5b0], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbad5b4], eax
or byte [0xbad5bb], dl
mov eax, 0x775470
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, 0x775470
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbad5bb], al
mov word [esi + 0xa8], 0x202
mov dword [esi + 0xac], 2
movzx eax, word [ebx + 2]
push eax
push 0xbad5b0
push dword [esi + 0xb0]
push 3
call fcn.00777b20
add esp, 0x10
mov edx, dword [esp + 4]
mov byte [esi + 0xaa], 1
mov word [esi + 0xd0], 1
mov eax, dword [edx + 0x98]
not eax
mov edi, 0x64
and eax, 0xc
mov word [edx + 0x90], ax
mov eax, dword [edx + 0x58]
add eax, 0x28
mov dword [edx + 0x78], eax
mov dword [edx + 0x28], 0
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebx + 0x28], 0
mov edi, 0x65
jmp 0x7a5c51