Function at 0x438540
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x2c
mov dword [esp + 0x20], 0x914e4f4c
mov word [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 5
ja 0x4385ae
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, eax
xor edx, 0xa3188c0d
and eax, 0x23188c0d
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xbf
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 6
jb 0x438570
mov dword [esp + 4], 0x914e4f4c
mov word [esp + 8], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
cmp eax, 5
ja 0x43860e
nop
nop
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
movzx ecx, byte [esp + ecx + 4]
mov edx, eax
xor edx, 0xa3188c0d
and eax, 0x23188c0d
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xbf
mov ecx, dword [esp + 0x18]
mov byte [esp + ecx + 4], al
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, 6
jb 0x4385d0
mov eax, dword [esp + 4]
xor ecx, ecx
cpuid
mov dword [esp + 0x28], 0xb5898cb6
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x438678
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x28]
mov esi, eax
xor esi, 0x3f693fd0
and eax, 0x3f693fd0
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, eax
xor edx, 0x10
and eax, 0x6f
add eax, eax
sub eax, edx
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x28], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x438630
cmp ecx, dword [esp + 0x28]
je 0x4387d0
mov dword [esp + 0x20], 0x3c0a3e39
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4386e9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
mov esi, eax
xor esi, 0xe38242e9
and eax, 0xe38242e9
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x73
mov edx, dword [esp]
mov byte [esp + edx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4386b0
cmp ecx, dword [esp + 0x20]
je 0x4387d0
mov dword [esp + 4], 0x8ab0a0b2
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x438749
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 4]
mov esi, eax
xor esi, 0xac19d5cf
and eax, 0x2c19d5cf
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xf5
mov edx, dword [esp]
mov byte [esp + edx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x438710
cmp ecx, dword [esp + 4]
je 0x4387d0
mov dword [esp + 0x10], 0xe9ff0d1a
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4387ca
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
mov esi, eax
xor esi, 0x6cdd156d
and eax, 0xecdd156d
lea esi, [esi + eax*2]
mov eax, esi
and eax, edx
xor esi, edx
lea edx, [esi + eax*2]
mov esi, edx
xor esi, eax
add esi, eax
not eax
and eax, edx
add eax, eax
sub eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov edx, eax
not edx
and edx, 0x21
and eax, 0xde
sub eax, edx
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x438770
cmp ecx, dword [esp + 0x10]
jne 0x4387d8
mov al, 1
add esp, 0x2c
pop esi
pop ebx
ret
mov dword [esp + 0x18], 0xdeaaa4a5
mov word [esp + 0x1c], 0
mov byte [esp + 0x1e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x438843
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
mov esi, eax
xor esi, 0x9d706e14
and eax, 0x1d706e14
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov edx, eax
xor edx, 0x64
and eax, 0x1b
add eax, eax
sub eax, edx
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x438800
cmp ecx, dword [esp + 0x18]
sete al
jmp 0x4387d2