Function at 0x461920
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x50], 0
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
je 0x461a1c
cmp esi, 8
jb 0x461b09
lea ebp, [esi - 8]
mov edi, ebp
mov dword [esp], ebp
mov ebp, ebx
and edi, 0xfffffff8
lea ebx, [ebx + edi + 8]
lea eax, [edi + 8]
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x34]
xor ecx, dword [eax + edi]
xor edx, dword [eax + edi + 4]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
push dword [esp + 0x48]
push ebx
push dword [esp + 0x48]
lea eax, [esp + 0x10]
push eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
add esi, 0xfffffff8
mov eax, ecx
mov byte [ebp + edi], cl
mov byte [ebp + edi + 1], ch
shr eax, 0x10
mov byte [ebp + edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edi + 3], al
mov eax, edx
mov byte [ebp + edi + 4], dl
mov byte [ebp + edi + 5], dh
shr eax, 0x10
mov byte [ebp + edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + edi + 7], al
add edi, 8
cmp esi, 7
ja 0x461980
mov eax, dword [esp + 0x34]
mov esi, dword [esp]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
add eax, dword [esp + 0xc]
sub esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test esi, esi
jne 0x461b15
jmp 0x461c87
cmp esi, 8
jb 0x461be6
lea edi, [esi - 8]
mov dword [esp + 0xc], edi
and edi, 0xfffffff8
lea ebp, [edi + 8]
lea ebx, [ebx + edi + 8]
mov dword [esp + 0x1c], edi
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
nop word cs:[eax + eax]
nop
mov eax, dword [esp + 0x34]
mov ebx, ecx
mov dword [esp], edx
mov ecx, dword [eax + edi]
mov ebp, dword [eax + edi + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
lea eax, [esp + 0x10]
push eax
call sym.adb.exe_DES_decrypt3
mov ecx, dword [esp + 0x20]
mov edx, ebp
add esp, 0x10
mov eax, dword [esp]
xor ebx, dword [esp + 4]
add esi, 0xfffffff8
xor eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov byte [eax + edi], bl
mov ebp, eax
mov byte [eax + edi + 1], bh
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], bl
mov ebx, dword [esp]
mov eax, ebx
mov byte [ebp + edi + 4], bl
mov byte [ebp + edi + 5], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp + edi + 6], al
mov byte [ebp + edi + 7], bl
add edi, 8
cmp esi, 7
ja 0x461a50
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add eax, dword [esp + 0x18]
sub esi, dword [esp + 0x1c]
test esi, esi
jne 0x461bf6
jmp 0x461c87
mov dword [esp + 0x14], ebx
test esi, esi
je 0x461c87
mov dword [esp], edx
mov edx, esi
dec esi
mov ebx, eax
xor eax, eax
cmp esi, 6
ja case.default.0x461b36
mov edi, ebx
mov dword [esp + 0x10], ecx
xor ecx, ecx
xor ebx, ebx
add edi, edx
xor edx, edx
jmp dword [esi*4 + 0x57a9b8]
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi - 1]
dec edi
or eax, ecx
mov ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx edx, byte [edi - 1]
dec edi
mov ebx, ecx
shl edx, 0x10
or eax, edx
movzx ecx, byte [edi - 1]
dec edi
mov edx, ebx
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi - 1]
mov edi, dword [esp + 0x48]
or eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, dword [esp]
mov esi, dword [esp + 0x40]
xor eax, ecx
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov dword [esp + 8], edx
push edi
push dword [esp + 0x48]
push esi
push eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov eax, ebx
mov byte [ecx], bl
mov byte [ecx + 1], bh
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, edx
mov byte [ecx + 4], dl
mov byte [ecx + 5], dh
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 7], al
jmp 0x461c89
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x461c87
mov dword [esp], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ebp, ebx
mov ebx, edi
mov edi, ecx
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 0xc], edx
push ebx
push ebp
push dword [esp + 0x48]
push eax
call sym.adb.exe_DES_decrypt3
add esp, 0x10
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x461c4c
mov edx, dword [esp]
mov ecx, edi
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x4c]
xor ecx, dword [esp + 4]
xor edx, dword [esp + 8]
add edi, esi
mov esi, edi
jmp dword [eax*4 + 0x57a9d4]
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], dh
dec esi
mov byte [esi - 1], dl
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], ch
dec esi
mov byte [esi - 1], cl
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
jmp 0x461c89
mov ebx, ecx
mov eax, ebx
mov byte [ebp], bl
mov byte [ebp + 1], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
mov byte [ebp + 3], bl
mov byte [ebp + 4], dl
mov byte [ebp + 5], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebp + 6], al
mov byte [ebp + 7], dl
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x461b86
mov ebp, dword [esp + 0x4c]
jmp 0x461c7d