Function at 0x9575a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x24]
test edi, edi
je 0x957d87
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push edi
push 0
push ebx
call fcn.0097bba0
add esp, 0xc
mov ebp, esi
neg ebp
cmovl ebp, esi
mov esi, ebp
and esi, 0xff80
je 0x95790e
push ebp
call fcn.00957300
add esp, 4
mov ecx, dword [fcn.00553ca0]
mov edx, eax
test eax, eax
mov dword [esp], ecx
jne 0x9577ff
mov edx, fcn.00957450
xor eax, eax
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.00957450
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbc84af]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x9577f3
mov al, byte [0xbc84af]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, fcn.00957450
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc84af], ah
jne 0x957630
mov ecx, fcn.00957450
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, fcn.00957450
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x9576bb
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
add edx, fcn.00957450
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
movzx edx, byte [0xbc84af]
and al, 7
movzx eax, al
bt edx, eax
jae 0x957691
jmp 0x9577f3
xor eax, eax
add ecx, fcn.00957450
movzx edx, byte [0xbc84af]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x9577c8
mov eax, fcn.00957450
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00957450
sete cl
mov eax, ecx
xor eax, 0x5a7af46f
lea ecx, [eax + ecx*2 + 0x1320]
mov eax, dword [0xbc8490]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbc8490], eax
not eax
imul edx, eax
mov eax, dword [0xbc8494]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbc8494], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbc8498]
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbc8498], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbc849c]
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbc849c], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbc84a0]
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbc84a0], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbc84a4]
mov edi, edx
shl edi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbc84a4], eax
or edx, edi
not eax
mov edi, dword [esp + 0x24]
imul eax, edx
mov dl, 1
xor dword [0xbc84a8], eax
shl dl, cl
or byte [0xbc84af], dl
mov eax, fcn.00957450
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00957450
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbc84af], al
push esi
push 0xbc8490
push edi
jmp 0x9578fa
mov ebx, fcn.009575a0
movzx ecx, byte [0xbc84b7]
imul ebx, ebx
and ebx, 3
cmp ebx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x9578eb
mov al, byte [0xbc84b7]
cmp ebx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc84b7], ah
jne 0x95782a
mov ecx, fcn.009575a0
movzx edi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete ah
or ah, 6
xor ah, 7
movzx eax, ah
bt edi, eax
jae 0x957881
cmp ecx, 2
movzx edi, byte [0xbc84b7]
sete al
or al, 6
movzx eax, al
bt edi, eax
jae 0x957868
jmp 0x9578eb
cmp ecx, 2
movzx edi, byte [0xbc84b7]
sete al
or al, 6
movzx eax, al
bt edi, eax
jb 0x9578ca
mov eax, fcn.009575a0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 1
sete cl
or ecx, 0x88cf9806
add ecx, 0xd60
xor dword [0xbc84b0], ecx
and cl, 7
shl al, cl
or byte [0xbc84b7], al
mov eax, fcn.009575a0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbc84b7], al
push edx
push 0xbc84b0
mov edi, dword [esp + 0x2c]
push edi
mov ebx, dword [esp + 0x2c]
push ebx
call dword [esp + 0x10]
add esp, 0x10
cmp esi, 0x7780
je 0x957d87
mov eax, ebp
and eax, 0x7fff007f
mov dword [esp], eax
je 0x957d87
push ebx
call fcn.0097f4b0
add esp, 4
test eax, eax
je 0x957a6c
mov edx, edi
mov esi, eax
sub edx, eax
cmp edx, 5
jb 0x957d87
mov ebx, fcn.0097bba0
mov edi, fcn.0097bba0
xor eax, eax
or ebx, 2
xor edi, 2
mov ecx, ebx
add ecx, edi
movzx ecx, byte [0xbc84c3]
sete al
bt ecx, eax
jb 0x957a48
mov al, byte [0xbc84c3]
mov ecx, ebx
mov ah, 1
add ecx, edi
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc84c3], ah
jne 0x95796c
mov ecx, fcn.0097bba0
mov edi, fcn.0097bba0
or ecx, 2
xor edi, 2
mov ebx, ecx
add ebx, edi
sete ah
xor ah, 7
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x9579c5
mov ebx, ecx
xor eax, eax
add ebx, edi
movzx ebx, byte [0xbc84c3]
sete al
bt ebx, eax
jae 0x9579ab
jmp 0x957a48
xor eax, eax
add ecx, edi
movzx ecx, byte [0xbc84c3]
sete al
bt ecx, eax
jb 0x957a26
mov eax, fcn.0097bba0
mov edi, fcn.0097bba0
xor ecx, ecx
xor edi, 2
or eax, 2
add eax, edi
mov eax, dword [0xbc84b8]
sete cl
or ecx, 0xad519d08
add ecx, 0x1e8
mov edi, ecx
xor eax, ecx
shr edi, 0x1f
mov dword [0xbc84b8], eax
not eax
or edi, ecx
and cl, 7
imul edi, eax
mov ah, 1
xor dword [0xbc84bc], edi
shl ah, cl
or byte [0xbc84c3], ah
mov eax, fcn.0097bba0
mov ecx, fcn.0097bba0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbc84c3], al
mov ebx, dword [esp + 0x20]
lea eax, [ebx + esi]
push 0xbc84b8
push edx
push eax
call dword [0xbc91cc]
add esp, 0xc
mov edi, dword [esp + 0x24]
lea ebx, [ebx + esi + 3]
add esi, 3
sub edi, esi
push ebp
call fcn.00957450
add esp, 4
mov esi, dword [fcn.00553ca0]
test eax, eax
jne 0x957c3e
mov edx, fcn.00957300
movzx ecx, byte [0xbc84ef]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x957c2a
mov al, byte [0xbc84ef]
cmp edx, 2
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc84ef], ah
jne 0x957ab0
mov ecx, fcn.00957300
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x957b10
cmp ecx, 2
movzx edx, byte [0xbc84ef]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x957af2
jmp 0x957c2a
cmp ecx, 2
movzx ecx, byte [0xbc84ef]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x957c07
mov eax, fcn.00957300
xor ecx, ecx
mov ebp, esi
mov esi, edi
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbc84d0]
sete cl
xor ecx, 0x19a1f103
add ecx, 0x1088
xor eax, ecx
mov dword [0xbc84d0], eax
not eax
mov edx, dword [0xbc84d4]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbc84d4], edx
or edi, eax
not edx
mov eax, dword [0xbc84d8]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbc84d8], eax
or edi, edx
not eax
mov edx, dword [0xbc84dc]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbc84dc], edx
or edi, eax
not edx
mov eax, dword [0xbc84e0]
imul edx, edi
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbc84e0], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbc84e4]
mov edi, eax
shl edi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbc84e4], edx
or eax, edi
not edx
mov edi, esi
mov esi, ebp
imul edx, eax
xor dword [0xbc84e8], edx
mov dl, 1
shl dl, cl
or byte [0xbc84ef], dl
mov eax, fcn.00957300
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbc84ef], al
push dword [esp]
push 0xbc84d0
push edi
push ebx
call esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], esi
mov esi, ebx
mov ebx, fcn.00957450
mov ebp, eax
xor eax, eax
and ebx, 1
movzx edx, byte [0xbc84f7]
inc ebx
mov ecx, ebx
xor ecx, fcn.00957450
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x957d76
mov al, byte [0xbc84f7]
mov dword [esp + 4], edi
mov edi, ebx
xor edx, edx
xor edi, fcn.00957450
sete dl
mov ecx, edx
xor ecx, 3
lea ecx, [ecx + edx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbc84f7], dl
jne 0x957c7c
mov ecx, fcn.00957450
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov edi, ecx
xor edi, fcn.00957450
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x957cf7
mov edi, dword [esp + 4]
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbc84f7]
xor edx, fcn.00957450
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt ebx, eax
jae 0x957cd4
jmp 0x957d76
xor eax, eax
xor ecx, fcn.00957450
movzx edx, byte [0xbc84f7]
mov edi, dword [esp + 4]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x957d4e
mov eax, fcn.00957450
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00957450
sete cl
mov eax, ecx
xor eax, 0x9cdff2b
lea ecx, [eax + ecx*2 + 0xa0]
mov al, 1
xor dword [0xbc84f0], ecx
and cl, 7
shl al, cl
or byte [0xbc84f7], al
mov eax, fcn.00957450
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00957450
sete cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbc84f7], al
push ebp
push 0xbc84f0
push edi
push esi
call dword [esp + 0x10]
jmp 0x957c36
add esp, 8
jmp 0x957c39