Function at 0x825760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ecx]
mov esi, ecx
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x2c], esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx + 0x10]
test ebx, ebx
mov dword [edi], 0
mov dword [esp + 0xc], ecx
mov dword [ecx], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ebx
jle 0x825813
mov eax, dword [ebp + 0x18]
xor edx, edx
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 8]
mov ecx, dword [eax + 0x14]
lea edi, [edi + edi*2]
mov byte [esi + 5], 0
shl edi, 4
mov ebx, dword [ecx + edi + 0x24]
mov eax, dword [ecx + edi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, ebx
and ecx, dword [ebp + 0x10]
xor ecx, ebx
mov ebx, eax
and ebx, dword [ebp + 0xc]
xor ebx, eax
or ebx, ecx
jne 0x82580a
movzx eax, word [ebp + 0x14]
mov ecx, dword [esp + 0x10]
test word [ecx + edi + 0xc], ax
jne 0x82580a
mov byte [esi + 5], 1
inc edx
add esi, 0xc
cmp edx, dword [esp]
jne 0x8257c5
mov eax, dword [esp]
lea eax, [eax*8]
push eax
push 0
push dword [esp + 0x20]
call fcn.0098a5f0
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x2c], 0x546d42ae
mov dword [ebx + 0x28], 0xa2879f2e
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0x19
mov dword [ebx + 0x38], 0
lea esi, [eax + eax*8]
mov eax, dword [edi + esi*8 + 0x40]
mov ecx, dword [edi + esi*8 + 0x44]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x40], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + esi*8 + 0x18]
push ebx
call fcn.00825e90
add esp, 4
cmp eax, 0x13
jne 0x82589d
xor eax, eax
jmp 0x825e79
test eax, eax
jne 0x825e79
cmp dword [esp], 0
jg 0x8258e7
mov edi, dword [esp + 0xc]
lea edx, [edi + 0x18]
mov word [edi + 0x1e], 0
mov word [edi + 0x28], 0
mov eax, dword [ebx + 0x14]
mov dword [edx], eax
mov al, byte [ebx + 0x1c]
mov byte [edi + 0x1c], al
mov dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x20], eax
cmp dword [ebx + 0x20], 0
jne 0x825e0b
xor eax, eax
jmp 0x825e0e
lea ecx, [edi + esi*8 + 0x18]
movzx eax, word [ebp + 0x1c]
mov edi, dword [esp + 0xc]
mov esi, dword [esp]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov edx, dword [edi + 0x30]
mov dword [edx + ecx*4], 0
inc ecx
cmp ecx, esi
jne 0x8258fc
mov word [edi + 0x1e], 0
movzx eax, ax
lea ecx, [edi + 0x18]
mov dword [esp + 8], 0xffffffff
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + eax*8]
test ecx, ecx
jle 0x825a03
cmp ecx, esi
jg 0x825a48
mov esi, dword [edx + 8]
test esi, esi
js 0x825a48
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
cmp esi, dword [edx + 0xc]
mov edx, dword [esp + 0x10]
jge 0x825a48
mov ebx, dword [edi + 0x30]
cmp dword [ebx + ecx*4 - 4], 0
jne 0x825a48
cmp byte [edx + 5], 0
je 0x825a48
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
lea esi, [esi + esi*2]
shl esi, 4
mov ebx, dword [edx + 0x14]
mov edx, dword [ebx + esi + 0x20]
mov dword [esp + 4], edx
mov edx, edi
mov edi, dword [ebx + esi + 0x24]
or dword [edx + 4], edi
mov edi, dword [esp + 4]
or dword [edx], edi
lea edi, [ebx + esi]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x30]
mov dword [edx + ecx*4 - 4], edi
mov edi, dword [esp + 8]
dec ecx
cmp ecx, edi
cmovge edi, ecx
cmp eax, 0xf
mov dword [esp + 8], edi
ja 0x8259ea
mov edx, dword [esp + 0x18]
movzx ebx, byte [edx + eax*8 + 4]
test bl, bl
je 0x8259ea
mov edx, dword [esp + 0x28]
bt edx, eax
jb 0x8259ea
mov edx, dword [esp + 0xc]
mov edi, 1
shl edi, cl
or word [edx + 0x1e], di
mov ecx, dword [esp + 4]
test byte [ecx + esi + 0xc], 1
jne 0x825a2b
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
mov esi, dword [esp]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0xc
cmp eax, esi
jl 0x82592c
mov esi, dword [esp + 8]
lea eax, [esi + 1]
test esi, esi
mov word [edi + 0x28], ax
jns 0x825c1c
mov edx, dword [esp + 0x20]
jmp 0x8258be
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x20], 0
and byte [ebx + 0x38], 0xfe
mov dword [ecx], 1
mov edi, dword [esp + 0xc]
jmp 0x8259fc
mov edx, fcn.00789a60
movzx ecx, byte [0xbb9dbf]
and edx, 1
inc edx
mov eax, edx
xor eax, fcn.00789a60
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x825bec
mov al, byte [0xbb9dbf]
mov ecx, edx
mov ah, 1
xor ecx, fcn.00789a60
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9dbf], ah
jne 0x825a75
mov ecx, fcn.00789a60
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.00789a60
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x825adb
mov eax, ecx
movzx edx, byte [0xbb9dbf]
xor eax, fcn.00789a60
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x825abb
jmp 0x825bec
xor ecx, fcn.00789a60
movzx ecx, byte [0xbb9dbf]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x825bcb
mov eax, fcn.00789a60
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00789a60
mov eax, dword [str._lsm]
sete cl
or ecx, 0x155d1cde
add ecx, 0x240
xor eax, ecx
mov dword [str._lsm], eax
not eax
mov edx, dword [0xbb9da4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb9da4], edx
or esi, eax
not edx
mov eax, dword [0xbb9da8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb9da8], eax
or esi, edx
not eax
mov edx, dword [0xbb9dac]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb9dac], edx
or esi, eax
not edx
mov eax, dword [0xbb9db0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb9db0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9db4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb9db4], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb9db8], edx
mov dl, 1
shl dl, cl
or byte [0xbb9dbf], dl
mov eax, fcn.00789a60
and eax, 1
inc eax
xor eax, fcn.00789a60
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb9dbf], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push dword [eax]
push str._lsm
push dword [esp + 0x1c]
call fcn.0078de60
idiv bh
add esp, 0xc
mov eax, 1
jmp 0x825e79
cmp ecx, esi
lea ecx, [ecx + 1]
jge 0x8258be
jmp 0x825c25
mov eax, dword [edi + 0x30]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp dword [eax + ecx*4], 0
jne 0x825c0f
mov edx, fcn.007a8450
xor eax, eax
movzx esi, byte [0xbb9ddf]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt esi, eax
jb 0x825df9
mov al, byte [0xbb9ddf]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9ddf], ah
jne 0x825c5f
mov ecx, fcn.007a8450
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x825cd4
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb9ddf]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt esi, eax
jae 0x825caf
jmp 0x825df9
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb9ddf]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x825dcf
mov ecx, fcn.007a8450
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x20d
lea ecx, [eax + ecx*2 + 0x284f4dd0]
mov eax, dword [0xbb9dc0]
xor eax, ecx
mov dword [0xbb9dc0], eax
not eax
mov edx, dword [0xbb9dc4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb9dc4], edx
or esi, eax
not edx
mov eax, dword [0xbb9dc8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb9dc8], eax
or esi, edx
not eax
mov edx, dword [0xbb9dcc]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb9dcc], edx
or esi, eax
not edx
mov eax, dword [0xbb9dd0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb9dd0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9dd4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb9dd4], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb9dd8], edx
mov dl, 1
shl dl, cl
or byte [0xbb9ddf], dl
mov eax, fcn.007a8450
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb9ddf], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push dword [eax]
push 0xbb9dc0
jmp 0x825bf9
mov al, byte [ebx + 8]
mov byte [edx + 5], al
mov word [edi + 0x12], 0
fld qword [ebx + 0x28]
sub esp, 8
fstp qword [esp]
call fcn.00826130
add esp, 8
mov word [edi + 0x14], ax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
call fcn.007bdf50
mov word [edi + 0x16], ax
mov edx, edi
mov eax, dword [edi + 0x24]
mov ecx, eax
or eax, 0x1000
and ecx, 0xffffefff
test byte [ebx + 0x38], 1
cmove eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x24], eax
call fcn.008261c0
cmp byte [edi + 0x1c], 0
je 0x825e79
push dword [edi + 0x20]
mov esi, eax
call fcn.00780f60
mov eax, esi
add esp, 4
mov byte [edi + 0x1c], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret