Function at 0x7e58d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0xbcbae0]
mov ebp, edx
xor eax, esp
mov dword [esp + 0x38], eax
mov edi, dword [ecx + 0xec]
mov esi, dword [ecx]
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0xec], 0
test edi, edi
je 0x7e605b
test eax, eax
jne 0x7e605b
mov edx, dword [edi + 0x14]
mov ebx, dword [edi]
mov dword [esp + 8], ecx
mov ecx, esi
call fcn.007825f0
test ebp, ebp
mov edx, ebx
mov dword [esp + 4], eax
mov dword [edi + 0x1c], ebp
mov dword [esp + 0xc], ebx
je 0x7e5936
mov dword [ebp + 4], edi
mov ebp, dword [ebp + 0x24]
test ebp, ebp
jne 0x7e592a
mov edx, dword [edi]
mov dword [esp], esi
mov eax, fcn.007b6f60
mov esi, 3
sub esi, eax
movzx ecx, byte [0xbb35d3]
mov ebx, dword [esp + 4]
mov eax, esi
xor eax, fcn.007b6f60
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7e5a7c
mov al, byte [0xbb35d3]
mov ecx, esi
mov ah, 1
xor ecx, fcn.007b6f60
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb35d3], ah
jne 0x7e596d
mov esi, fcn.007b6f60
mov ecx, 3
sub ecx, esi
mov esi, ecx
xor esi, fcn.007b6f60
sete ah
or ah, 2
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7e59d6
mov eax, ecx
movzx esi, byte [0xbb35d3]
xor eax, fcn.007b6f60
sete al
or al, 2
movzx eax, al
bt esi, eax
jae 0x7e59b6
jmp 0x7e5a7c
xor ecx, fcn.007b6f60
movzx ecx, byte [0xbb35d3]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7e5a57
mov eax, fcn.007b6f60
mov esi, 3
xor ecx, ecx
sub esi, eax
mov eax, dword [0xbb35c4]
xor esi, fcn.007b6f60
sete cl
or ecx, 0x56517492
add ecx, 0x4d8
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbb35c4], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov eax, dword [0xbb35c8]
lea ebp, [esi + esi]
xor eax, esi
shr esi, 0x1e
mov dword [0xbb35c8], eax
or esi, ebp
not eax
imul eax, esi
xor dword [0xbb35cc], eax
mov ah, 1
shl ah, cl
or byte [0xbb35d3], ah
mov eax, fcn.007b6f60
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007b6f60
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb35d3], al
lea ebp, [esp + 0x18]
mov ecx, ebp
call fcn.007f6a70
mov edx, dword [esp + 8]
lea esi, [esp + 0x20]
mov ecx, esi
push ebp
push 0xbb35c4
push ebx
call fcn.00804340
add esp, 0xc
mov edx, dword [edi + 0x1c]
mov ecx, esi
call fcn.00829fe0
xor ebp, ebp
test eax, eax
je 0x7e5ab8
mov esi, dword [esp]
jmp 0x7e605b
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x20]
call fcn.00804b40
mov esi, dword [esp]
test eax, eax
jne 0x7e605b
mov ecx, dword [esp + 8]
cmp byte [ecx + 0xc8], 2
jb 0x7e5ae9
mov dword [ecx + 0xec], edi
xor edi, edi
jmp 0x7e600b
cmp byte [esi + 0xa5], 0
jne 0x7e600b
call fcn.007ebd10
test eax, eax
je 0x7e605b
mov edx, fcn.00796820
mov dword [esp + 0x14], eax
imul edx, edx
movzx ecx, byte [0xbb35f3]
and edx, 3
cmp edx, 1
seta al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e5c68
mov al, byte [0xbb35f3]
cmp edx, 1
mov ah, 1
seta cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb35f3], ah
jne 0x7e5b36
mov ecx, fcn.00796820
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
not dl
add dl, 0x40
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e5b9e
cmp ecx, 1
movzx edx, byte [0xbb35f3]
seta al
not al
add al, 0x40
and al, 7
movzx eax, al
bt edx, eax
jae 0x7e5b7e
jmp 0x7e5c68
cmp ecx, 1
movzx ecx, byte [0xbb35f3]
seta al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e5c42
mov eax, fcn.00796820
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb35e0]
seta cl
xor ecx, 0xdd3bcb0f
add ecx, 0x840
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb35e0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb35e4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb35e4], eax
or esi, edx
not eax
mov edx, dword [0xbb35e8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb35e8], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
mov esi, dword [esp]
shl al, cl
xor dword [0xbb35ec], edx
or byte [0xbb35f3], al
mov eax, fcn.00796820
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb35f3], al
mov edx, fcn.007edc80
movzx ecx, byte [0xbb3647]
and edx, 1
inc edx
mov eax, edx
xor eax, fcn.007edc80
sete al
xor al, 5
add al, 0xa4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e5db9
mov al, byte [0xbb3647]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007edc80
sete cl
xor cl, 5
add cl, 0xa4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3647], ah
jne 0x7e5c99
mov ecx, fcn.007edc80
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.007edc80
sete dl
xor dl, 5
add dl, 0xa4
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e5d0f
mov eax, ecx
movzx edx, byte [0xbb3647]
xor eax, fcn.007edc80
sete al
xor al, 5
add al, 0xa4
and al, 7
movzx eax, al
bt edx, eax
jae 0x7e5ceb
jmp 0x7e5db9
xor edx, edx
xor ecx, fcn.007edc80
movzx ecx, byte [0xbb3647]
sete dl
xor edx, 0xc8f366ad
add edx, 0x10a4
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e5d92
mov ebx, 0xbb3600
xor eax, eax
mov esi, dword [ebx]
mov ecx, eax
mov dword [esp + 0x10], edx
inc eax
shl dword [esp + 0x10], cl
xor cl, 0x1f
xor esi, edx
shr edx, cl
or edx, dword [esp + 0x10]
mov dword [ebx], esi
not esi
add ebx, 4
imul edx, esi
cmp eax, 0x11
jne 0x7e5d40
mov eax, fcn.007edc80
and eax, 1
inc eax
xor eax, fcn.007edc80
mov al, 1
sete cl
xor cl, 5
add cl, 0xa4
and cl, 7
shl al, cl
or byte [0xbb3647], al
mov esi, dword [esp]
mov ebx, dword [esp + 4]
mov eax, fcn.007edc80
and eax, 1
inc eax
xor eax, fcn.007edc80
mov al, 0xfe
sete cl
xor cl, 5
add cl, 0xa4
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb3647], al
mov edx, 0x7f1010
movzx ecx, byte [0xbb3673]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7e5f7d
mov al, byte [0xbb3673]
cmp edx, 2
mov ah, 1
sete cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb3673], ah
jne 0x7e5de6
mov ecx, 0x7f1010
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
not dl
and dl, 5
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e5e46
cmp ecx, 2
movzx edx, byte [0xbb3673]
sete al
not al
and al, 5
movzx eax, al
bt edx, eax
jae 0x7e5e28
jmp 0x7e5f7d
cmp ecx, 2
movzx ecx, byte [0xbb3673]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7e5f5a
mov eax, 0x7f1010
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbb3650]
sete cl
xor ecx, 0xfb2912b5
add ecx, 0x1090
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb3650], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [str.Jco5]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [str.Jco5], eax
or esi, edx
not eax
mov edx, dword [0xbb3658]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3658], edx
or esi, eax
not edx
mov eax, dword [0xbb365c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb365c], eax
or esi, edx
not eax
mov edx, dword [0xbb3660]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb3660], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb3664]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb3664], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb3668]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb3668], edx
or eax, esi
not edx
mov esi, dword [esp]
imul edx, eax
xor dword [0xbb366c], edx
mov dl, 1
shl dl, cl
or byte [0xbb3673], dl
mov eax, 0x7f1010
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbb3673], al
mov ecx, dword [esp + 8]
xor edx, edx
push ebx
call fcn.007f56e0
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, esi
mov edx, dword [eax]
push 0
push dword [eax + 4]
call fcn.007bf5a0
add esp, 8
mov esi, eax
mov eax, dword [esp]
shl ebx, 4
mov eax, dword [eax + 0x10]
push esi
push dword [edi + 4]
push dword [esp + 0x14]
push 0xbb35e0
push dword [eax + ebx]
push 0xbb3600
mov ebx, dword [esp + 0x20]
push ebx
call fcn.007f6930
add esp, 0x1c
mov ecx, dword [esp]
mov edx, esi
mov esi, dword [esp]
call fcn.00774f10
mov edx, dword [esp + 4]
mov ecx, ebx
call fcn.007f6a00
push dword [esp + 0xc]
mov ebx, dword [esp + 8]
push 0xbb3650
push esi
call fcn.00782620
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, ebx
push eax
call fcn.007f6a30
add esp, 4
cmp byte [esi + 0xa5], 0
je 0x7e605b
mov eax, dword [esi + 0x10]
shl ebx, 4
mov edx, dword [esp + 0xc]
mov ecx, dword [eax + ebx + 0xc]
add ecx, 0x28
push edi
call fcn.007bfe40
add esp, 4
mov ebx, eax
test eax, eax
je 0x7e603d
mov ecx, esi
call fcn.0077e7a0
jmp 0x7e6059
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x18]
jne 0x7e6059
mov edx, dword [edi + 4]
add ecx, 8
call fcn.007bf720
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x20], ecx
mov dword [eax + 0x44], edi
mov edi, ebx
mov ecx, esi
mov edx, edi
call fcn.00774e00
mov ecx, esi
mov edx, ebp
call fcn.007c7f40
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00980459
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret