Function at 0x420030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov esi, edx
mov edi, ecx
call fcn.00405990
mov dword [esp + 0x28], eax
push eax
call fcn.004052b0
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov esi, dword [esi + 0x3c]
lea ebx, [esp + 0x30]
push 0x120
push 0
push ebx
call fcn.0040d860
add esp, 0xc
mov dword [esp + 0x24], edi
mov ecx, edi
push 0
push 0
push 0x120
push ebx
push esi
push dword [esp + 0x30]
call fcn.0043ee50
test eax, eax
js 0x420495
mov dword [esp + 8], 0x3239343e
mov byte [esp + 0xc], 0x88
mov dword [esp + 0xd], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x4200fe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xcc3fb263
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x11
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x4200d0
lea edx, [esp + 0x38]
lea eax, [esp + 8]
mov esi, dword [esp + 0x24]
mov ecx, esi
mov edi, dword [esp + 0x20]
push edi
push eax
call fcn.00420540
add esp, 8
mov ebx, eax
mov dword [esp + 8], 0x1a023812
mov dword [esp + 0xc], 0x9509
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x420179
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x1c46ec66
and eax, 0x1c46ec66
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 2
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x420140
lea edx, [esp + 0x118]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.00420540
add esp, 8
mov dword [esp + 8], 0x77717e78
mov dword [esp + 0xc], 0x6e437e4b
mov byte [esp + 0x10], 0xd8
mov word [esp + 0x11], 0
mov byte [esp + 0x13], 0
and bl, al
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x420213
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xb229bad8
and eax, 0x3229bad8
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, eax
xor ecx, 0x38
and eax, 0x47
add eax, eax
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x4201d0
lea edx, [esp + 0x50]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.00420540
add esp, 8
mov dword [esp + 8], 0x4f7a5848
mov byte [esp + 0xc], 0xf4
mov dword [esp + 0xd], 0
and bl, al
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x42027e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x5577dd56
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x52
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x420250
lea edx, [esp + 0x68]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.00420540
add esp, 8
and bl, al
fild qword [esp + 0x130]
mov dword [esp + 8], 0xc6bab3cf
mov dword [esp + 0xc], 0xccbbc4be
mov dword [esp + 0x10], 0xd13747b7
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x420310
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x8449c477
and eax, 0x449c477
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xad
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x4202d0
sub esp, 0x10
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00406d20
add esp, 0x10
test eax, eax
sete cl
movzx eax, byte [esp + 0x88]
mov dword [esp + 8], 0x100d1219
mov dword [esp + 0xc], 0x15130601
mov word [esp + 0x10], 0x791d
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
and bl, cl
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xf
ja 0x4203ba
nop
nop
mov edi, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea esi, [edi + edi]
and esi, 0xb7d678d0
mov edx, edi
not edx
or edx, 0x5beb3c68
add edx, edi
sub edi, esi
lea edx, [edi + edx*2]
add edx, 0xdbeb3c6a
xor edx, ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 4]
add cl, 0xf8
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x420370
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
call fcn.00406db0
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
movzx eax, bl
not eax
or ecx, eax
movzx edx, byte [esp + 0x88]
mov dword [esp + 0x1c], edx
mov dword [esp + 8], 0xa3bebda8
mov dword [esp + 0xc], 0xbbb8ba8b
mov word [esp + 0x10], 0x29a1
mov dword [esp + 0x12], 0
mov dword [esp], 0
mov esi, dword [esp]
cmp esi, 0xd
ja 0x42046e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp]
mov edi, dword [esp]
movzx ebx, byte [esp + edi + 8]
mov edi, esi
not edi
or edi, 0x53cc7e8c
add edi, esi
xor esi, 0x53cc7e8c
lea edx, [esi + edi*2]
lea esi, [esi + edi*2]
add esi, 2
add edx, ebx
add edx, 2
and esi, ebx
add esi, esi
sub edx, esi
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x44
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xe
jb 0x420420
cmp ecx, eax
setne byte [esp + 0x1b]
push dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
call fcn.00406db0
add esp, 0xc
test eax, eax
sete bl
and bl, byte [esp + 0x1b]
jmp 0x420497
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
je 0x4204d5
mov edi, dword [esp + 0x24]
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043ee50
test eax, eax
js 0x4204d5
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.00420030
add esp, 4
or bl, al
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
or ecx, edx
je 0x420514
mov edi, dword [esp + 0x24]
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043ee50
test eax, eax
js 0x420514
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.00420030
add esp, 4
or bl, al
test bl, bl
je 0x420529
push dword [esp + 0x28]
push dword [ebp + 8]
call fcn.004066f0
add esp, 8
jmp 0x420535
push dword [esp + 0x28]
call fcn.00405860
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret