Function at 0x78b700
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 [0xbd33e0]
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.007832c0
add esp, 0xc
cmp dword [ebx + 0xbc], 2
jl 0x78b8ae
mov al, byte [edi]
test al, al
je 0x78c304
mov ecx, fcn.007c90d0
mov esi, 3
sub esi, ecx
mov dword [esp + 8], edi
inc edi
cmp al, 0xa
je 0x78b776
movzx eax, byte [edi]
test al, al
jne 0x78b76a
mov eax, esi
movzx ecx, byte [0xbb69cb]
xor eax, fcn.007c90d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x78b878
mov al, byte [0xbb69cb]
mov ecx, esi
mov dl, 1
xor ecx, fcn.007c90d0
sete cl
not cl
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb69cb], dl
jne 0x78b79c
mov ecx, esi
movzx eax, al
xor ecx, fcn.007c90d0
sete cl
not cl
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78b7fc
mov eax, esi
movzx ecx, byte [0xbb69cb]
xor eax, fcn.007c90d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jae 0x78b7dd
jmp 0x78b878
mov eax, esi
movzx ecx, byte [0xbb69cb]
xor eax, fcn.007c90d0
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x78b85c
mov eax, esi
xor ecx, ecx
xor eax, fcn.007c90d0
mov eax, dword [0xbb69c0]
sete cl
xor ecx, 0xaf6890b3
add ecx, 0xe80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb69c0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb69c4], edx
mov dl, 1
shl dl, cl
or byte [0xbb69cb], dl
mov eax, esi
xor eax, fcn.007c90d0
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb69cb], al
push 3
push 0xbb69c0
lea ebx, [esp + 0x54]
push ebx
call fcn.00782dd0
add esp, 0xc
mov ecx, dword [esp + 8]
mov eax, edi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.00782dd0
add esp, 0xc
mov al, byte [edi]
test al, al
jne 0x78b766
jmp 0x78c304
cmp word [esi + 0x10], 0
je 0x78c33b
cmp byte [edi], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
je 0x78c304
mov eax, fcn.00810e30
mov ecx, 3
mov dword [esp + 4], 1
sub ecx, eax
mov dword [esp + 8], ecx
mov ecx, fcn.007bd570
and ecx, 1
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, edi
lea edx, [esp + 0x64]
call fcn.007d0a40
mov esi, eax
push eax
push edi
lea eax, [esp + 0x54]
push eax
call fcn.00782dd0
add esp, 0xc
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x78c304
add edi, esi
cmp byte [edi], 0x3f
jne 0x78b93f
mov esi, dword [esp + 0x14]
cmp ebx, 2
jl 0x78b939
lea ecx, [edi + 1]
lea edx, [esp + 0x68]
call fcn.007cab80
mov eax, dword [esp + 0x68]
jmp 0x78b954
mov eax, dword [esp + 4]
jmp 0x78b950
mov esi, dword [esp + 0x14]
mov edx, edi
mov ecx, esi
push ebx
call fcn.0078b470
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 0x78ba6f
mov edx, fcn.007aad10
mov ebx, eax
mov eax, fcn.007aad10
movzx ecx, byte [0xbb69d7]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78ba56
mov al, byte [0xbb69d7]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb69d7], ah
jne 0x78b99e
cmp edx, 0xffffffff
movzx eax, al
sete cl
or cl, 6
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78b9ea
cmp edx, 0xffffffff
movzx ecx, byte [0xbb69d7]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jae 0x78b9d1
jmp 0x78ba56
cmp edx, 0xffffffff
movzx ecx, byte [0xbb69d7]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78ba40
xor ecx, ecx
cmp edx, 0xffffffff
mov eax, dword [0xbb69cc]
sete cl
or ecx, 0xe6803dc6
add ecx, 0x470
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbb69cc], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov ah, 1
xor dword [0xbb69d0], esi
shl ah, cl
or byte [0xbb69d7], ah
cmp edx, 0xffffffff
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb69d7], al
push 4
push 0xbb69cc
lea eax, [esp + 0x54]
push eax
call fcn.00782dd0
add esp, 0xc
jmp 0x78c2f6
lea edx, [esi + ebx*8]
test cl, 0x24
je 0x78bbb3
mov esi, fcn.007a7cb0
mov dword [esp + 4], eax
xor eax, eax
imul esi, esi
movzx ebx, byte [0xbb69e3]
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 0x78bb97
mov al, byte [0xbb69e3]
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 [0xbb69e3], ah
jne 0x78bab3
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 0x78bb1a
xor eax, eax
cmp esi, 3
movzx ebx, byte [0xbb69e3]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x78baf8
jmp 0x78bb97
xor eax, eax
cmp esi, 3
movzx ebx, byte [0xbb69e3]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x78bb78
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 [0xbb69dc], ebx
shl ah, cl
or byte [0xbb69e3], 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 [0xbb69e3], al
push dword [edx + 4]
push dword [edx]
push str.rPh_
lea eax, [esp + 0x58]
push eax
call fcn.00783530
add esp, 0x10
jmp 0x78c2f2
test cl, 8
je 0x78bccf
mov esi, fcn.0083b080
mov ebx, eax
mov eax, fcn.0083b080
movzx ecx, byte [0xbb69ef]
and esi, 1
xor esi, eax
cmp esi, 0xffffffff
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x78bcaa
mov al, byte [0xbb69ef]
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 [0xbb69ef], ah
jne 0x78bbef
cmp esi, 0xffffffff
movzx eax, al
sete cl
not cl
and cl, 5
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78bc41
cmp esi, 0xffffffff
movzx ecx, byte [0xbb69ef]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jae 0x78bc26
jmp 0x78bcaa
cmp esi, 0xffffffff
movzx ecx, byte [0xbb69ef]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x78bc92
xor ecx, ecx
cmp esi, 0xffffffff
mov eax, dword [0xbb69e4]
sete cl
xor ecx, 0x2906d63d
or ecx, 0x180
xor eax, ecx
mov dword [0xbb69e4], eax
not eax
imul eax, ecx
and cl, 5
xor dword [0xbb69e8], eax
mov ah, 1
shl ah, cl
or byte [0xbb69ef], ah
cmp esi, 0xffffffff
mov al, 0xfe
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbb69ef], al
fld qword [edx]
sub esp, 0x10
lea eax, [esp + 0x5c]
fstp qword [esp + 8]
mov dword [esp + 4], 0xbb69e4
mov dword [esp], eax
call fcn.00783530
add esp, 0x10
jmp 0x78c2f6
test cl, 2
mov dword [esp + 4], eax
je 0x78be7f
mov edx, fcn.007870c0
movzx ecx, byte [0xbb69fb]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 1
seta al
bt ecx, eax
jb 0x78bdb2
mov al, byte [0xbb69fb]
cmp edx, 1
mov ah, 1
seta cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb69fb], ah
jne 0x78bd04
cmp edx, 1
movzx eax, al
seta cl
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78bd47
movzx ecx, byte [0xbb69fb]
xor eax, eax
cmp edx, 1
seta al
bt ecx, eax
jae 0x78bd31
jmp 0x78bdb2
movzx ecx, byte [0xbb69fb]
xor eax, eax
cmp edx, 1
seta al
bt ecx, eax
jb 0x78bd9f
xor eax, eax
cmp edx, 1
mov ecx, dword [0xbb69f0]
seta al
or eax, 0x6b8575b0
add eax, 0x1090
xor ecx, eax
mov dword [0xbb69f0], 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 [0xbb69f4], ecx
mov ch, 1
mov cl, al
shl ch, cl
or byte [0xbb69fb], ch
cmp edx, 1
mov al, 0xfe
seta cl
xor cl, 7
rol al, cl
and byte [0xbb69fb], al
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x4e]
cmp al, 1
je 0x78be6d
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.00789750
add esp, 0xc
mov ecx, esi
mov edx, 1
call fcn.007afa10
cmp eax, 7
jne 0x78be47
mov byte [esp + 0x60], 7
mov dword [esp + 0x54], 0
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0xbb69f0
lea eax, [esp + 0x58]
push eax
call fcn.00783530
add esp, 0x10
mov ecx, esi
call fcn.007891f0
jmp 0x78c2f2
push dword [esi + ebx*8 + 0x10]
push dword [esi + ebx*8 + 0xc]
push 0xbb69f0
jmp 0x78bba1
test ecx, 0x4000
je 0x78bfe8
mov ebx, 0x7a8270
mov esi, 0x7a8270
movzx ecx, byte [0xbb6a13]
or ebx, 2
xor esi, 2
mov eax, ebx
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78bfd2
mov al, byte [0xbb6a13]
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 [0xbb6a13], ah
jne 0x78bebc
mov ecx, ebx
movzx eax, al
add ecx, esi
setne cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78bf0e
mov eax, ebx
movzx ecx, byte [0xbb6a13]
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x78bef1
jmp 0x78bfd2
mov eax, ebx
movzx ecx, byte [0xbb6a13]
add eax, esi
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78bfbd
mov eax, ebx
xor ecx, ecx
add eax, esi
mov eax, dword [0xbb6a00]
sete cl
xor ecx, 0x709b8401
or ecx, 0x11ec
xor eax, ecx
mov dword [esp + 0x18], ecx
mov dword [0xbb6a00], eax
not eax
imul eax, ecx
mov ecx, dword [0xbb6a04]
xor ecx, eax
mov dword [esp + 0xc], ecx
mov dword [0xbb6a04], 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 [0xbb6a0c], eax
mov ah, 1
shl ah, cl
or byte [0xbb6a13], ah
add ebx, esi
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6a13], al
push dword [edx]
push 0xbb6a00
lea eax, [esp + 0x54]
push eax
call fcn.00783530
jmp 0x78c2ef
mov edx, dword [esp + 0x10]
movzx ecx, byte [0xbb6a1b]
mov eax, edx
xor eax, fcn.007bd570
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c0c8
mov al, byte [0xbb6a1b]
mov ecx, edx
mov dl, 1
xor ecx, fcn.007bd570
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb6a1b], dl
mov edx, dword [esp + 0x10]
jne 0x78c010
mov ecx, edx
movzx eax, al
xor ecx, fcn.007bd570
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78c06e
mov eax, edx
movzx ecx, byte [0xbb6a1b]
xor eax, fcn.007bd570
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x78c051
jmp 0x78c0c8
mov eax, edx
movzx ecx, byte [0xbb6a1b]
xor eax, fcn.007bd570
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c0ae
mov eax, edx
xor ecx, ecx
xor eax, fcn.007bd570
mov al, 1
sete cl
or ecx, 0x2f7e6d34
xor dword [str.LJ_], ecx
and cl, 5
shl al, cl
or byte [0xbb6a1b], al
mov eax, edx
xor eax, fcn.007bd570
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6a1b], al
push 2
push str.LJ_
lea eax, [esp + 0x54]
push eax
call fcn.00782dd0
add esp, 0xc
mov eax, dword [esi + ebx*8 + 0xc]
test eax, eax
mov dword [esp], eax
jle 0x78c213
lea esi, [esi + ebx*8 + 0x10]
xor ebx, ebx
mov edx, dword [esp + 8]
movzx ecx, byte [0xbb6a27]
mov eax, edx
xor eax, fcn.00810e30
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c1f0
mov al, byte [0xbb6a27]
mov ecx, edx
mov dl, 1
xor ecx, fcn.00810e30
sete cl
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb6a27], dl
mov edx, dword [esp + 8]
jne 0x78c119
mov ecx, edx
movzx eax, al
xor ecx, fcn.00810e30
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78c177
mov eax, edx
movzx ecx, byte [0xbb6a27]
xor eax, fcn.00810e30
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x78c15a
jmp 0x78c1f0
mov eax, edx
movzx ecx, byte [0xbb6a27]
xor eax, fcn.00810e30
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c1d6
mov eax, edx
xor ecx, ecx
xor eax, fcn.00810e30
mov eax, dword [0xbb6a1c]
sete cl
or ecx, 0xb89a2d8c
sub ecx, 0xffffff80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6a1c], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov ah, 1
xor dword [0xbb6a20], edx
mov edx, dword [esp + 8]
shl ah, cl
or byte [0xbb6a27], ah
mov eax, edx
xor eax, fcn.00810e30
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6a27], al
mov eax, dword [esi]
movzx eax, byte [eax + ebx]
push eax
push 0xbb6a1c
lea eax, [esp + 0x54]
push eax
call fcn.00783530
add esp, 0xc
inc ebx
cmp ebx, dword [esp]
jne 0x78c0f1
mov edx, 0x7a5960
movzx ecx, byte [0xbb6a2f]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78c2de
mov al, byte [0xbb6a2f]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6a2f], ah
jne 0x78c23e
cmp edx, 2
movzx eax, al
sete cl
or cl, 6
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78c28a
cmp edx, 2
movzx ecx, byte [0xbb6a2f]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jae 0x78c271
jmp 0x78c2de
cmp edx, 2
movzx ecx, byte [0xbb6a2f]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78c2c8
xor ecx, ecx
cmp edx, 2
mov al, 1
sete cl
or ecx, 0x33701636
add ecx, 0x310
xor dword [0xbb6a28], ecx
and cl, 7
shl al, cl
or byte [0xbb6a2f], al
cmp edx, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb6a2f], al
push 1
push 0xbb6a28
lea eax, [esp + 0x54]
push eax
call fcn.00782dd0
add esp, 0xc
mov ebx, dword [esp + 4]
inc ebx
cmp byte [edi], 0
mov dword [esp + 4], ebx
jne 0x78b8ef
cmp byte [esp + 0x60], 0
je 0x78c318
lea eax, [esp + 0x4c]
push eax
call fcn.00783240
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.007831c0
mov ecx, dword [esp + 0xd0]
mov esi, eax
xor ecx, ebp
call fcn.00989fe9
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
call fcn.00783170
push eax
push edi
lea eax, [esp + 0x54]
push eax
call fcn.00782dd0
add esp, 0xc
jmp 0x78c304