Function at 0x77fe10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0xbcbae0]
mov edi, edx
mov esi, ecx
xor edx, edx
xor eax, ebp
mov dword [esp + 0xd0], eax
mov dword [esp + 0x68], 0
lea eax, [esp + 0x6c]
mov ebx, dword [ecx]
lea ecx, [esp + 0x4c]
push dword [ebx + 0x6c]
push 0x64
push eax
call fcn.007779c0
add esp, 0xc
cmp dword [ebx + 0xbc], 2
jl 0x77ffbe
mov al, byte [edi]
test al, al
je 0x780a14
mov ecx, fcn.007bd7d0
mov esi, 3
sub esi, ecx
mov dword [esp + 8], edi
inc edi
cmp al, 0xa
je 0x77fe86
movzx eax, byte [edi]
test al, al
jne 0x77fe7a
mov eax, esi
movzx ecx, byte [0xbaf06b]
xor eax, fcn.007bd7d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x77ff88
mov al, byte [0xbaf06b]
mov ecx, esi
mov dl, 1
xor ecx, fcn.007bd7d0
sete cl
not cl
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaf06b], dl
jne 0x77feac
mov ecx, esi
movzx eax, al
xor ecx, fcn.007bd7d0
sete cl
not cl
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x77ff0c
mov eax, esi
movzx ecx, byte [0xbaf06b]
xor eax, fcn.007bd7d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jae 0x77feed
jmp 0x77ff88
mov eax, esi
movzx ecx, byte [0xbaf06b]
xor eax, fcn.007bd7d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x77ff6c
mov eax, esi
xor ecx, ecx
xor eax, fcn.007bd7d0
mov eax, dword [0xbaf060]
sete cl
xor ecx, 0xaf6890b3
add ecx, 0xe80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbaf060], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbaf064], edx
mov dl, 1
shl dl, cl
or byte [0xbaf06b], dl
mov eax, esi
xor eax, fcn.007bd7d0
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbaf06b], al
push 3
push 0xbaf060
lea ebx, [esp + 0x54]
push ebx
call fcn.007774d0
add esp, 0xc
mov ecx, dword [esp + 8]
mov eax, edi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.007774d0
add esp, 0xc
mov al, byte [edi]
test al, al
jne 0x77fe76
jmp 0x780a14
cmp word [esi + 0x10], 0
je 0x780a4b
cmp byte [edi], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
je 0x780a14
mov eax, fcn.008055d0
mov ecx, 3
mov dword [esp + 4], 1
sub ecx, eax
mov dword [esp + 8], ecx
mov ecx, fcn.007b1c60
and ecx, 1
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, edi
lea edx, [esp + 0x64]
call fcn.007c5150
mov esi, eax
push eax
push edi
lea eax, [esp + 0x54]
push eax
call fcn.007774d0
add esp, 0xc
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x780a14
add edi, esi
cmp byte [edi], 0x3f
jne 0x78004f
mov esi, dword [esp + 0x14]
cmp ebx, 2
jl 0x780049
lea ecx, [edi + 1]
lea edx, [esp + 0x68]
call fcn.007bf280
mov eax, dword [esp + 0x68]
jmp 0x780064
mov eax, dword [esp + 4]
jmp 0x780060
mov esi, dword [esp + 0x14]
mov edx, edi
mov ecx, esi
push ebx
call fcn.0077fb80
add esp, 4
mov dword [esp + 0x68], eax
mov esi, dword [esi + 0x64]
lea ecx, [eax - 1]
add edi, ebx
lea ebx, [ecx + ecx*4]
movzx ecx, word [esi + ebx*8 + 8]
test cl, 1
je 0x78017f
mov edx, fcn.0079f410
mov ebx, eax
mov eax, fcn.0079f410
movzx ecx, byte [0xbaf077]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x780166
mov al, byte [0xbaf077]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf077], ah
jne 0x7800ae
cmp edx, 0xffffffff
movzx eax, al
sete cl
or cl, 6
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7800fa
cmp edx, 0xffffffff
movzx ecx, byte [0xbaf077]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jae 0x7800e1
jmp 0x780166
cmp edx, 0xffffffff
movzx ecx, byte [0xbaf077]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x780150
xor ecx, ecx
cmp edx, 0xffffffff
mov eax, dword [0xbaf06c]
sete cl
or ecx, 0xe6803dc6
add ecx, 0x470
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbaf06c], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov ah, 1
xor dword [0xbaf070], esi
shl ah, cl
or byte [0xbaf077], ah
cmp edx, 0xffffffff
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbaf077], al
push 4
push 0xbaf06c
lea eax, [esp + 0x54]
push eax
call fcn.007774d0
add esp, 0xc
jmp 0x780a06
lea edx, [esi + ebx*8]
test cl, 0x24
je 0x7802c3
mov esi, fcn.0079c3c0
mov dword [esp + 4], eax
xor eax, eax
imul esi, esi
movzx ebx, byte [0xbaf083]
and esi, 3
cmp esi, 3
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x7802a7
mov al, byte [0xbaf083]
xor ecx, ecx
cmp esi, 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 [0xbaf083], ah
jne 0x7801c3
xor ecx, ecx
cmp esi, 3
movzx eax, al
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78022a
xor eax, eax
cmp esi, 3
movzx ebx, byte [0xbaf083]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x780208
jmp 0x7802a7
xor eax, eax
cmp esi, 3
movzx ebx, byte [0xbaf083]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x780288
xor eax, eax
cmp esi, 3
sete al
mov ecx, eax
xor ecx, 0x5a043c57
lea ecx, [ecx + eax*2]
mov eax, dword [str.rPh_]
mov ebx, ecx
shr ebx, 0x1f
or ebx, ecx
xor eax, ecx
and cl, 7
mov dword [str.rPh_], eax
not eax
imul ebx, eax
mov ah, 1
xor dword [0xbaf07c], ebx
shl ah, cl
or byte [0xbaf083], ah
xor eax, eax
cmp esi, 3
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 [0xbaf083], al
push dword [edx + 4]
push dword [edx]
push str.rPh_
lea eax, [esp + 0x58]
push eax
call fcn.00777c30
add esp, 0x10
jmp 0x780a02
test cl, 8
je 0x7803df
mov esi, fcn.0082f820
mov ebx, eax
mov eax, fcn.0082f820
movzx ecx, byte [0xbaf08f]
and esi, 1
xor esi, eax
cmp esi, 0xffffffff
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7803ba
mov al, byte [0xbaf08f]
cmp esi, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf08f], ah
jne 0x7802ff
cmp esi, 0xffffffff
movzx eax, al
sete cl
not cl
and cl, 5
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x780351
cmp esi, 0xffffffff
movzx ecx, byte [0xbaf08f]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jae 0x780336
jmp 0x7803ba
cmp esi, 0xffffffff
movzx ecx, byte [0xbaf08f]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7803a2
xor ecx, ecx
cmp esi, 0xffffffff
mov eax, dword [0xbaf084]
sete cl
xor ecx, 0x2906d63d
or ecx, 0x180
xor eax, ecx
mov dword [0xbaf084], eax
not eax
imul eax, ecx
and cl, 5
xor dword [0xbaf088], eax
mov ah, 1
shl ah, cl
or byte [0xbaf08f], ah
cmp esi, 0xffffffff
mov al, 0xfe
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbaf08f], al
fld qword [edx]
sub esp, 0x10
lea eax, [esp + 0x5c]
fstp qword [esp + 8]
mov dword [esp + 4], 0xbaf084
mov dword [esp], eax
call fcn.00777c30
add esp, 0x10
jmp 0x780a06
test cl, 2
mov dword [esp + 4], eax
je 0x78058f
mov edx, fcn.0077b7d0
movzx ecx, byte [0xbaf09b]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 1
seta al
bt ecx, eax
jb 0x7804c2
mov al, byte [0xbaf09b]
cmp edx, 1
mov ah, 1
seta cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf09b], ah
jne 0x780414
cmp edx, 1
movzx eax, al
seta cl
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x780457
movzx ecx, byte [0xbaf09b]
xor eax, eax
cmp edx, 1
seta al
bt ecx, eax
jae 0x780441
jmp 0x7804c2
movzx ecx, byte [0xbaf09b]
xor eax, eax
cmp edx, 1
seta al
bt ecx, eax
jb 0x7804af
xor eax, eax
cmp edx, 1
mov ecx, dword [0xbaf090]
seta al
or eax, 0x6b8575b0
add eax, 0x1090
xor ecx, eax
mov dword [0xbaf090], ecx
not ecx
mov dword [esp], ecx
mov ecx, eax
shr ecx, 0x1f
or ecx, eax
and al, 7
imul ecx, dword [esp]
xor dword [0xbaf094], ecx
mov ch, 1
mov cl, al
shl ch, cl
or byte [0xbaf09b], ch
cmp edx, 1
mov al, 0xfe
seta cl
xor cl, 7
rol al, cl
and byte [0xbaf09b], al
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x4e]
cmp al, 1
je 0x78057d
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], ecx
movzx eax, al
lea ecx, [esp + 0x20]
mov edx, dword [esi + ebx*8 + 0x10]
push 0
push eax
push dword [esi + ebx*8 + 0xc]
mov esi, ecx
call fcn.0077de60
add esp, 0xc
mov ecx, esi
mov edx, 1
call fcn.007a4110
cmp eax, 7
jne 0x780557
mov byte [esp + 0x60], 7
mov dword [esp + 0x54], 0
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0xbaf090
lea eax, [esp + 0x58]
push eax
call fcn.00777c30
add esp, 0x10
mov ecx, esi
call fcn.0077d900
jmp 0x780a02
push dword [esi + ebx*8 + 0x10]
push dword [esi + ebx*8 + 0xc]
push 0xbaf090
jmp 0x7802b1
test ecx, 0x4000
je 0x7806f8
mov ebx, 0x79c980
mov esi, 0x79c980
movzx ecx, byte [0xbaf0b3]
or ebx, 2
xor esi, 2
mov eax, ebx
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7806e2
mov al, byte [0xbaf0b3]
mov ecx, ebx
mov ah, 1
add ecx, esi
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf0b3], ah
jne 0x7805cc
mov ecx, ebx
movzx eax, al
add ecx, esi
setne cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78061e
mov eax, ebx
movzx ecx, byte [0xbaf0b3]
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x780601
jmp 0x7806e2
mov eax, ebx
movzx ecx, byte [0xbaf0b3]
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7806cd
mov eax, ebx
xor ecx, ecx
add eax, esi
mov eax, dword [0xbaf0a0]
sete cl
xor ecx, 0x709b8401
or ecx, 0x11ec
xor eax, ecx
mov dword [esp + 0x18], ecx
mov dword [0xbaf0a0], eax
not eax
imul eax, ecx
mov ecx, dword [0xbaf0a4]
xor ecx, eax
mov dword [esp + 0xc], ecx
mov dword [0xbaf0a4], ecx
lea ecx, [eax + eax]
shr eax, 0x1e
mov dword [esp], ecx
mov ecx, dword [esp + 0xc]
or dword [esp], eax
mov eax, dword [str._sv]
not ecx
imul ecx, dword [esp]
xor eax, ecx
mov dword [esp + 0xc], eax
lea eax, [ecx*4]
shr ecx, 0x1d
mov dword [esp], eax
mov eax, dword [esp + 0xc]
or dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [str._sv], eax
not eax
and cl, 5
imul eax, dword [esp]
xor dword [0xbaf0ac], eax
mov ah, 1
shl ah, cl
or byte [0xbaf0b3], ah
add ebx, esi
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbaf0b3], al
push dword [edx]
push 0xbaf0a0
lea eax, [esp + 0x54]
push eax
call fcn.00777c30
jmp 0x7809ff
mov edx, dword [esp + 0x10]
movzx ecx, byte [0xbaf0bb]
mov eax, edx
xor eax, fcn.007b1c60
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7807d8
mov al, byte [0xbaf0bb]
mov ecx, edx
mov dl, 1
xor ecx, fcn.007b1c60
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaf0bb], dl
mov edx, dword [esp + 0x10]
jne 0x780720
mov ecx, edx
movzx eax, al
xor ecx, fcn.007b1c60
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78077e
mov eax, edx
movzx ecx, byte [0xbaf0bb]
xor eax, fcn.007b1c60
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x780761
jmp 0x7807d8
mov eax, edx
movzx ecx, byte [0xbaf0bb]
xor eax, fcn.007b1c60
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7807be
mov eax, edx
xor ecx, ecx
xor eax, fcn.007b1c60
mov al, 1
sete cl
or ecx, 0x2f7e6d34
xor dword [str.LJ_], ecx
and cl, 5
shl al, cl
or byte [0xbaf0bb], al
mov eax, edx
xor eax, fcn.007b1c60
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbaf0bb], al
push 2
push str.LJ_
lea eax, [esp + 0x54]
push eax
call fcn.007774d0
add esp, 0xc
mov eax, dword [esi + ebx*8 + 0xc]
test eax, eax
mov dword [esp], eax
jle 0x780923
lea esi, [esi + ebx*8 + 0x10]
xor ebx, ebx
mov edx, dword [esp + 8]
movzx ecx, byte [0xbaf0c7]
mov eax, edx
xor eax, fcn.008055d0
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x780900
mov al, byte [0xbaf0c7]
mov ecx, edx
mov dl, 1
xor ecx, fcn.008055d0
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaf0c7], dl
mov edx, dword [esp + 8]
jne 0x780829
mov ecx, edx
movzx eax, al
xor ecx, fcn.008055d0
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x780887
mov eax, edx
movzx ecx, byte [0xbaf0c7]
xor eax, fcn.008055d0
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x78086a
jmp 0x780900
mov eax, edx
movzx ecx, byte [0xbaf0c7]
xor eax, fcn.008055d0
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7808e6
mov eax, edx
xor ecx, ecx
xor eax, fcn.008055d0
mov eax, dword [0xbaf0bc]
sete cl
or ecx, 0xb89a2d8c
sub ecx, 0xffffff80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbaf0bc], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov ah, 1
xor dword [0xbaf0c0], edx
mov edx, dword [esp + 8]
shl ah, cl
or byte [0xbaf0c7], ah
mov eax, edx
xor eax, fcn.008055d0
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbaf0c7], al
mov eax, dword [esi]
movzx eax, byte [eax + ebx]
push eax
push 0xbaf0bc
lea eax, [esp + 0x54]
push eax
call fcn.00777c30
add esp, 0xc
inc ebx
cmp ebx, dword [esp]
jne 0x780801
mov edx, 0x79a070
movzx ecx, byte [0xbaf0cf]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7809ee
mov al, byte [0xbaf0cf]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbaf0cf], ah
jne 0x78094e
cmp edx, 2
movzx eax, al
sete cl
or cl, 6
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78099a
cmp edx, 2
movzx ecx, byte [0xbaf0cf]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jae 0x780981
jmp 0x7809ee
cmp edx, 2
movzx ecx, byte [0xbaf0cf]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7809d8
xor ecx, ecx
cmp edx, 2
mov al, 1
sete cl
or ecx, 0x33701636
add ecx, 0x310
xor dword [0xbaf0c8], ecx
and cl, 7
shl al, cl
or byte [0xbaf0cf], al
cmp edx, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbaf0cf], al
push 1
push 0xbaf0c8
lea eax, [esp + 0x54]
push eax
call fcn.007774d0
add esp, 0xc
mov ebx, dword [esp + 4]
inc ebx
cmp byte [edi], 0
mov dword [esp + 4], ebx
jne 0x77ffff
cmp byte [esp + 0x60], 0
je 0x780a28
lea eax, [esp + 0x4c]
push eax
call fcn.00777940
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.007778c0
mov ecx, dword [esp + 0xd0]
mov esi, eax
xor ecx, ebp
call fcn.00980459
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.00777870
push eax
push edi
lea eax, [esp + 0x54]
push eax
call fcn.007774d0
add esp, 0xc
jmp 0x780a14