Function at 0x7d0140
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
mov ecx, dword [ecx + 0xe4]
mov ebx, edx
test ecx, ecx
je 0x7d0847
mov eax, dword [ecx + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ecx
test al, 4
je 0x7d03a7
mov edx, fcn.007a4c30
mov eax, fcn.007a4c30
movzx ecx, byte [0xbb168f]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7d038e
mov al, byte [0xbb168f]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb168f], ah
jne 0x7d019a
mov ecx, fcn.007a4c30
mov edx, fcn.007a4c30
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d01f8
cmp ecx, 0xffffffff
movzx edx, byte [0xbb168f]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7d01dc
jmp 0x7d038e
cmp ecx, 0xffffffff
movzx edx, byte [0xbb168f]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7d0369
mov edx, fcn.007a4c30
mov eax, fcn.007a4c30
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [str.zPq]
cmp edx, 0xffffffff
sete cl
or ecx, 0x47132cee
add ecx, 0x420
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [str.zPq], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1664]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1664], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb1668]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1668], edx
or eax, esi
not edx
mov ebp, dword [0xbb166c]
imul edx, eax
lea esi, [edx*8]
xor ebp, edx
shr edx, 0x1c
mov dword [0xbb166c], ebp
or edx, esi
not ebp
imul ebp, edx
mov edx, dword [0xbb1670]
mov esi, ebp
shl esi, 4
xor edx, ebp
shr ebp, 0x1b
mov dword [0xbb1670], edx
or ebp, esi
not edx
mov edi, dword [0xbb1674]
imul edx, ebp
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb1674], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb1678]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb1678], edx
or edi, esi
not edx
mov ebp, dword [0xbb167c]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebp, edx
shr edx, 0x18
mov dword [0xbb167c], ebp
or edx, esi
not ebp
imul ebp, edx
mov edx, dword [0xbb1680]
mov esi, ebp
shl esi, 8
xor edx, ebp
shr ebp, 0x17
mov dword [0xbb1680], edx
or ebp, esi
not edx
mov edi, dword [0xbb1684]
imul edx, ebp
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbb1684], edi
or edx, esi
not edi
mov esi, dword [esp]
imul edi, edx
mov dl, 1
xor dword [0xbb1688], edi
shl dl, cl
or byte [0xbb168f], dl
mov ecx, fcn.007a4c30
mov eax, fcn.007a4c30
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb168f], al
mov eax, dword [esp + 4]
push dword [eax]
push str.zPq
push esi
call fcn.00782570
add esp, 0xc
jmp 0x7d0847
mov edx, dword [esp + 0x44]
or eax, 4
test ebx, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x24], eax
mov dword [esp + 0x10], edx
jne 0x7d03eb
movsx eax, word [ecx + 0x2a]
dec eax
lea edx, [eax + eax*4]
mov edi, eax
shl edx, 2
add edx, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 8], edx
call fcn.00803c20
mov al, 1
jmp 0x7d048c
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x20], eax
jle 0x7d06ac
mov edi, 0xffffffff
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 4]
call fcn.007f1620
mov ecx, eax
mov ebp, eax
call fcn.00803ed0
cmp byte [ebp], 0x3b
jne 0x7d0479
mov eax, dword [esp + 4]
movsx ecx, word [eax + 0x2a]
test ecx, ecx
mov dword [esp + 0x24], ecx
jg 0x7d043f
xor edi, edi
jmp 0x7d0479
mov ebp, dword [ebp + 8]
mov esi, dword [eax + 4]
xor edi, edi
lea ebx, [edi + edi*4]
mov ecx, ebp
mov edx, dword [esi + ebx*4]
call fcn.00777e20
test eax, eax
jne 0x7d046b
lea edx, [esi + ebx*4]
mov esi, dword [esp]
mov dword [esp + 8], edx
mov ecx, esi
call fcn.00803c20
jmp 0x7d0475
inc edi
cmp edi, dword [esp + 0x24]
jl 0x7d0447
mov esi, dword [esp]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esp + 0x20]
jne 0x7d040c
cmp dword [esp + 0x20], 1
sete al
test al, al
je 0x7d06ac
cmp dword [esp + 8], 0
je 0x7d06ac
mov eax, fcn.007c5f20
mov edx, 3
movzx ebp, byte [0xbb169f]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007c5f20
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebp, eax
jb 0x7d0628
mov al, byte [0xbb169f]
mov ebp, ebx
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.007c5f20
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb169f], ah
jne 0x7d04dc
mov edx, fcn.007c5f20
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007c5f20
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 0x7d0569
mov esi, dword [esp]
mov ebx, ebp
mov edx, ecx
xor eax, eax
movzx ebp, byte [0xbb169f]
xor edx, fcn.007c5f20
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x7d053e
jmp 0x7d0628
xor eax, eax
xor ecx, fcn.007c5f20
movzx edx, byte [0xbb169f]
mov esi, dword [esp]
mov ebx, ebp
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d05f9
mov eax, fcn.007c5f20
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007c5f20
sete al
mov ecx, eax
not ecx
and ecx, 0x1b
lea ecx, [eax + ecx*2 + 0x3a4e3ba4]
mov eax, dword [0xbb1690]
xor eax, ecx
mov dword [0xbb1690], eax
not eax
mov edx, dword [0xbb1694]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb1694], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
mov esi, dword [esp]
shl al, cl
xor dword [0xbb1698], edx
or byte [0xbb169f], al
mov eax, fcn.007c5f20
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007c5f20
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb169f], al
mov ecx, dword [esp + 8]
mov edx, 0xc1f2c9
call fcn.0078c4e0
mov ecx, eax
mov edx, 0xbb1690
call fcn.00777e20
cmp dword [esp + 0x14], 1
mov ecx, dword [esp + 4]
je 0x7d06ac
test eax, eax
jne 0x7d06ac
test ebx, ebx
je 0x7d067c
cmp byte [esi + 0xc8], 2
jb 0x7d067c
mov ecx, dword [ebx + 4]
call fcn.007f1620
mov ecx, dword [esp + 4]
lea edx, [ecx + 0x28]
mov ecx, esi
push eax
call fcn.007f6a90
mov ecx, dword [esp + 8]
add esp, 4
mov eax, dword [esp + 0x18]
shl eax, 3
or dword [ecx + 0x24], eax
test ebx, ebx
mov word [ecx + 0x28], di
mov eax, dword [esp + 0x10]
mov byte [ecx + 0x32], al
je 0x7d069e
mov al, byte [ebx + 0xc]
mov byte [esi + 0xc6], al
mov ecx, esi
mov edx, ebx
call fcn.00803ef0
jmp 0x7d0847
cmp dword [esp + 0x18], 0
je 0x7d0824
mov edx, fcn.007b8750
xor eax, eax
movzx edi, byte [0xbb16df]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jb 0x7d0814
mov al, byte [0xbb16df]
mov ebp, ebx
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb16df], ah
jne 0x7d06ee
mov ecx, fcn.007b8750
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta 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 0x7d0768
mov ebx, ebp
xor eax, eax
cmp ecx, 1
movzx edi, byte [0xbb16df]
seta al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x7d0742
jmp 0x7d0814
xor eax, eax
cmp ecx, 1
movzx edi, byte [0xbb16df]
seta al
mov ecx, eax
not ecx
and ecx, 0x8b
lea edx, [eax + ecx*2 - 0x1a10b0fc]
mov eax, edx
and al, 7
movzx eax, al
bt edi, eax
jb 0x7d07e7
mov esi, 0xbb16a0
xor eax, eax
mov edi, dword [esi]
mov ecx, eax
mov ebx, edx
inc eax
shl ebx, cl
xor cl, 0x1f
xor edi, edx
shr edx, cl
mov dword [esi], edi
or edx, ebx
not edi
add esi, 4
imul edx, edi
cmp eax, 0xf
jne 0x7d079b
mov eax, fcn.007b8750
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 1
and cl, 7
shl al, cl
or byte [0xbb16df], al
mov esi, dword [esp]
mov eax, fcn.007b8750
xor ecx, ecx
mov ebx, ebp
imul eax, eax
and eax, 3
cmp eax, 1
seta 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 [0xbb16df], al
push 0xbb16a0
push esi
call fcn.00782570
add esp, 8
jmp 0x7d0847
mov ecx, esi
xor edx, edx
push 2
push 0
push dword [esp + 0x1c]
push 0
push 0
push dword [esp + 0x24]
push ebx
push 0
push 0
call fcn.007d0860
add esp, 0x24
xor ebx, ebx
mov ecx, dword [esi]
mov edx, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007c00f0