Function at 0x404260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
mov dword [ebp - 0x24], eax
mov eax, ecx
shr eax, 2
push esi
mov dword [ebp - 0x1c], eax
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
mov eax, 1
push edi
mov edi, dword [0x41cdbc]
xor ebx, edi
movzx ecx, bl
mov dword [ebp - 0x10], ebx
mov esi, ebx
mov dl, byte [ecx + 0x41cde8]
mov ecx, ebx
shr ecx, 0x10
mov dh, dl
movzx ecx, cl
rol dh, 1
mov bl, byte [ecx + 0x41cde8]
mov ecx, esi
shr ecx, 8
movzx ecx, cl
shr esi, 0x18
xor dh, byte [ecx + 0x41cde8]
mov ch, bl
rol ch, 1
mov bh, dh
xor ch, byte [esi + 0x41cde8]
mov esi, eax
rol bh, 1
xor bh, dl
mov dword [ebp - 0x10], esi
mov dl, ch
rol dl, 1
xor dl, bl
mov cl, dl
rol cl, 1
rol cl, 1
xor cl, dh
mov byte [ebp - 0xb], cl
rol cl, 1
rol cl, 1
xor cl, dl
mov byte [ebp - 0xa], cl
mov cl, bh
rol cl, 1
rol cl, 1
xor cl, ch
mov byte [ebp - 9], cl
rol cl, 1
rol cl, 1
xor cl, bh
mov byte [ebp - 0xc], cl
add edi, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], edi
jbe 0x4043c2
nop dword [eax + eax]
mov ebx, dword [ecx]
inc eax
xor ebx, edi
movzx ecx, bl
mov dword [ebp - 0x10], ebx
mov esi, ebx
mov dl, byte [ecx + 0x41cde8]
mov ecx, ebx
shr ecx, 0x10
mov dh, dl
movzx ecx, cl
rol dh, 1
mov bl, byte [ecx + 0x41cde8]
mov ecx, esi
shr ecx, 8
movzx ecx, cl
shr esi, 0x18
xor dh, byte [ecx + 0x41cde8]
mov ch, bl
rol ch, 1
mov bh, dh
xor ch, byte [esi + 0x41cde8]
rol bh, 1
xor bh, dl
mov dl, ch
rol dl, 1
xor dl, bl
mov cl, dl
rol cl, 1
rol cl, 1
xor cl, dh
mov byte [ebp - 0xb], cl
rol cl, 1
rol cl, 1
xor cl, dl
mov byte [ebp - 0xa], cl
mov cl, bh
rol cl, 1
rol cl, 1
xor cl, ch
mov byte [ebp - 9], cl
rol cl, 1
rol cl, 1
xor cl, bh
mov byte [ebp - 0xc], cl
mov ecx, dword [ebp - 0x18]
add edi, dword [ebp - 0xc]
add ecx, 4
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
jne 0x404330
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0xc]
and eax, 7
cmp eax, 4
ja case.default.0x4043d1
jmp dword [eax*4 + 0x40461c]
mov eax, dword [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
call fcn.00406420
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov edi, dword [ebp - 8]
xor edx, edi
movzx eax, dl
mov dword [ebp - 0x14], edx
mov esi, edx
mov cl, byte [eax + 0x41cde8]
mov eax, edx
shr eax, 0x10
mov bl, cl
movzx eax, al
rol bl, 1
mov dl, byte [eax + 0x41cde8]
mov eax, esi
shr eax, 8
movzx eax, al
shr esi, 0x18
xor bl, byte [eax + 0x41cde8]
mov ah, dl
mov ch, bl
rol ah, 1
xor ah, byte [esi + 0x41cde8]
rol ch, 1
xor ch, cl
mov esi, dword [ebp - 0x10]
mov cl, ah
rol cl, 1
xor cl, dl
mov al, cl
rol al, 1
rol al, 1
xor al, bl
mov byte [ebp - 0xb], al
rol al, 1
rol al, 1
xor al, cl
mov byte [ebp - 0xa], al
mov al, ch
rol al, 1
rol al, 1
xor al, ah
mov byte [ebp - 9], al
rol al, 1
rol al, 1
xor al, ch
mov byte [ebp - 0xc], al
add edi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 8], edi
movzx eax, byte [ebp - 8]
mov cl, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 6]
mov bl, cl
rol bl, 1
mov dl, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 7]
mov ch, dl
rol ch, 1
xor bl, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 5]
mov dh, bl
rol dh, 1
xor dh, cl
xor ch, byte [eax + 0x41cde8]
mov cl, ch
rol cl, 1
xor cl, dl
mov al, cl
rol al, 1
rol al, 1
xor al, bl
mov byte [ebp - 0xb], al
rol al, 1
rol al, 1
xor al, cl
mov byte [ebp - 0xa], al
mov al, dh
rol al, 1
rol al, 1
xor al, ch
mov byte [ebp - 9], al
rol al, 1
rol al, 1
xor al, dh
jmp 0x40456e
mov eax, dword [ebp - 0x14]
test eax, eax
je case.0x4043d1.0
push eax
push ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
call fcn.00406420
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov edi, dword [ebp - 8]
xor edx, edi
movzx eax, dl
mov dword [ebp - 0x14], edx
mov esi, edx
mov cl, byte [eax + 0x41cde8]
mov eax, edx
shr eax, 0x10
mov bl, cl
movzx eax, al
rol bl, 1
mov dl, byte [eax + 0x41cde8]
mov eax, esi
shr eax, 8
movzx eax, al
shr esi, 0x18
xor bl, byte [eax + 0x41cde8]
mov ah, dl
mov ch, bl
rol ah, 1
xor ah, byte [esi + 0x41cde8]
rol ch, 1
xor ch, cl
mov esi, dword [ebp - 0x10]
mov cl, ah
rol cl, 1
xor cl, dl
mov al, cl
rol al, 1
rol al, 1
xor al, bl
mov byte [ebp - 0xb], al
rol al, 1
rol al, 1
xor al, cl
mov byte [ebp - 0xa], al
mov al, ch
rol al, 1
rol al, 1
xor al, ah
mov byte [ebp - 9], al
rol al, 1
rol al, 1
xor al, ch
mov byte [ebp - 0xc], al
add edi, dword [ebp - 0xc]
inc esi
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 1]
mov edx, dword [0x41cdc0]
mov dword [0x421bcc], eax
inc edx
mov ecx, dword [ecx + 4]
add ecx, esi
add edx, ecx
xor edx, edi
movzx eax, dl
mov dword [ebp - 0x20], edx
mov esi, edx
mov cl, byte [eax + 0x41cde8]
mov eax, edx
shr eax, 0x10
mov bl, cl
movzx eax, al
rol bl, 1
mov dl, byte [eax + 0x41cde8]
mov eax, esi
shr eax, 8
movzx eax, al
shr esi, 0x18
xor bl, byte [eax + 0x41cde8]
mov ah, dl
mov ch, bl
rol ah, 1
xor ah, byte [esi + 0x41cde8]
rol ch, 1
xor ch, cl
mov cl, ah
rol cl, 1
xor cl, dl
mov al, cl
rol al, 1
rol al, 1
xor al, bl
mov byte [ebp - 0xb], al
rol al, 1
rol al, 1
xor al, cl
mov byte [ebp - 0xa], al
mov al, ch
rol al, 1
rol al, 1
xor al, ah
mov byte [ebp - 9], al
rol al, 1
rol al, 1
xor al, ch
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404630
mov esp, ebp
pop ebp
ret