Function at 0x7fde50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [ecx + 0x28]
mov ebx, dword [esp + 0x54]
mov ebp, edx
mov edi, ecx
lea eax, [esi + 1]
mov dword [ecx + 0x28], eax
call fcn.007f7590
test ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x7fde7d
xor ebx, ebx
jmp 0x7fdec6
test byte [ebp + 5], 8
je 0x7fdec6
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], edi
mov ebp, 0
mov ebx, dword [eax + 0x1c]
mov edi, dword [ebx]
test edi, edi
jle 0x7fdeb0
xor ebp, ebp
lea eax, [ebp + ebp*4]
mov ecx, dword [ebx + eax*4 + 4]
call fcn.007fe7a0
test eax, eax
jne 0x7fdeb0
inc ebp
cmp ebp, edi
jl 0x7fde9a
mov ebx, dword [esp + 0x54]
cmp ebp, edi
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov eax, 0
cmove ebx, eax
cmp dword [edi + 0x24], 0
jne 0x7fe6b7
mov ecx, ebp
call fcn.007fea00
test eax, eax
je 0x7fe6b7
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, dword [edi]
mov eax, dword [eax + 0x18]
mov ebx, dword [edx]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x48]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0078dee0
movsx ebx, ax
mov ecx, edi
mov edx, ebx
call fcn.007fea70
mov eax, dword [esp]
mov ecx, edi
mov dword [esp + 0x2c], ebx
mov edx, ebx
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.007f78a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add esp, 0xc
cmp ecx, 1
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
jne 0x7fe1e9
mov eax, dword [eax + 4]
cmp word [eax + 0x20], 0
jns 0x7fe1fb
mov edx, fcn.00837fb0
movzx ecx, byte [0xbb7d73]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7fe187
mov al, byte [0xbb7d73]
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 [0xbb7d73], ah
jne 0x7fdf7d
mov ecx, fcn.00837fb0
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 0x7fdfdd
cmp ecx, 1
movzx edx, byte [0xbb7d73]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7fdfbf
jmp 0x7fe187
cmp ecx, 1
movzx ecx, byte [0xbb7d73]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7fe164
mov eax, fcn.00837fb0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb7d40]
seta cl
xor ecx, 0xd8315b83
add ecx, 0x870
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb7d40], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb7d44]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb7d44], eax
or esi, edx
not eax
mov edx, dword [0xbb7d48]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb7d48], edx
or esi, eax
not edx
mov eax, dword [0xbb7d4c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb7d4c], eax
or esi, edx
not eax
mov edx, dword [0xbb7d50]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb7d50], edx
or eax, esi
not edx
mov edi, dword [0xbb7d54]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb7d54], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb7d58]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb7d58], edx
or edi, esi
not edx
mov ebx, dword [0xbb7d5c]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb7d5c], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb7d60]
mov esi, ebx
shl esi, 8
xor edx, ebx
shr ebx, 0x17
mov dword [0xbb7d60], edx
or ebx, esi
not edx
mov edi, dword [0xbb7d64]
imul edx, ebx
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbb7d64], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb7d68]
mov esi, edi
shl esi, 0xa
xor edx, edi
shr edi, 0x15
mov dword [0xbb7d68], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbb7d6c], edx
mov dl, 1
shl dl, cl
or byte [0xbb7d73], dl
mov eax, fcn.00837fb0
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 [0xbb7d73], al
mov ecx, dword [esp + 0x24]
mov edx, 0x11
call fcn.007f75b0
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov dword [esp + 4], eax
mov ecx, esi
mov edx, edi
push 0x60
mov ebx, dword [esp + 4]
push ebx
push dword [esp + 0x34]
call fcn.007f77f0
add esp, 0xc
push dword [ebx]
push 0xbb7d40
push 0
push esi
call fcn.007fdcc0
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 4]
mov esi, edi
call fcn.007f75c0
mov eax, dword [esp + 0x58]
mov dword [esp], 1
jmp 0x7fe767
test ecx, ecx
jg 0x7fe1fb
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], 0
jmp 0x7fe272
xor edi, edi
mov eax, 1
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov esi, eax
call fcn.007fcf30
mov ecx, dword [esp + 0x14]
mov ebp, eax
lea eax, [edi + edi*4]
mov eax, dword [ecx + eax*4 + 4]
mov ecx, dword [esp]
movsx edx, word [eax + 0x20]
call fcn.007f9500
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
movsx edx, al
mov ebx, eax
call fcn.007fd060
movsx edx, al
mov ecx, dword [esp + 4]
xor eax, eax
add edx, 0xffffffbf
cmp bl, 0x42
setg al
cmp edx, 2
cmovb eax, esi
inc edi
cmp edi, ecx
jge 0x7fe258
test eax, eax
jne 0x7fe202
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov dl, 1
test eax, eax
mov dword [esp + 0x30], edx
je 0x7fe6b7
mov eax, dword [esp]
mov eax, dword [eax + 8]
test eax, eax
je 0x7fe6b7
mov edx, 0xffffffff
mov dword [esp + 0x10], 0xffffffff
shl edx, cl
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
shld edx, edx, cl
test cl, 0x20
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
cmovne edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov edx, 0
not dword [esp + 0x10]
cmovne esi, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 8]
not dword [esp + 0x18]
mov dword [esp], eax
movzx eax, word [eax + 0x34]
cmp ecx, eax
jg 0x7fe6a9
cmp ax, 0x3e
ja 0x7fe6a9
mov edx, dword [esp]
mov edx, dword [edx + 0x24]
test edx, edx
jne 0x7fe6a9
mov edx, dword [esp + 0x50]
test dl, 4
je 0x7fe31a
mov edx, dword [esp]
movzx edx, word [edx + 0x32]
cmp ecx, edx
jl 0x7fe6a9
cmp ecx, eax
jge 0x7fe31a
mov eax, dword [esp]
cmp byte [eax + 0x36], 0
je 0x7fe6a9
xor edi, edi
cmp byte [esp + 0x30], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], 0
je 0x7fe418
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x28], 0
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov dword [esp + 0x34], edi
call fcn.007fcf30
lea ecx, [ebx + ebx*4]
mov dword [esp + 0x38], ebx
mov edx, eax
mov edi, dword [esi + ecx*4 + 4]
mov ecx, dword [esp + 0xc]
push edi
call fcn.007d38e0
mov ecx, dword [esp + 8]
add esp, 4
mov edx, dword [esp]
movzx edi, word [edi + 0x20]
mov ebp, eax
xor ebx, ebx
mov esi, dword [edx + 4]
cmp word [esi + ebx*2], di
jne 0x7fe39c
test ebp, ebp
je 0x7fe3a1
mov eax, dword [esp]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x20]
mov edx, dword [eax + ebx*4]
call fcn.00783720
mov ecx, dword [esp + 4]
test eax, eax
je 0x7fe3a1
inc ebx
cmp ebx, ecx
jl 0x7fe379
cmp ebx, ecx
jne 0x7fe3af
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
jmp 0x7fe418
xor eax, eax
mov ecx, ebx
mov edx, 1
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
shld eax, edx, cl
mov edx, 1
shl edx, cl
test bl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
mov ecx, eax
mov esi, edx
and ecx, dword [esp + 0x28]
and esi, edi
or esi, ecx
je 0x7fe3ec
mov ecx, dword [esp + 4]
jmp 0x7fe418
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x38]
test ecx, ecx
je 0x7fe3fb
mov dword [ecx + ebp*4], ebx
mov ecx, dword [esp + 4]
inc ebp
or edi, edx
or dword [esp + 0x28], eax
mov esi, dword [esp + 0x14]
mov ebx, ebp
cmp ebp, ecx
mov ebp, dword [esp + 0x1c]
jl 0x7fe33f
mov eax, dword [esp + 0x28]
xor edi, dword [esp + 0x18]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x10]
or edi, eax
mov edi, dword [esp + 0xc]
jne 0x7fe6a9
mov eax, fcn.007ea310
mov edx, 3
movzx ecx, byte [0xbb7da3]
mov edi, dword [esp]
sub edx, eax
mov eax, edx
xor eax, fcn.007ea310
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7fe60e
mov al, byte [0xbb7da3]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007ea310
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7da3], ah
jne 0x7fe46b
mov edx, fcn.007ea310
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007ea310
sete dl
or dl, 2
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7fe4d4
mov eax, ecx
movzx edx, byte [0xbb7da3]
xor eax, fcn.007ea310
sete al
or al, 2
movzx eax, al
bt edx, eax
jae 0x7fe4b4
jmp 0x7fe60e
xor ecx, fcn.007ea310
movzx ecx, byte [0xbb7da3]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7fe5e9
mov eax, fcn.007ea310
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbb7d80]
xor edx, fcn.007ea310
sete cl
or ecx, 0xc3ddfc7a
add ecx, 8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb7d80], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb7d84]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb7d84], eax
or esi, edx
not eax
mov edx, dword [0xbb7d88]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb7d88], edx
or esi, eax
not edx
mov eax, dword [0xbb7d8c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb7d8c], eax
or esi, edx
not eax
mov edx, dword [0xbb7d90]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb7d90], edx
or eax, esi
not edx
mov ebx, dword [0xbb7d94]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb7d94], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb7d98]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbb7d98], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbb7d9c], edx
mov dl, 1
shl dl, cl
or byte [0xbb7da3], dl
mov eax, fcn.007ea310
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007ea310
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb7da3], al
mov ebx, dword [esp + 0x24]
mov edx, 0x11
mov ecx, ebx
call fcn.007f75b0
mov dword [esp + 0x14], eax
push dword [edi]
push 0xbb7d80
push 0
mov esi, edi
mov edi, dword [esp + 0x18]
push edi
call fcn.007fdcc0
add esp, 0x10
mov ecx, ebx
mov edx, 0x60
push dword [esp + 0x2c]
push dword [esi + 0x2c]
push dword [esp + 0x10]
call fcn.007d10f0
add esp, 0xc
mov ecx, edi
mov edx, esi
call fcn.007f7980
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x20]
movzx eax, byte [eax]
test ecx, ecx
mov dword [esp], eax
je 0x7fe68d
mov eax, dword [edi + 0x2c]
inc eax
cmp dword [esp + 4], 1
mov dword [edi + 0x2c], eax
mov dword [ecx], eax
jne 0x7fe68d
mov edx, dword [esp + 8]
mov ecx, ebx
push eax
call fcn.007feab0
add esp, 4
mov edx, dword [esp + 0x14]
add dword [esp], 3
mov ecx, ebx
call fcn.007f75c0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 8]
jmp 0x7fe767
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x7fe2ca
mov eax, dword [esp + 0x50]
test al, 1
je 0x7fe6ec
test byte [ebp + 5], 8
jne 0x7fe6ec
mov ecx, ebp
call fcn.007feb10
test eax, eax
mov dword [esp], 5
jne 0x7fe6e0
mov eax, dword [esp + 0x58]
jmp 0x7fe767
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
mov eax, dword [esp + 0x58]
jl 0x7fe767
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x84]
test al, 4
mov dword [esp + 4], ecx
je 0x7fe70a
mov dword [edi + 0x84], 0
jmp 0x7fe70e
test ebx, ebx
jne 0x7fe71c
mov ebx, esi
mov ecx, edi
mov edx, ebp
push esi
call fcn.007feb30
jmp 0x7fe74d
mov dword [esp + 8], esi
mov esi, dword [edi + 0x2c]
mov ecx, edi
mov edx, ebp
lea eax, [esi + 1]
mov dword [edi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [esp + 8]
mov ebx, eax
push eax
call fcn.007feb30
add esp, 4
inc esi
je 0x7fe750
mov ecx, dword [esp + 0x24]
mov edx, ebx
push esi
call fcn.007feab0
add esp, 4
mov eax, dword [esp + 4]
mov esi, ebx
mov dword [esp], 2
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp]
test eax, eax
je 0x7fe794
lea eax, [ebx - 3]
cmp eax, 2
jb 0x7fe794
mov ecx, dword [ebp + 0xc]
call fcn.007fb610
mov edx, dword [esp + 0x58]
test eax, eax
jle 0x7fe794
xor ecx, ecx
mov dword [edx + ecx*4], ecx
inc ecx
cmp ecx, eax
jne 0x7fe78c
mov dword [edi], esi
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret