Function at 0x422570
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe8
mov eax, dword [0x44ab94]
mov dword [esp + 0xc], 0xe1a1e3c7
mov dword [esp + 0x10], 0xe594e796
mov dword [esp + 0x14], 0xf999fbbe
mov dword [esp + 0x18], 0xfd9dff8a
mov dword [esp + 0x1c], 0xf1f0f3d7
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
cmp ecx, 0x17
ja 0x4225fb
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x56ee36e8
xor ecx, edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xbc]
add cl, 0xf6
mov edx, dword [esp + 0x58]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
cmp ecx, 0x18
jb 0x4225c0
lea edi, [esp + 0x8c]
lea esi, [esp + 0xc]
push edi
push 0
push 0
push 9
push esi
push 0
call eax
mov ebx, dword [esp + 0x8c]
test ebx, ebx
jns 0x422624
mov eax, 0xffffffff
jmp 0x422627
lea eax, [ebx + ebx]
push eax
call fcn.00409a50
add esp, 4
mov ebp, eax
mov eax, dword [0x44ab94]
mov dword [esp + 0xc], 0xbbe3bdc5
mov dword [esp + 0x10], 0xb708b90a
mov dword [esp + 0x14], 0xb30bb5ea
mov dword [esp + 0x18], 0x8f0fb13e
mov dword [esp + 0x1c], 0x8b8c8df5
mov word [esp + 0x20], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
cmp ecx, 0x16
ja 0x4226bb
nop
nop
nop
nop
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x7dba9e91
xor ecx, edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xbc]
add cl, 0xd1
mov edx, dword [esp + 0x58]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
cmp ecx, 0x17
jb 0x422680
push edi
push ebx
push ebp
push 9
push esi
push 0
call eax
mov dword [esp + 0xc], 0x9a6c9c51
mov dword [esp + 0x10], 0xa64a9864
mov dword [esp + 0x14], 0xa25da454
mov dword [esp + 0x18], 0xaeafa04d
mov word [esp + 0x1c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x58]
cmp eax, 0x11
ja 0x422739
nop
nop
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x38d48fda
xor eax, ecx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xbc]
add al, 0xb9
mov ecx, dword [esp + 0x58]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 0x58]
mov eax, dword [esp + 0x58]
cmp eax, 0x12
jb 0x422700
lea eax, [esp + 0xd8]
lea edx, [esp + 0xc]
mov edi, eax
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xe8]
lea edx, [esp + 0x1c]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov dword [esp + 0xc], 0xef870ad
mov dword [esp + 0x10], 0xaf60c80
mov dword [esp + 0x14], 0x68908f8
mov dword [esp + 0x18], 0x2de04f9
mov dword [esp + 0x1c], 0x1eed00fe
mov dword [esp + 0x20], 0x1a951ce2
mov dword [esp + 0x24], 0x1617189e
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
cmp ecx, 0x1b
ja 0x4227eb
nop
nop
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x7bfdf7be
xor ecx, edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xbc]
add cl, 0x31
mov edx, dword [esp + 0x58]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
cmp ecx, 0x1c
jb 0x4227b0
mov dword [esp + 0x80], ebp
lea edx, [esp + 0xbc]
lea esi, [esp + 0xc]
mov edi, edx
mov ecx, 7
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea edi, [esp + 0xd8]
lea esi, [esp + 0x28]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov dword [esp + 0xc], 0x8a2c84c3
mov dword [esp + 0x10], 0x8e2e883c
mov dword [esp + 0x14], 0x923b8c3c
mov dword [esp + 0x18], 0x96c19037
mov dword [esp + 0x1c], 0x9ad394c3
lea ebx, [esp + 0x20]
mov word [esp + 0x20], 0x989b
mov dword [esp + 0x22], 0
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0x94]
cmp ecx, 0x19
ja 0x4228cb
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x94]
movzx esi, byte [esp + esi + 0xc]
lea edi, [ecx + esi]
add edi, 0x140ef325
add ecx, 0x140ef325
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 + 0x58], ecx
mov ecx, dword [esp + 0x58]
add cl, 0x5e
mov esi, dword [esp + 0x94]
mov byte [esp + esi + 0xc], cl
inc dword [esp + 0x94]
mov ecx, dword [esp + 0x94]
cmp ecx, 0x1a
jb case.default.0x42292f
lea esi, [esp + 0x58]
lea ebp, [esp + 0xc]
mov edi, esi
mov ecx, 5
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
lea edi, [esp + 0x6c]
mov ecx, 1
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], esi
mov ebp, dword [esp + 0x80]
mov eax, ebp
add eax, 2
mov dword [esp + 0xa0], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x84], 0
cmp ecx, 0xc
setne al
xor ecx, ecx
jmp dword [eax*4 + 0x447110]
jmp dword [0x447128]
push ebp
call fcn.00409a60
add esp, 4
mov eax, dword [esp + 0x84]
and al, 1
add esp, 0xe8
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp dword [0x4471d0]
lea eax, [esp + 0xac]
push 0
push eax
push dword [esp + 0x90]
call fcn.0043f2b0
add esp, 0xc
not eax
shr eax, 0x1f
xor ebx, ebx
jmp dword [eax*4 + 0x447138]
mov ebx, dword [esp + 0xac]
lea eax, [ebx + 1]
push eax
call fcn.00409a50
add esp, 4
mov ebp, eax
push 0
push ebx
push eax
push dword [esp + 0x94]
call fcn.0043f3a0
add esp, 0x10
not eax
shr eax, 0x1f
xor ebx, ebx
jmp dword [eax*4 + 0x447150]
mov eax, dword [esp + 0xac]
mov byte [ebp + eax], 0
push ebp
call fcn.00402970
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x447158]
xor ebx, ebx
mov eax, dword [case.0x42292f.16]
jmp 0x422ef0
mov dword [esp + 0xb4], eax
push eax
call fcn.00403420
add esp, 4
mov dword [esp + 0xc], 0x3061114
mov dword [esp + 0x10], 0x1e1b131b
mov dword [esp + 0x14], 0xb010b43
mov dword [esp + 0x18], 0x6030b03
mov dword [esp + 0x1c], 0x1b161012
mov word [esp + 0x20], 0x31e
mov byte [esp + 0x22], 0x7b
mov word [esp + 0x23], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x18
ja 0x422c40
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x90167e4
xor ecx, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x40]
add cl, 0x7f
mov edx, dword [esp]
mov byte [esp + edx + 0xc], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x19
jb 0x422c10
mov dword [esp + 0xb8], ebp
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.004037e0
add esp, 8
mov edx, 0xffffffff
mov ebx, 0xfffffffe
nop
mov ecx, edx
add ebx, 2
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x422c60
mov ecx, edx
and ecx, 3
mov ebp, edx
or ebp, 3
imul ebp, ecx
xor ecx, 3
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x48]
and edx, 0xfffffffc
imul edx, ecx
add ebp, edx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
shr ebp, 2
movzx ecx, byte [eax + edx - 1]
cmp ecx, 0x3d
je 0x422cad
cmp ecx, 0x2e
jne 0x422cae
dec ebp
mov ecx, edx
xor ecx, 2
and ebx, 0xfffffffa
sub ebx, ecx
movzx eax, byte [eax + ebx]
cmp eax, 0x3d
je 0x422cc6
cmp eax, 0x2e
jne 0x422cd1
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
dec ebp
jmp 0x422cd9
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0xb0], ebp
lea eax, [ebp + 1]
push eax
call fcn.00409a50
add esp, 4
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x48], 0
mov esi, dword [esp + 0x50]
je 0x422dfb
xor edi, edi
mov ebp, 2
jmp 0x422d28
lea eax, [ebp + 4]
add ebp, 2
mov edi, dword [esp + 0x54]
cmp ebp, edx
mov ebp, eax
mov esi, dword [esp + 0x50]
jae 0x422dfb
movzx eax, byte [esi + ebp - 2]
push eax
call fcn.00415c50
add esp, 4
mov ebx, eax
movzx eax, byte [esi + ebp - 1]
push eax
call fcn.00415c50
mov edx, dword [esp + 0x4c]
add esp, 4
mov bh, al
shl bl, 2
shr al, 4
and al, 3
or al, bl
lea ecx, [edi + 1]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xa4], edi
mov byte [ecx + edi], al
cmp ebp, edx
jae 0x422d10
mov eax, dword [esp + 0x50]
movzx eax, byte [eax + ebp]
push eax
call fcn.00415c50
mov edx, dword [esp + 0x4c]
add esp, 4
cmp al, 0x40
je 0x422d10
mov bl, al
shl bh, 4
shr al, 2
and al, 0xf
or al, bh
mov esi, dword [esp + 0xa4]
lea ecx, [esi + 2]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x4c]
mov byte [ecx + esi + 1], al
lea eax, [ebp + 1]
cmp eax, edx
jae 0x422d10
mov eax, dword [esp + 0x50]
movzx eax, byte [eax + ebp + 1]
push eax
call fcn.00415c50
mov edx, dword [esp + 0x4c]
add esp, 4
cmp al, 0x40
je 0x422d10
shl bl, 6
mov ecx, eax
and cl, bl
add cl, cl
xor bl, al
add bl, cl
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
mov byte [eax + ecx + 2], bl
add ecx, 3
mov dword [esp + 0x54], ecx
jmp 0x422d10
mov eax, dword [esp + 0xb0]
add eax, 0xfffffffb
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add eax, 5
mov dword [esp + 0x44], eax
mov dword [esp], 0
mov dword [esp + 4], 0
push 0x6c625980
push dword [0x44aba4]
call fcn.0043e4e0
add esp, 8
mov ecx, esp
lea edx, [esp + 0x40]
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
call eax
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x447160]
xor ebx, ebx
mov eax, dword [0x447188]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
jmp 0x423460
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
jmp dword [0x447168]
jmp eax
mov eax, dword [0x4471c4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x54], eax
mov dword [esp + 0xc], 0xf8fbfafd
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x422f6e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xf9ff0a83
xor eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add al, 0x81
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x422f40
mov ecx, dword [0x44ab98]
test ecx, ecx
je 0x422fb0
mov edx, dword [esp + 0xc]
xor ebp, ebp
mov eax, dword [0x44ab9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax + ebp*8], 0x625b6034
je 0x422fa0
inc ebp
cmp ecx, ebp
jne 0x422f90
jmp 0x422fb0
mov eax, dword [eax + ebp*8 + 4]
cmp eax, edx
jne 0x422fc3
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, dword [esp + 0x80]
jmp dword [0x4471d0]
push dword [esp + 0x54]
push 1
push dword [0x44aba0]
push eax
call fcn.0043cdc0
add esp, 0x10
mov ebp, dword [esp + 0x80]
jmp dword [0x4471d0]
lea eax, [edi + 0x10]
cmp dword [esp + 0x70], 0xfffffff8
jge 0x42332b
mov eax, 0xffffffff
push eax
call fcn.00409a50
add esp, 4
mov ebp, eax
mov dword [esp + 0xc], 0x8b308dff
mov dword [esp + 0x10], 0x87fa893a
mov dword [esp + 0x14], 0x830c850a
mov dword [esp + 0x18], 0x9f80810e
lea eax, [esp + 0x1c]
mov byte [eax + 2], 0
mov word [eax], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x12
ja 0x4233b9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x7b1079a1
xor eax, ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x90]
add al, 0xd1
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x13
jb 0x423380
movzx ecx, word [esi]
mov eax, ebp
test cx, cx
je 0x4233e1
lea edx, [esi + 2]
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4233d0
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x423411
lea edx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x423400
mov word [eax], 0
mov ecx, dword [esp + 0xfc]
push dword [esp]
push dword [esp + 8]
push ebp
call fcn.0040a190
jmp dword [0x447170]
mov ebx, eax
jmp dword [0x447178]
jmp eax
lea eax, [edi + 0x10]
cmp dword [esp + 0x70], 0xfffffff8
jge 0x423471
mov eax, 0xffffffff
push eax
call fcn.00409a50
add esp, 4
mov dword [esp + 0xc], 0x8b308dff
mov dword [esp + 0x10], 0x87fa893a
mov dword [esp + 0x14], 0x830c850a
mov dword [esp + 0x18], 0x9f80810e
lea ecx, [esp + 0x1c]
mov byte [ecx + 2], 0
mov word [ecx], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x12
ja 0x4234fb
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x7b1079a1
xor ecx, edx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x90]
add cl, 0xd1
mov edx, dword [esp + 8]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x13
jb 0x4234c0
movzx edx, word [esi]
mov ecx, eax
test dx, dx
je 0x423521
lea ebx, [esi + 2]
mov ecx, eax
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x423510
mov word [ecx], 0
movzx edx, word [esp + 0xc]
test dx, dx
je 0x423551
lea ebx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x423540
mov word [ecx], 0
mov ecx, dword [esp + 0xfc]
push dword [esp]
push dword [esp + 8]
push eax
call fcn.0040a190
jmp case.0x42292f.22
int3
sub dword [edx], eax
mov dword [ecx], ebp
inc edx
add byte [eax + 0x29], al
inc edx
add byte [eax + 0x29], al
inc edx
add byte [eax + 0x29], al
inc edx
add byte [esi + 0x29], al
inc edx
add byte [ecx + ebp + 0x42], cl
add byte [ebp + 0x29], dl
inc edx
add byte [edx], dl
sub eax, dword [edx]
and byte [ebx], ch
inc edx
add byte [ecx], dl
das