Function at 0x7d4d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ecx]
mov ebx, edx
cmp byte [edi + 0x51], 0
jne 0x7d59e8
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.007c5c50
test eax, eax
jne 0x7d59e8
test ebp, ebp
jne 0x7d4db8
mov edx, dword [esp + 0x10]
lea eax, [ebx + 8]
mov ecx, esi
push eax
call fcn.00800830
add esp, 4
jmp 0x7d4dd0
inc byte [edi + 0x55]
lea eax, [ebx + 8]
mov ecx, esi
mov edx, dword [esp + 0x10]
push eax
call fcn.00800830
add esp, 4
dec byte [edi + 0x55]
test eax, eax
jne 0x7d4deb
test ebp, ebp
je 0x7d59e8
mov edx, dword [ebx + 0xc]
mov ecx, esi
call fcn.008055d0
jmp 0x7d59e8
mov edx, dword [eax + 0x48]
mov ecx, edi
mov ebp, eax
call fcn.007825f0
cmp dword [ebp + 0x38], 0
mov dword [esp + 0xc], eax
mov dword [esp], ebp
je 0x7d4e16
mov edx, dword [esp]
mov ecx, esi
call fcn.00800a50
test eax, eax
jne 0x7d59e8
mov edx, fcn.0082e250
movzx ecx, byte [0xbb1c67]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7d4f6b
mov al, byte [0xbb1c67]
cmp edx, 2
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1c67], ah
jne 0x7d4e41
mov ecx, fcn.0082e250
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d4e9b
cmp ecx, 2
movzx edx, byte [0xbb1c67]
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7d4e7f
jmp 0x7d4f6b
cmp ecx, 2
movzx edx, byte [0xbb1c67]
sete al
or al, 4
movzx eax, al
bt edx, eax
jb 0x7d4f4a
mov eax, fcn.0082e250
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbb1c50]
sete cl
or ecx, 0x8b6366c
xor eax, ecx
mov dword [0xbb1c50], eax
not eax
mov edx, dword [0xbb1c54]
imul eax, ecx
and cl, 5
lea ebp, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb1c54], edx
or eax, ebp
not edx
imul edx, eax
mov eax, dword [0xbb1c58]
lea ebp, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb1c58], eax
or edx, ebp
not eax
imul eax, edx
mov edx, dword [0xbb1c5c]
lea ebp, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb1c5c], edx
or eax, ebp
not edx
imul edx, eax
xor dword [0xbb1c60], edx
mov dl, 1
shl dl, cl
or byte [0xbb1c67], dl
mov eax, fcn.0082e250
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb1c67], al
mov dword [esp + 8], esi
mov esi, 0x788a00
mov ebp, 0x788a00
mov dword [esp + 4], ebx
xor eax, eax
or esi, 2
xor ebp, 2
movzx edx, byte [0xbb1c83]
mov ecx, esi
add ecx, ebp
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7d50fa
mov al, byte [0xbb1c83]
mov edx, esi
xor ecx, ecx
add edx, ebp
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb1c83], dl
jne 0x7d4faa
mov ecx, 0x788a00
mov edx, 0x788a00
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 + 2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7d5022
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbb1c83]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 2]
bt esi, eax
jae 0x7d4fff
jmp 0x7d50fa
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb1c83]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7d50cd
mov ecx, 0x788a00
mov edx, 0x788a00
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x82d
lea ecx, [eax + ecx*2 - 0x4e36cf2e]
mov eax, dword [0xbb1c70]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1c70], eax
not eax
imul edx, eax
mov eax, dword [0xbb1c74]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1c74], eax
or esi, edx
not eax
mov edx, dword [0xbb1c78]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1c78], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb1c7c], edx
or byte [0xbb1c83], al
mov eax, 0x788a00
mov ecx, 0x788a00
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 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb1c83], al
mov ecx, dword [esp + 0xc]
mov eax, 0xbb1c50
mov esi, 0xbb1c70
mov edx, 9
cmp ecx, 1
cmove esi, eax
mov eax, dword [edi + 0x10]
shl ecx, 4
mov ebp, dword [eax + ecx]
mov ecx, dword [esp + 8]
push ebp
push 0
push esi
mov esi, ecx
call fcn.007f4a50
add esp, 0xc
mov ebx, dword [esp + 4]
test eax, eax
jne 0x7d59e8
cmp dword [esp + 0x10], 0
je 0x7d5151
xor eax, eax
cmp dword [esp + 0xc], 1
setne al
lea edx, [eax + eax + 0xf]
jmp 0x7d517c
mov edx, dword [esp]
cmp dword [edx + 0x38], 0
je 0x7d516e
mov ecx, edi
call fcn.007c5030
mov eax, dword [eax + 4]
mov edx, 0x1e
mov eax, dword [eax + 4]
jmp 0x7d517e
xor eax, eax
cmp dword [esp + 0xc], 1
sete al
lea edx, [eax + eax + 0xb]
xor eax, eax
mov ecx, esi
push ebp
push eax
mov eax, dword [esp + 8]
push dword [eax]
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x7d59e8
mov ecx, esi
mov edx, 9
push ebp
push 0
mov eax, dword [esp + 8]
push dword [eax]
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x7d59e8
mov ebp, dword [esp]
mov ecx, edi
mov edx, ebp
call fcn.00805620
test eax, eax
je 0x7d53ab
mov edx, fcn.007bce80
movzx ecx, byte [0xbb1cb3]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d5393
mov al, byte [0xbb1cb3]
cmp edx, 1
mov ah, 1
seta cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1cb3], ah
jne 0x7d51f9
mov ecx, fcn.007bce80
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d5259
cmp ecx, 1
movzx edx, byte [0xbb1cb3]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7d523b
jmp 0x7d5393
cmp ecx, 1
movzx ecx, byte [0xbb1cb3]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d5370
mov eax, fcn.007bce80
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb1c90]
seta cl
xor ecx, 0xbf98358b
add ecx, 0x1028
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1c90], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1c94]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1c94], eax
or esi, edx
not eax
mov edx, dword [0xbb1c98]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1c98], edx
or esi, eax
not edx
mov eax, dword [0xbb1c9c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1c9c], eax
or esi, edx
not eax
mov edx, dword [0xbb1ca0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1ca0], edx
or eax, esi
not edx
mov ebp, dword [0xbb1ca4]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebp, edx
shr edx, 0x1a
mov dword [0xbb1ca4], ebp
or edx, esi
not ebp
imul ebp, edx
mov edx, dword [0xbb1ca8]
mov esi, ebp
shl esi, 6
xor edx, ebp
shr ebp, 0x19
mov dword [0xbb1ca8], edx
or ebp, esi
not edx
mov esi, dword [esp + 8]
imul edx, ebp
xor dword [0xbb1cac], edx
mov dl, 1
shl dl, cl
or byte [0xbb1cb3], dl
mov eax, fcn.007bce80
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb1cb3], al
mov eax, dword [esp]
push dword [eax]
push 0xbb1c90
push esi
call fcn.00782570
add esp, 0xc
jmp 0x7d59e8
cmp dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
je 0x7d55fb
test eax, eax
jne 0x7d5825
mov edx, fcn.00553ca0
xor eax, eax
movzx ebp, byte [0xbb1ce7]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.00553ca0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt ebp, eax
jb 0x7d55ec
mov al, byte [0xbb1ce7]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.00553ca0
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1ce7], ah
jne 0x7d53f6
mov ecx, fcn.00553ca0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.00553ca0
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7d547c
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edx, ecx
xor eax, eax
movzx ebp, byte [0xbb1ce7]
add edx, fcn.00553ca0
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt ebp, eax
jae 0x7d5455
jmp 0x7d55ec
xor eax, eax
add ecx, fcn.00553ca0
movzx edx, byte [0xbb1ce7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7d55ba
mov ecx, fcn.00553ca0
xor eax, eax
not ecx
and ecx, 1
add ecx, fcn.00553ca0
sete al
mov ecx, eax
not ecx
and ecx, 0x4c9
lea ecx, [eax + ecx*2 - 0x278d44fe]
mov eax, dword [0xbb1cc0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1cc0], eax
not eax
imul edx, eax
mov eax, dword [0xbb1cc4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1cc4], eax
or esi, edx
not eax
mov edx, dword [0xbb1cc8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1cc8], edx
or esi, eax
not edx
mov eax, dword [0xbb1ccc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1ccc], eax
or esi, edx
not eax
mov edx, dword [0xbb1cd0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1cd0], edx
or eax, esi
not edx
mov ebp, dword [0xbb1cd4]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebp, edx
shr edx, 0x1a
mov dword [0xbb1cd4], ebp
or edx, esi
not ebp
imul ebp, edx
mov edx, dword [0xbb1cd8]
mov esi, ebp
shl esi, 6
xor edx, ebp
shr ebp, 0x19
mov dword [0xbb1cd8], edx
or ebp, esi
not edx
mov ebx, dword [0xbb1cdc]
imul edx, ebp
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb1cdc], ebx
or edx, esi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb1ce0], ebx
shl dl, cl
or byte [0xbb1ce7], dl
mov eax, fcn.00553ca0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00553ca0
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb1ce7], al
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov eax, dword [esp]
push dword [eax]
push 0xbb1cc0
jmp 0x7d539d
test eax, eax
je 0x7d5825
mov edx, fcn.00774f50
mov ebp, fcn.00774f50
movzx ecx, byte [0xbb1d17]
or edx, 2
xor ebp, 2
mov eax, edx
add eax, ebp
sete al
xor al, 5
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d5812
mov al, byte [0xbb1d17]
mov ecx, edx
mov ah, 1
add ecx, ebp
sete cl
xor cl, 5
add cl, 4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1d17], ah
jne 0x7d5638
mov ecx, fcn.00774f50
mov edx, fcn.00774f50
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
xor ah, 5
add ah, 4
and ah, 7
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7d56ae
mov ebx, dword [esp + 4]
mov eax, ecx
movzx esi, byte [0xbb1d17]
add eax, edx
sete al
xor al, 5
add al, 4
and al, 7
movzx eax, al
bt esi, eax
jae 0x7d568d
jmp 0x7d5812
add ecx, edx
movzx ecx, byte [0xbb1d17]
sete al
xor al, 5
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d57e3
mov eax, fcn.00774f50
mov edx, fcn.00774f50
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb1cf0]
sete cl
xor ecx, 0xb0555095
add ecx, 0xa04
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1cf0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1cf4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1cf4], eax
or esi, edx
not eax
mov edx, dword [0xbb1cf8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1cf8], edx
or esi, eax
not edx
mov eax, dword [0xbb1cfc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1cfc], eax
or esi, edx
not eax
mov edx, dword [0xbb1d00]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1d00], edx
or eax, esi
not edx
mov ebp, dword [0xbb1d04]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebp, edx
shr edx, 0x1a
mov dword [0xbb1d04], ebp
or edx, esi
not ebp
imul ebp, edx
mov edx, dword [0xbb1d08]
mov esi, ebp
shl esi, 6
xor edx, ebp
shr ebp, 0x19
mov dword [0xbb1d08], edx
or ebp, esi
not edx
mov ebx, dword [0xbb1d0c]
imul edx, ebp
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb1d0c], ebx
or edx, esi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb1d10], ebx
shl dl, cl
or byte [0xbb1d17], dl
mov eax, fcn.00774f50
mov ecx, fcn.00774f50
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
xor cl, 5
add cl, 4
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb1d17], al
mov ebx, dword [esp + 4]
mov eax, dword [esp]
push dword [eax]
push 0xbb1cf0
push dword [esp + 0x10]
jmp 0x7d539e
mov ecx, esi
call fcn.007ebd10
test eax, eax
je 0x7d59e8
mov ebp, dword [esp + 0xc]
mov ecx, esi
mov edx, 1
push ebp
call fcn.007f56e0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x7d59d9
mov edx, fcn.0078e050
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb1d23]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7d59ad
mov al, byte [0xbb1d23]
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 [0xbb1d23], ah
jne 0x7d5888
mov ecx, fcn.0078e050
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 0x7d5909
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
xor eax, eax
cmp ecx, 3
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
movzx edx, byte [0xbb1d23]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7d58e4
jmp 0x7d59ad
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb1d23]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d5977
mov eax, fcn.0078e050
xor ecx, ecx
mov esi, dword [0xbb1d18]
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x45e86267
lea ecx, [eax + ecx*2 + 0x1120]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb1d18], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb1d1c], edx
mov dl, 1
shl dl, cl
or byte [0xbb1d23], dl
mov eax, fcn.0078e050
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 [0xbb1d23], al
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov edx, ebp
mov ebp, dword [esp]
mov ecx, esi
push dword [ebp]
push 0xbb1d18
call fcn.00805a70
add esp, 8
mov ecx, esi
mov edx, ebx
push ebp
mov ebp, dword [esp + 0x10]
call fcn.00805ec0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp]
mov ecx, esi
push eax
push ebp
call fcn.00805fc0
add esp, 8
mov ecx, edi
mov edx, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007c0320