Function at 0x46b9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
test ecx, ecx
je 0x46bb77
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax + 2]
shl ecx, 8
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x74]
or ecx, edx
movzx eax, byte [eax + 3]
shl eax, 0x18
or ecx, eax
mov eax, dword [esp + 0x74]
movzx edx, byte [eax + 4]
movzx ebp, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ebp, 8
shl eax, 0x10
or ebp, eax
mov eax, dword [esp + 0x74]
or ebp, edx
movzx eax, byte [eax + 7]
shl eax, 0x18
or ebp, eax
cmp dword [esp + 0x64], 7
jbe 0x46bb4d
mov eax, dword [esp + 0x64]
mov edx, ebp
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
movzx ebp, byte [ebx + 1]
add ebx, 8
add esi, 8
movzx eax, byte [ebx - 6]
movzx edi, byte [ebx - 8]
shl ebp, 8
shl eax, 0x10
or ebp, eax
movzx eax, byte [ebx - 5]
or ebp, edi
movzx edi, byte [ebx - 2]
shl eax, 0x18
or ebp, eax
movzx eax, byte [ebx - 4]
shl edi, 0x10
xor ebp, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], eax
movzx eax, byte [ebx - 3]
shl eax, 8
or eax, edi
movzx edi, byte [ebx - 1]
or eax, dword [esp + 0x24]
shl edi, 0x18
or eax, edi
xor eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym.adb.exe_DES_encrypt3
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub dword [esp + 0x10], 8
mov eax, ecx
shr eax, 8
mov byte [esi - 7], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi - 5], al
mov eax, edx
shr eax, 8
mov byte [esi - 3], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 2], al
mov eax, edx
mov byte [esi - 8], cl
shr eax, 0x18
mov byte [esi - 4], dl
cmp dword [esp + 0x10], 7
mov byte [esi - 1], al
ja 0x46ba65
mov eax, dword [esp + 0x64]
mov ebp, edx
and dword [esp + 0x64], 7
sub eax, 8
shr eax, 3
lea eax, [eax*8 + 8]
add dword [esp + 0x5c], eax
add dword [esp + 0x60], eax
mov edx, dword [esp + 0x64]
test edx, edx
je 0x46bd36
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x64]
cmp dword [esp + 0x64], 7
ja case.0x46bb70.0
mov ebx, dword [esp + 0x64]
jmp dword [ebx*4 + 0x53da40]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
movzx eax, byte [eax + 2]
shl edx, 8
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 0x74]
or edx, ecx
movzx eax, byte [eax + 3]
shl eax, 0x18
or edx, eax
mov eax, dword [esp + 0x74]
movzx ecx, byte [eax + 4]
movzx eax, byte [eax + 5]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
shl dword [esp + 0x10], 8
movzx eax, byte [eax + 6]
shl eax, 0x10
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
or dword [esp + 0x10], ecx
movzx eax, byte [eax + 7]
shl eax, 0x18
or dword [esp + 0x10], eax
cmp dword [esp + 0x64], 7
jbe 0x46bf73
mov eax, dword [esp + 0x64]
mov ebp, edx
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
jmp 0x46bbfd
mov dword [esp + 0x10], ebx
mov ebp, ecx
movzx ecx, byte [esi + 1]
add esi, 8
add edi, 8
movzx eax, byte [esi - 6]
movzx edx, byte [esi - 8]
movzx ebx, byte [esi - 3]
shl ecx, 8
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
or ecx, edx
movzx edx, byte [esi - 4]
shl ebx, 8
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 2]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [esi - 1]
or ebx, edx
shl eax, 0x18
or ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym.adb.exe_DES_decrypt3
mov edx, dword [esp + 0x40]
sub dword [esp + 0x24], 8
mov ecx, dword [esp + 0x28]
xor edx, ebp
mov ebp, dword [esp + 0x10]
mov eax, edx
xor ebp, dword [esp + 0x44]
shr eax, 8
mov byte [edi - 7], al
mov eax, edx
shr eax, 0x10
mov byte [edi - 6], al
mov eax, ebp
mov byte [edi - 4], al
mov eax, ebp
shr eax, 8
mov byte [edi - 3], al
mov eax, ebp
shr eax, 0x10
mov byte [edi - 8], dl
shr edx, 0x18
mov byte [edi - 2], al
mov eax, ebp
mov byte [edi - 5], dl
shr eax, 0x18
cmp dword [esp + 0x24], 7
mov byte [edi - 1], al
ja 0x46bbf7
mov eax, dword [esp + 0x64]
mov ebp, ecx
and dword [esp + 0x64], 7
sub eax, 8
shr eax, 3
lea eax, [eax*8 + 8]
add dword [esp + 0x5c], eax
add dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x46be80
mov ecx, dword [esp + 0x74]
mov eax, ebp
mov byte [ecx], al
mov eax, ebp
shr eax, 8
mov byte [ecx + 1], al
mov eax, ebp
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebp
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 5], al
mov eax, ebx
mov byte [ecx + 4], bl
shr eax, 0x10
shr ebx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], bl
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ecx
mov ebx, ecx
shr eax, 8
mov esi, ebp
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x14], eax
mov eax, ebp
shr ecx, 0x18
shr eax, 8
mov dword [esp + 0x24], ecx
mov ecx, eax
mov eax, ebp
shr eax, 0x10
shr ebp, 0x18
mov dword [esp + 0x28], eax
mov eax, ebp
mov edi, dword [esp + 0x74]
mov byte [edi], bl
movzx ebx, byte [esp + 0x10]
mov byte [edi + 5], cl
mov byte [edi + 7], al
mov byte [edi + 1], bl
movzx ebx, byte [esp + 0x14]
mov byte [edi + 2], bl
movzx ebx, byte [esp + 0x24]
mov byte [edi + 3], bl
mov ebx, esi
mov byte [edi + 4], bl
movzx ebx, byte [esp + 0x28]
mov byte [edi + 6], bl
add esp, 0x48
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, byte [eax - 1]
sub eax, 1
shl esi, 0x10
movzx edx, byte [eax - 1]
lea ebx, [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [ebx - 1]
lea eax, [ebx - 1]
or esi, edx
movzx ebx, byte [eax - 1]
lea edx, [eax - 1]
shl ebx, 0x18
lea eax, [edx - 1]
movzx edx, byte [edx - 1]
shl edx, 0x10
or edx, ebx
lea ebx, [eax - 1]
movzx eax, byte [eax - 1]
shl eax, 8
or eax, edx
movzx edx, byte [ebx - 1]
xor esi, ebp
mov dword [esp + 0x44], esi
or edx, eax
mov eax, dword [esp + 0x70]
xor edx, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call sym.adb.exe_DES_encrypt3
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
mov ebx, edx
mov ebp, dword [esp + 0x60]
mov byte [ecx], dl
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
mov esi, eax
mov byte [esp + 0x10], cl
mov ecx, edx
shr edx, 0x18
mov byte [edi + 3], dl
shr ecx, 0x10
mov byte [esp + 0x24], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], cl
mov byte [edi + 4], al
mov byte [edi + 5], dl
mov edi, eax
shr edi, 0x10
mov byte [esp + 0x14], cl
shr eax, 0x18
mov ecx, edx
mov edx, edi
mov byte [esp + 0x28], dl
mov edx, edi
mov edi, eax
mov byte [ebp + 6], dl
mov edx, edi
mov byte [ebp + 7], dl
jmp 0x46bd68
mov eax, dword [esp + 0x5c]
movzx edx, byte [eax]
movzx edi, byte [eax + 1]
movzx eax, byte [eax + 2]
shl edi, 8
shl eax, 0x10
or edi, eax
mov eax, dword [esp + 0x5c]
or edi, edx
movzx eax, byte [eax + 3]
shl eax, 0x18
or edi, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], edi
movzx edx, byte [eax + 4]
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl esi, 8
shl eax, 0x10
or esi, eax
mov eax, dword [esp + 0x5c]
or esi, edx
movzx eax, byte [eax + 7]
shl eax, 0x18
or esi, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call sym.adb.exe_DES_decrypt3
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x60]
xor ebx, dword [esp + 0x44]
add eax, dword [esp + 0x64]
xor edx, ebp
cmp dword [esp + 0x64], 7
ja case.0x46bf1a.64
mov ecx, dword [esp + 0x64]
jmp dword [ecx*4 + 0x53da60]
mov ecx, ebx
sub eax, 1
shr ecx, 0x10
mov byte [eax], cl
mov ebp, ebx
lea ecx, [eax - 1]
shr ebp, 8
mov dword [esp + 0x10], ecx
mov ecx, ebp
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 1]
mov byte [ecx - 1], bl
mov ebx, edx
shr ebx, 0x18
lea ecx, [eax - 1]
mov byte [eax - 1], bl
mov ebx, edx
shr ebx, 0x10
lea eax, [ecx - 1]
mov byte [ecx - 1], bl
mov ebx, edx
shr ebx, 8
lea ecx, [eax - 1]
mov byte [eax - 1], bl
mov byte [ecx - 1], dl
mov ebx, esi
mov ebp, edi
jmp 0x46bcf5
mov ebx, dword [esp + 0x10]
mov ebp, edx
jmp 0x46bce9
xor esi, esi
xor edx, edx
jmp 0x46bdd6
mov edx, eax
xor esi, esi
xor ebx, ebx
jmp 0x46bdca
xor esi, esi
jmp 0x46bdc0
mov ebx, eax
xor edx, edx
jmp 0x46bdb7
mov ebx, eax
xor esi, esi
xor eax, eax
jmp 0x46bde2
xor esi, esi
jmp 0x46bdab
mov dword [esp + 0x10], eax
jmp 0x46bf3c
mov ecx, eax
jmp 0x46bf51
mov ecx, eax
jmp 0x46bf67