Function at 0x6b526150
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
mov eax, dword [esi + 0x170]
mov edi, dword [esi + 0x160]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
mov ecx, edx
mov edx, eax
mov eax, 0xffffffe0
cmp eax, edx
mov eax, 0xf
sbb eax, ecx
jb 0x6b5268c7
mov eax, dword [esi + 0x16c]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
test eax, eax
jne 0x6b52651b
mov ecx, dword [esi + 0x168]
mov eax, dword [esi + 0xc]
bswap eax
mov dword [esp + 0x30], eax
mov eax, ecx
mov dword [esp + 0x2c], ecx
and eax, 0xf
je 0x6b5268d1
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x6b526507
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
jmp 0x6b5261f3
test ebp, ebp
je 0x6b526218
movzx edx, byte [edi]
add ecx, 1
add ebx, 1
add edi, 1
sub ebp, 1
mov byte [esi + ecx + 0x177], dl
xor dl, byte [esi + eax + 0x10]
add eax, 1
mov byte [ebx - 1], dl
and eax, 0xf
jne 0x6b5261ef
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ebp
test eax, eax
jne 0x6b526507
lea eax, [esi + 0x178]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x6c], 0xbff
jbe 0x6b52634d
lea eax, [esi + 0x60]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x40]
mov dword [esp + 0x38], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0xc00]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0xc00
lea ebx, [eax - 0xc00]
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x60], esi
mov esi, ebp
mov ebp, dword [esp + 0x60]
lea esi, [esi]
nop
mov eax, dword [esp + 0x24]
add esi, 1
mov dword [esp], ebp
add ebx, 0x10
add edi, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
mov edx, esi
bswap edx
mov dword [ebp + 0xc], edx
mov edx, dword [edi - 0x10]
xor edx, dword [ebp + 0x10]
mov dword [ebx - 0x10], edx
mov edx, dword [edi - 0xc]
xor edx, dword [ebp + 0x14]
mov dword [ebx - 0xc], edx
mov edx, dword [edi - 8]
xor edx, dword [ebp + 0x18]
mov dword [ebx - 8], edx
mov edx, dword [edi - 4]
xor edx, dword [ebp + 0x1c]
mov dword [ebx - 4], edx
cmp ebx, dword [esp + 0x1c]
jne 0x6b5262c8
add dword [esp + 0x30], 0xc0
lea eax, [ebx + 0xc00]
mov esi, ebp
add dword [esp + 0x64], 0xc00
sub dword [esp + 0x6c], 0xc00
cmp dword [esp + 0x6c], 0xbff
mov dword [esp + 0x1c], eax
ja 0x6b526282
mov eax, dword [esp + 0x6c]
and eax, 0xfffffff0
jne 0x6b526601
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x6b526507
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp], esi
lea edi, [ebx + 4]
mov dword [esp + 8], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
call ecx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
add edx, 4
add ecx, 1
mov dword [esp + 0x1c], edx
lea edx, [esi + 0x14]
mov eax, ecx
mov ecx, dword [esp + 0x6c]
bswap eax
cmp dword [esp + 0x24], edi
mov dword [esi + 0xc], eax
mov eax, edx
lea ebp, [ecx - 1]
setae dl
cmp eax, ebx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
setbe al
or edx, eax
cmp dword [esp + 0x64], edi
lea ecx, [esi + ecx + 0x178]
setae al
cmp dword [esp + 0x1c], ebx
setbe byte [esp + 0x28]
or al, byte [esp + 0x28]
and eax, edx
cmp ebp, 2
seta dl
and edx, eax
cmp ecx, edi
mov edi, dword [esp + 0x2c]
setae al
lea edi, [esi + edi + 0x17c]
cmp ebx, edi
setae byte [esp + 0x28]
or al, byte [esp + 0x28]
and edx, eax
cmp dword [esp + 0x1c], ecx
setbe al
cmp dword [esp + 0x64], edi
mov byte [esp + 0x28], dl
setae dl
or eax, edx
and al, byte [esp + 0x28]
cmp dword [esp + 0x20], ecx
mov byte [esp + 0x1c], al
setbe al
cmp dword [esp + 0x24], edi
setae dl
or eax, edx
test byte [esp + 0x1c], al
je 0x6b5266da
mov eax, dword [esp + 0x64]
or eax, ebx
or eax, ecx
test al, 3
jne 0x6b5266da
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov eax, dword [eax]
shr edx, 2
mov dword [ecx], eax
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
cmp edx, 1
je 0x6b526486
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
cmp edx, 3
jne 0x6b526486
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffc
add ecx, eax
sub ebp, eax
cmp dword [esp + 0x6c], eax
je 0x6b5264ff
mov edx, dword [esp + 0x64]
lea edi, [ecx + 1]
movzx edx, byte [edx + eax]
mov byte [esi + ecx + 0x178], dl
xor dl, byte [esi + eax + 0x10]
mov byte [ebx + eax], dl
lea edx, [eax + 1]
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x6b5264ff
mov edx, dword [esp + 0x64]
add ecx, 2
mov dword [esp + 0x1c], ecx
movzx edx, byte [edx + eax + 1]
mov byte [esi + edi + 0x178], dl
xor dl, byte [esi + eax + 0x11]
mov byte [ebx + eax + 1], dl
cmp ebp, 1
je 0x6b5264ff
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x1c]
movzx ecx, byte [ebp + eax + 2]
mov byte [esi + edi + 0x178], cl
xor cl, byte [esi + eax + 0x12]
mov byte [ebx + eax + 2], cl
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x168], eax
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x6c]
lea eax, [esi + 0x40]
test ebp, ebp
jne 0x6b526546
lea edx, [esi + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
call edi
xor eax, eax
mov dword [esi + 0x16c], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x2c], 0x10
mov dword [esi + 0x178], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x17c], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x180], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x184], eax
mov eax, dword [esi + 0xc]
bswap eax
mov dword [esp + 0x30], eax
mov eax, 1
cmp dword [esp + 0x6c], 0xf
jbe 0x6b526255
test al, al
je 0x6b526255
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x60]
lea edi, [esi + 0x40]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], eax
lea eax, [esi + 0x178]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], edi
mov dword [esp + 4], ecx
mov dword [esp], edi
call eax
cmp dword [esp + 0x6c], 0xbff
jbe 0x6b5268b3
mov dword [esp + 0x2c], 0
jmp 0x6b526271
lea ecx, [esi + 0x60]
mov dword [esp + 0x34], ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0x38], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov ebp, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
lea eax, [esi + 0x10]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
add edx, 1
lea ecx, [eax - 0x10]
shr ecx, 4
mov edi, ecx
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], edi
mov edi, edx
mov dword [esp + 0x28], eax
mov ebx, ecx
jmp 0x6b526668
add edi, 1
mov eax, dword [esp + 0x24]
mov dword [esp], esi
add ebp, 0x10
add ebx, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
mov eax, edi
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [ebx - 0x10]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx - 0xc]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx - 8]
xor eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebx - 4]
xor eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
cmp edi, dword [esp + 0x28]
jne 0x6b526665
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
and dword [esp + 0x6c], 0xf
lea eax, [edi + 1]
shl eax, 4
add dword [esp + 0x64], eax
add ebx, eax
jmp 0x6b52635a
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
movzx eax, byte [eax]
mov byte [esi + edi + 0x178], al
xor al, byte [esi + 0x10]
mov byte [ebx], al
test ebp, ebp
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 1]
mov byte [esi + edi + 0x179], al
xor al, byte [esi + 0x11]
cmp dword [esp + 0x6c], 2
mov byte [ebx + 1], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 2]
mov byte [esi + edi + 0x17a], al
xor al, byte [esi + 0x12]
cmp dword [esp + 0x6c], 3
mov byte [ebx + 2], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 3]
mov byte [esi + edi + 0x17b], al
xor al, byte [esi + 0x13]
cmp dword [esp + 0x6c], 4
mov byte [ebx + 3], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 4]
mov byte [esi + edi + 0x17c], al
xor al, byte [esi + 0x14]
cmp dword [esp + 0x6c], 5
mov byte [ebx + 4], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 5]
mov byte [esi + edi + 0x17d], al
xor al, byte [esi + 0x15]
cmp dword [esp + 0x6c], 6
mov byte [ebx + 5], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 6]
mov byte [esi + edi + 0x17e], al
xor al, byte [esi + 0x16]
cmp dword [esp + 0x6c], 7
mov byte [ebx + 6], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 7]
mov byte [esi + edi + 0x17f], al
xor al, byte [esi + 0x17]
cmp dword [esp + 0x6c], 8
mov byte [ebx + 7], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 8]
mov byte [esi + edi + 0x180], al
xor al, byte [esi + 0x18]
cmp dword [esp + 0x6c], 9
mov byte [ebx + 8], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 9]
mov byte [esi + edi + 0x181], al
xor al, byte [esi + 0x19]
cmp dword [esp + 0x6c], 0xa
mov byte [ebx + 9], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 0xa]
mov byte [esi + edi + 0x182], al
xor al, byte [esi + 0x1a]
cmp dword [esp + 0x6c], 0xb
mov byte [ebx + 0xa], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 0xb]
mov byte [esi + edi + 0x183], al
xor al, byte [esi + 0x1b]
cmp dword [esp + 0x6c], 0xc
mov byte [ebx + 0xb], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 0xc]
mov byte [esi + edi + 0x184], al
xor al, byte [esi + 0x1c]
cmp dword [esp + 0x6c], 0xd
mov byte [ebx + 0xc], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 0xd]
mov byte [esi + edi + 0x185], al
xor al, byte [esi + 0x1d]
cmp dword [esp + 0x6c], 0xe
mov byte [ebx + 0xd], al
je 0x6b5264ff
mov eax, dword [esp + 0x64]
movzx eax, byte [eax + 0xe]
mov byte [esi + edi + 0x186], al
xor al, byte [esi + 0x1e]
mov byte [ebx + 0xe], al
jmp 0x6b5264ff
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], 0
and eax, 0xfffffff0
jmp 0x6b52660f
mov eax, 0xffffffff
jmp 0x6b52653e
mov edx, dword [esp + 0x2c]
test edx, edx
setne al
jmp 0x6b5265a6