Function at 0x421580
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe4
mov eax, dword [0x44ab50]
mov dword [esp + 0x10], 0xad69af43
mov dword [esp + 0x14], 0x9102933c
mov dword [esp + 0x18], 0x95319754
mov dword [esp + 0x1c], 0x993d9b00
mov dword [esp + 0x20], 0x9d9e9f73
mov byte [esp + 0x24], 0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x64]
cmp ecx, 0x14
ja 0x42160b
nop
nop
nop
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
movzx edx, byte [esp + edx + 0x10]
add ecx, 0x9a21d4db
xor ecx, edx
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xb8]
add cl, 0x8d
mov edx, dword [esp + 0x64]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
cmp ecx, 0x15
jb 0x4215d0
lea edi, [esp + 0x88]
lea esi, [esp + 0x10]
push edi
push 0
push 0
push 9
push esi
push 0
call eax
mov ebx, dword [esp + 0x88]
test ebx, ebx
jns 0x421634
mov eax, 0xffffffff
jmp 0x421637
lea eax, [ebx + ebx]
push eax
call fcn.004095a0
add esp, 4
mov dword [esp + 0x58], eax
mov eax, dword [0x44ab50]
mov dword [esp + 0x10], 0xcb0bcde1
mov dword [esp + 0x14], 0xf766c958
mov dword [esp + 0x18], 0xf313f538
mov dword [esp + 0x1c], 0xff1ff16c
mov dword [esp + 0x20], 0xfbfafdd1
mov byte [esp + 0x24], 0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x64]
cmp ecx, 0x14
ja 0x4216cb
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
movzx edx, byte [esp + edx + 0x10]
add ecx, 0xb0ee059a
xor ecx, edx
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xb8]
add cl, 0xaa
mov edx, dword [esp + 0x64]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
cmp ecx, 0x15
jb 0x421690
push edi
push ebx
push dword [esp + 0x60]
push 9
push esi
push 0
call eax
mov dword [esp + 0x10], 0xfe00f83d
mov dword [esp + 0x14], 0xf216fc08
mov dword [esp + 0x18], 0xf601f000
mov dword [esp + 0x1c], 0x8a8bf411
lea edx, [esp + 0x20]
mov byte [esp + 0x20], 0
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x64]
cmp eax, 0x10
ja 0x421759
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0x5f7051b2
xor eax, ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
add al, 0xb5
mov ecx, dword [esp + 0x64]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x64]
mov eax, dword [esp + 0x64]
cmp eax, 0x11
jb 0x421720
lea eax, [esp + 0xd4]
lea esi, [esp + 0x10]
mov edi, eax
mov ecx, 4
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea edi, [esp + 0xe4]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov dword [esp + 0x10], 0x6a945491
mov dword [esp + 0x14], 0x6e8a689c
mov dword [esp + 0x18], 0x62956c9c
mov dword [esp + 0x1c], 0x66a26085
mov dword [esp + 0x20], 0x7a896482
mov dword [esp + 0x24], 0x7e89789e
mov dword [esp + 0x28], 0x72737cf2
lea esi, [esp + 0x2c]
mov word [esp + 0x2c], 0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x64]
cmp ecx, 0x1d
ja 0x421827
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
movzx edx, byte [esp + edx + 0x10]
lea edi, [ecx + 0x9e]
and edi, edx
add ecx, edx
add edi, edi
sub ecx, edi
add ecx, 0x5e11e49e
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xb8]
add cl, 0x35
mov edx, dword [esp + 0x64]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
cmp ecx, 0x1e
jb 0x4217e0
lea edx, [esp + 0xb8]
lea ebx, [esp + 0x10]
mov edi, edx
mov ecx, 7
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea edi, [esp + 0xd4]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov dword [esp + 0x10], 0xf961c702
mov dword [esp + 0x14], 0xfd1ffb69
mov dword [esp + 0x18], 0xf162ff61
mov dword [esp + 0x1c], 0xf504f316
mov dword [esp + 0x20], 0xe92af702
lea ebx, [esp + 0x24]
mov word [esp + 0x24], 0xebea
mov dword [esp + 0x26], 0
mov word [esp + 0x2a], 0
mov dword [esp + 0x8c], 0
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x1b
ja 0x42190b
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x8c]
movzx esi, byte [esp + esi + 0x10]
lea edi, [ecx + esi]
add edi, 0xc756061e
add ecx, 0xc756061e
and ecx, esi
mov esi, edi
not esi
and esi, ecx
add esi, ecx
not ecx
and ecx, edi
sub ecx, esi
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x64]
add cl, 0x28
mov esi, dword [esp + 0x8c]
mov byte [esp + esi + 0x10], cl
inc dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
cmp ecx, 0x1c
jb 0x4218b0
lea esi, [esp + 0x64]
lea ebp, [esp + 0x10]
mov edi, esi
mov ecx, 5
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
lea edi, [esp + 0x78]
mov ecx, 1
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
mov eax, dword [esp + 0x58]
add eax, 2
mov dword [esp + 0x9c], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x7c], 0
cmp ecx, 0xc
setne al
xor ecx, ecx
jmp dword [eax*4 + 0x446ff8]