Function at 0x7c0510
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp + 0xc], edx
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov eax, dword [0xbcbae0]
mov edi, ecx
xor eax, esp
test ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
je 0x7c0a79
mov esi, dword [esp + 0x38]
cmp dword [ebp + 0x10], 0
jne 0x7c0552
mov edi, esi
jmp 0x7c0a79
mov ecx, ebp
mov edx, ebx
call fcn.007c3430
test eax, eax
je 0x7c0566
mov edi, esi
jmp 0x7c0a79
mov ecx, dword [ebp + 4]
lea edi, [esi - 1]
mov edx, ebx
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0077c670
add esp, 8
test eax, eax
je 0x7c077e
mov edx, fcn.007a1b50
mov dword [esp + 8], edi
mov edi, fcn.007a1b50
xor eax, eax
mov dword [esp + 4], ebx
or edx, 2
xor edi, 2
movzx esi, byte [0xbae92b]
mov ecx, edx
add ecx, edi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7c0763
mov al, byte [0xbae92b]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, edi
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 [0xbae92b], ah
jne 0x7c05c9
mov ecx, fcn.007a1b50
mov edx, fcn.007a1b50
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 1
lea ebx, [esi + ebx*2 + 6]
and bl, 7
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7c064c
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbae92b]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7c0624
jmp 0x7c0763
xor eax, eax
add ecx, edx
movzx edx, byte [0xbae92b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7c0733
mov eax, fcn.007a1b50
mov ecx, fcn.007a1b50
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 - 0x58fdb71a]
mov eax, dword [0xbae910]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbae910], eax
not eax
imul edx, eax
mov eax, dword [0xbae914]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbae914], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbae918]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbae918], edx
or eax, esi
not edx
mov edi, dword [0xbae91c]
imul edx, eax
lea esi, [edx*8]
xor edi, edx
shr edx, 0x1c
mov dword [0xbae91c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbae920]
mov esi, edi
shl esi, 4
xor edx, edi
shr edi, 0x1b
mov dword [0xbae920], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbae924], edx
mov dl, 1
shl dl, cl
or byte [0xbae92b], dl
mov eax, fcn.007a1b50
mov ecx, fcn.007a1b50
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbae92b], al
push dword [esp + 4]
push 0xbae910
push ebp
call fcn.007c0fc0
add esp, 0xc
mov edi, dword [esp + 8]
jmp 0x7c0a79
mov ecx, dword [esp + 0x18]
call fcn.0077c8b0
cmp dword [esp + 0xc], 0
mov ecx, eax
mov dword [esp], eax
je 0x7c0a36
lea ecx, [ecx + 4]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
call fcn.0055d990
mov edi, dword [ebp]
mov dword [esp + 0x10], eax
cmp byte [edi + 0x11], 0
je 0x7c07cd
mov edx, dword [esp + 4]
mov ecx, ebp
push 0
push 2
call fcn.007c1190
mov eax, dword [esp + 0x18]
add esp, 8
mov edi, dword [ebp]
mov ecx, dword [edi + 0x28]
shr ecx, 2
add ecx, 0xfffffffe
cmp eax, ecx
ja 0x7c0826
mov ecx, dword [esp]
xor esi, esi
test eax, eax
jle 0x7c0a2e
lea ecx, [ecx + esi*4 + 8]
call fcn.0055d990
cmp byte [edi + 0x11], 0
mov ebx, eax
je 0x7c0808
mov ecx, ebp
mov edx, ebx
push 0
push 2
call fcn.007c1190
add esp, 8
mov ecx, ebp
mov edx, ebx
call fcn.007c3430
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
inc esi
cmp esi, eax
je 0x7c0a2e
mov edi, dword [ebp]
jmp 0x7c07e7
mov edx, fcn.007f0b40
xor eax, eax
movzx edi, byte [0xbae95b]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x7c0a12
mov al, byte [0xbae95b]
xor ebx, ebx
cmp edx, 3
mov ah, 1
sete bl
mov ecx, ebx
xor ecx, 3
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbae95b], ah
jne 0x7c0856
xor ecx, ecx
cmp edx, 3
movzx eax, al
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7c08b8
xor eax, eax
cmp edx, 3
movzx edi, byte [0xbae95b]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jae 0x7c0897
jmp 0x7c0a12
xor eax, eax
cmp edx, 3
movzx edi, byte [0xbae95b]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x7c09f5
xor eax, eax
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 0x17bb36a3
lea ecx, [ecx + eax*2 + 0x1000]
mov eax, dword [0xbae930]
xor eax, ecx
mov dword [0xbae930], eax
not eax
mov edi, dword [0xbae934]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edi, eax
shr eax, 0x1e
mov dword [0xbae934], edi
or ebx, eax
not edi
mov eax, dword [0xbae938]
imul edi, ebx
lea ebx, [edi*4]
xor eax, edi
shr edi, 0x1d
mov dword [0xbae938], eax
or ebx, edi
not eax
mov edi, dword [0xbae93c]
imul eax, ebx
lea ebx, [eax*8]
xor edi, eax
shr eax, 0x1c
mov dword [0xbae93c], edi
or ebx, eax
not edi
mov eax, dword [0xbae940]
imul edi, ebx
mov ebx, edi
shl ebx, 4
xor eax, edi
shr edi, 0x1b
mov dword [0xbae940], eax
or edi, ebx
not eax
imul eax, edi
mov edi, dword [str.Nj_b1]
mov ebx, eax
shl ebx, 5
xor edi, eax
shr eax, 0x1a
mov dword [str.Nj_b1], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbae948]
mov ebx, edi
shl ebx, 6
xor eax, edi
shr edi, 0x19
mov dword [0xbae948], eax
or edi, ebx
not eax
imul eax, edi
mov edi, dword [0xbae94c]
mov ebx, eax
shl ebx, 7
xor edi, eax
shr eax, 0x18
mov dword [0xbae94c], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbae950]
mov ebx, edi
shl ebx, 8
xor eax, edi
shr edi, 0x17
mov dword [0xbae950], eax
or edi, ebx
not eax
imul eax, edi
xor dword [0xbae954], eax
mov ah, 1
shl ah, cl
or byte [0xbae95b], ah
xor eax, eax
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 3
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbae95b], al
push dword [esp + 4]
push 0xbae930
push ebp
call fcn.007c0fc0
add esp, 0xc
mov ecx, dword [esp]
add esi, 0xfffffffe
mov edi, esi
jmp 0x7c0a5f
mov edi, dword [esp + 8]
sub edi, eax
jmp 0x7c0a5f
test edi, edi
je 0x7c0a5f
mov eax, dword [ebp]
mov al, byte [eax + 0x11]
test al, al
je 0x7c0a5f
mov ecx, dword [esp]
call fcn.0055d990
mov ecx, ebp
mov edx, eax
push ebx
push 4
call fcn.007c1190
mov ecx, dword [esp + 8]
add esp, 8
call fcn.0055d990
mov ecx, dword [esp + 0x18]
mov ebx, eax
call fcn.0077c8c0
test ebx, ebx
mov esi, edi
jne 0x7c0545
test edi, edi
je 0x7c0fa0
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0x14]
jne 0x7c0fa0
mov edx, fcn.0078dec0
xor eax, eax
movzx esi, byte [0xbae967]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7c0bcf
mov al, byte [0xbae967]
xor ecx, ecx
cmp edx, 2
mov ah, 1
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 [0xbae967], ah
jne 0x7c0ac2
mov ecx, fcn.0078dec0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
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 0x7c0b37
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbae967]
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7c0b12
jmp 0x7c0bcf
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbae967]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7c0ba5
mov eax, fcn.0078dec0
xor ecx, ecx
mov esi, dword [0xbae95c]
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0xd4ac866f
lea ecx, [eax + ecx*2 + 0x1120]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbae95c], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbae960], edx
mov dl, 1
shl dl, cl
or byte [0xbae967], dl
mov eax, fcn.0078dec0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
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 [0xbae967], al
mov edx, fcn.00818370
xor eax, eax
movzx esi, byte [0xbae98b]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7c0d81
mov al, byte [0xbae98b]
xor ecx, ecx
cmp edx, 3
mov ah, 1
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 [0xbae98b], ah
jne 0x7c0c03
mov ecx, fcn.00818370
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
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 0x7c0c78
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbae98b]
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7c0c53
jmp 0x7c0d81
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbae98b]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7c0d57
mov eax, fcn.00818370
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0xab2ffc4f
lea ecx, [eax + ecx*2 + 0x20]
mov eax, dword [0xbae970]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbae970], eax
not eax
imul edx, eax
mov eax, dword [0xbae974]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbae974], eax
or esi, edx
not eax
mov edx, dword [0xbae978]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbae978], edx
or esi, eax
not edx
mov eax, dword [0xbae97c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbae97c], eax
or esi, edx
not eax
mov edx, dword [0xbae980]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbae980], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbae984], edx
mov dl, 1
shl dl, cl
or byte [0xbae98b], dl
mov eax, fcn.00818370
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
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 [0xbae98b], al
mov eax, fcn.0081ac30
mov edx, 3
movzx esi, byte [0xbae9af]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.0081ac30
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7c0f75
mov al, byte [0xbae9af]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.0081ac30
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 [0xbae9af], ah
jne 0x7c0dbb
mov edx, fcn.0081ac30
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.0081ac30
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 0x7c0e40
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbae9af]
xor edx, fcn.0081ac30
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7c0e16
jmp 0x7c0f75
xor eax, eax
xor ecx, fcn.0081ac30
movzx edx, byte [0xbae9af]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7c0f47
mov eax, fcn.0081ac30
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.0081ac30
sete al
mov ecx, eax
xor ecx, 0xe634b1af
lea ecx, [ecx + eax*2 + 0x1020]
mov eax, dword [0xbae990]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbae990], eax
not eax
imul edx, eax
mov eax, dword [0xbae994]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbae994], eax
or esi, edx
not eax
mov edx, dword [0xbae998]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbae998], edx
or esi, eax
not edx
mov eax, dword [0xbae99c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbae99c], eax
or esi, edx
not eax
mov edx, dword [0xbae9a0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbae9a0], edx
or eax, esi
not edx
mov ebx, dword [0xbae9a4]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbae9a4], ebx
or edx, esi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbae9a8], ebx
shl dl, cl
or byte [0xbae9af], dl
mov eax, fcn.0081ac30
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.0081ac30
sete al
mov ecx, eax
not ecx
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbae9af], al
mov esi, dword [esp + 0x38]
mov ecx, 0xbae970
mov edx, 0xbae95c
mov eax, esi
sub eax, edi
cmp dword [esp + 0xc], 0
cmove edx, ecx
push esi
push eax
push edx
push 0xbae990
push ebp
call fcn.007c0fc0
add esp, 0x14
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00980459
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret