Function at 0x78a380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
mov eax, dword [0xbcbae0]
mov ebx, edx
mov ebp, ecx
xor eax, esp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [edx], 0
call fcn.00774fb0
mov esi, eax
test eax, eax
jne 0x78af48
xor edx, edx
test di, di
js 0x78a3e3
mov al, byte [0xbab994]
test al, al
je 0x78a3e3
mov edx, 1
test edi, 0x10000
jne 0x78a3e3
movzx edx, byte [0xbab995]
test edi, 0x40000
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebp
mov dword [esp], edx
je 0x78a3fe
and edi, 0xfffdffff
jmp 0x78a40d
cmp dword [0xbaba58], 0
je 0x78a411
or edi, 0x20000
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], edi
and edi, 0xfff600e7
mov ecx, 0x200
xor edx, edx
xor esi, esi
mov dword [esp + 0x34], edi
call fcn.0077b7b0
test eax, eax
je 0x78af0b
cmp dword [esp], 0
mov ebp, eax
jne 0x78a512
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, 0x80fa10
mov esi, 3
sub esi, eax
xor eax, eax
movzx edx, byte [0xbac233]
mov dword [esp + 4], edi
mov ecx, esi
xor ecx, 0x80fa10
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a5df
mov al, byte [0xbac233]
mov edi, esi
xor edx, edx
xor edi, 0x80fa10
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [edx + ecx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbac233], dl
jne 0x78a487
mov edx, 0x80fa10
mov ecx, 3
xor ebx, ebx
movzx eax, al
sub ecx, edx
mov esi, ecx
xor esi, 0x80fa10
sete bl
mov edx, ebx
xor edx, 1
lea edx, [ebx + edx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78a535
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbac233]
xor edx, 0x80fa10
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x78a4e6
jmp 0x78a5df
mov ecx, 1
call fcn.00775140
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x78a444
push ebp
call fcn.00775660
add esp, 4
jmp 0x78af0b
xor eax, eax
xor ecx, 0x80fa10
movzx edx, byte [0xbac233]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a5af
mov eax, 0x80fa10
mov ecx, 3
mov esi, dword [str.2_p0]
sub ecx, eax
xor eax, eax
xor ecx, 0x80fa10
sete al
mov ecx, eax
not ecx
and ecx, 0x231
lea ecx, [eax + ecx*2 + 0x713e5c0e]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [str.2_p0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbac22c], edx
mov dl, 1
shl dl, cl
or byte [0xbac233], dl
mov eax, 0x80fa10
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x80fa10
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbac233], al
mov esi, fcn.007f4510
xor eax, eax
movzx edx, byte [0xbb65ef]
not esi
and esi, 1
mov ecx, esi
add ecx, fcn.007f4510
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a741
mov al, byte [0xbb65ef]
mov edx, esi
xor ecx, ecx
add edx, fcn.007f4510
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb65ef], dl
jne 0x78a618
mov ecx, fcn.007f4510
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007f4510
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78a69e
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb65ef]
add edx, fcn.007f4510
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x78a673
jmp 0x78a741
xor eax, eax
add ecx, fcn.007f4510
movzx edx, byte [0xbb65ef]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a715
mov ecx, fcn.007f4510
xor eax, eax
mov esi, dword [0xbb65e4]
not ecx
and ecx, 1
add ecx, fcn.007f4510
sete al
mov ecx, eax
not ecx
and ecx, 0x703
lea ecx, [eax + ecx*2 + 0x5d01a03c]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb65e4], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb65e8], edx
mov dl, 1
shl dl, cl
or byte [0xbb65ef], dl
mov eax, fcn.007f4510
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007f4510
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb65ef], al
mov esi, fcn.007f2440
xor eax, eax
movzx edx, byte [0xbb65fb]
imul esi, esi
and esi, 3
cmp esi, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a891
mov al, byte [0xbb65fb]
xor ecx, ecx
cmp esi, 2
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb65fb], dl
jne 0x78a777
mov ecx, fcn.007f2440
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78a7f2
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb65fb]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x78a7cb
jmp 0x78a891
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb65fb]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78a865
mov ecx, fcn.007f2440
xor eax, eax
mov esi, dword [0xbb65f0]
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x801
lea ecx, [eax + ecx*2 - 0x4e570e3a]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb65f0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb65f4], edx
mov dl, 1
shl dl, cl
or byte [0xbb65fb], dl
mov eax, fcn.007f2440
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb65fb], al
push dword [esp]
call fcn.007748d0
add esp, 4
lea eax, [ebp + 0x1b4]
mov dword [ebp + 0x44], 0xff
mov dword [ebp + 0x14], 2
mov dword [ebp + 0x60], 0xf03b7906
lea edi, [ebp + 0x6c]
mov ecx, 0xb
mov esi, 0xb43d18
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x118], 1
mov word [ebp + 0x11c], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x98], 0
mov byte [ebp + 0x4f], 1
mov byte [ebp + 0x54], 0xff
mov eax, dword [0xbaba38]
mov ecx, dword [0xbaba3c]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x9c], 0x7fffffff
or dword [ebp + 0x20], 0xe00480e0
lea ecx, [ebp + 0x194]
call fcn.007be3f0
mov ecx, ebp
add ecx, 0x168
call fcn.007be3f0
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.00810eb0
push 0
push 1
call fcn.0078b0a0
add esp, 0x10
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.00810eb0
push 0
push 3
call fcn.0078b0a0
add esp, 0x10
mov ecx, ebp
mov edx, str.2_p0
push 0
push fcn.00810eb0
push 0
push 2
call fcn.0078b0a0
add esp, 0x10
mov ecx, ebp
mov edx, 0xbb65e4
push 0
push 0x83b220
push 0
push 1
call fcn.0078b0a0
add esp, 0x10
mov ecx, ebp
mov edx, 0xbb65f0
push 0
push 0x83b250
push 0
push 1
call fcn.0078b0a0
add esp, 0x10
cmp byte [ebp + 0x51], 0
jne 0x78aefe
mov ecx, ebp
mov edx, 1
push 0
push str.2_p0
call fcn.007c8160
add esp, 8
mov dword [ebp + 8], eax
mov eax, dword [esp + 4]
mov ecx, 0x46
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0xc]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x78a9ff
mov ecx, 0xd06
call fcn.00774740
mov edi, 0x15
jmp 0x78aa3a
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
lea esi, [esp + 0x18]
lea edi, [esp + 0x34]
push eax
push esi
push ebp
push edi
call fcn.0082b3a0
add esp, 0x10
test eax, eax
je 0x78abb6
mov edi, eax
cmp eax, 7
jne 0x78aa3a
mov ecx, ebp
call fcn.0077e7a0
mov edi, 7
mov eax, 0x79cf80
mov esi, 3
movzx edx, byte [0xbb6603]
sub esi, eax
xor eax, eax
mov ecx, esi
xor ecx, 0x79cf80
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78ab8e
mov al, byte [0xbb6603]
mov dword [esp], edi
mov edi, esi
xor ecx, ecx
mov ah, 1
xor edi, 0x79cf80
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6603], ah
jne 0x78aa77
mov esi, 0x79cf80
mov ecx, 3
xor edx, edx
movzx eax, al
sub ecx, esi
mov esi, ecx
xor esi, 0x79cf80
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78aaff
mov edi, dword [esp]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb6603]
xor edx, 0x79cf80
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x78aad5
jmp 0x78ab8e
xor eax, eax
xor ecx, 0x79cf80
movzx edx, byte [0xbb6603]
mov edi, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78ab60
mov eax, 0x79cf80
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x79cf80
sete al
mov ecx, eax
not ecx
and ecx, 0x447
lea ecx, [eax + ecx*2 + 0x261ae3b8]
mov al, 1
xor dword [0xbb65fc], ecx
and cl, 7
shl al, cl
or byte [0xbb6603], al
mov eax, 0x79cf80
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, 0x79cf80
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb6603], al
mov esi, dword [esp + 0x14]
mov eax, 0xbb65fc
test esi, esi
cmove eax, esi
push esi
push eax
push edi
push ebp
call fcn.0077b710
add esp, 0x10
push esi
call fcn.00775660
add esp, 4
jmp 0x78aefe
mov eax, 0x100
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
or eax, dword [esp + 0x34]
add esi, 4
push eax
push 0
push esi
push ebp
call fcn.00795900
add esp, 0x10
test eax, eax
je 0x78abf7
cmp eax, 0xc0a
jne 0x78abe9
mov eax, 7
mov ecx, ebp
mov edx, eax
call fcn.0077b7d0
jmp 0x78aefe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
call fcn.0077c370
mov eax, dword [ebp + 0x10]
mov ecx, ebp
mov edx, dword [eax + 4]
call fcn.0082c750
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
cmp byte [ebp + 0x51], 0
mov edx, dword [ebp + 0x10]
jne 0x78ac27
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x4d]
mov byte [ebp + 0x4e], al
mov esi, fcn.00827fe0
movzx ecx, byte [0xbb660f]
imul esi, esi
and esi, 3
cmp esi, 1
seta al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x78ad3a
mov al, byte [0xbb660f]
cmp esi, 1
mov ah, 1
seta cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb660f], ah
jne 0x78ac54
mov ecx, fcn.00827fe0
movzx esi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta ah
not ah
and ah, 5
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x78acb4
cmp ecx, 1
movzx esi, byte [0xbb660f]
seta al
not al
and al, 5
movzx eax, al
bt esi, eax
jae 0x78ac96
jmp 0x78ad3a
cmp ecx, 1
movzx ecx, byte [0xbb660f]
seta al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x78ad17
mov eax, fcn.00827fe0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb6604]
seta cl
xor ecx, 0xf1f84905
add ecx, 0x120
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbb6604], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov ah, 1
xor dword [0xbb6608], esi
shl ah, cl
or byte [0xbb660f], ah
mov eax, fcn.00827fe0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbb660f], al
mov eax, fcn.0079f860
mov esi, 3
movzx ecx, byte [0xbb661b]
sub esi, eax
mov eax, esi
xor eax, fcn.0079f860
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78ae59
mov al, byte [0xbb661b]
mov ecx, esi
mov ah, 1
xor ecx, fcn.0079f860
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb661b], ah
jne 0x78ad6a
mov esi, fcn.0079f860
mov ecx, 3
sub ecx, esi
mov esi, ecx
xor esi, fcn.0079f860
sete ah
or ah, 6
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x78add3
mov eax, ecx
movzx esi, byte [0xbb661b]
xor eax, fcn.0079f860
sete al
or al, 6
movzx eax, al
bt esi, eax
jae 0x78adb3
jmp 0x78ae59
xor ecx, fcn.0079f860
movzx ecx, byte [0xbb661b]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78ae34
mov eax, fcn.0079f860
mov esi, 3
xor ecx, ecx
sub esi, eax
mov eax, dword [0xbb6610]
xor esi, fcn.0079f860
sete cl
or ecx, 0x4def49e
add ecx, 0x1280
xor eax, ecx
mov dword [0xbb6610], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbb6614], eax
mov ah, 1
shl ah, cl
or byte [0xbb661b], ah
mov eax, fcn.0079f860
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.0079f860
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb661b], al
mov ecx, dword [edx + 4]
call fcn.0077ce10
mov ecx, ebp
xor edx, edx
call fcn.0082c750
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xbb6604
mov eax, dword [ebp + 0x10]
mov byte [eax + 8], 3
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], 0xbb6610
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x18], 1
mov dword [ebp + 0x60], 0xa029a697
cmp byte [ebp + 0x51], 0
jne 0x78aefe
mov ecx, ebp
xor edx, edx
call fcn.0077b7d0
mov ecx, ebp
call fcn.0083b2a0
push ebp
call fcn.0078a280
add esp, 4
mov ecx, ebp
test eax, eax
jne 0x78aed1
call fcn.0083b420
push ebp
call fcn.0078a280
add esp, 4
test eax, eax
je 0x78aed8
jmp 0x78aefe
mov edx, eax
call fcn.0077b7d0
mov ecx, ebp
xor edx, edx
push dword [0xbab9a8]
push dword [0xbab9a4]
call fcn.007887d0
add esp, 8
push 0x3e8
push ebp
call fcn.00789a90
add esp, 8
push dword [ebp + 0xc]
call fcn.007748e0
add esp, 4
mov esi, ebp
push esi
call fcn.0078a280
add esp, 4
mov edi, dword [esp + 0x10]
mov ebx, eax
test eax, eax
je 0x78af37
cmp ebx, 7
jne 0x78af30
push esi
call fcn.00788a50
add esp, 4
xor esi, esi
jmp 0x78af37
mov dword [esi + 0x60], 0x4b771290
mov dword [edi], esi
push dword [esp + 0x18]
call fcn.00775660
add esp, 4
movzx esi, bl
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00980459
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret