Function at 0x40a450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, esp
mov eax, dword [0x441db4]
test eax, eax
jne 0x40a62e
movzx eax, byte [0x439440]
xor al, 0x1a
mov byte [0x439460], al
movzx eax, byte [0x439441]
mov ecx, eax
add cl, al
and cl, 0xf2
sub al, cl
add al, 0x79
mov byte [0x439461], al
movzx eax, byte [0x439442]
xor al, 0x61
mov byte [0x439462], al
movzx eax, byte [0x439443]
xor al, 0x41
mov byte [0x439463], al
movzx eax, byte [0x439444]
xor al, 0x79
mov byte [0x439464], al
movzx eax, byte [0x439445]
mov ecx, eax
add cl, al
and cl, 0x78
sub al, cl
add al, 0x3c
mov byte [0x439465], al
movzx eax, byte [0x439446]
add al, 0x80
mov byte [0x439466], al
movzx eax, byte [0x439447]
xor al, 0x2c
mov byte [0x439467], al
movzx eax, byte [0x439448]
mov ecx, eax
not cl
or cl, 0xc7
or al, 0x38
and al, cl
mov byte [0x439468], al
movzx eax, byte [0x439449]
add al, 0x80
mov byte [0x439469], al
movzx eax, byte [0x43944a]
xor al, 0x74
mov byte [0x43946a], al
movzx eax, byte [0x43944b]
xor al, 0xd6
mov byte [0x43946b], al
movzx eax, byte [0x43944c]
xor al, 0xe2
mov byte [0x43946c], al
movzx eax, byte [0x43944d]
xor al, 0xd4
mov byte [0x43946d], al
movzx eax, byte [0x43944e]
xor al, 0x39
mov byte [0x43946e], al
movzx eax, byte [0x43944f]
mov ecx, eax
add cl, al
and cl, 2
sub al, cl
add al, 0x81
mov byte [0x43946f], al
movzx eax, byte [0x439450]
xor al, 0x8a
mov byte [0x439470], al
movzx eax, byte [0x439451]
xor al, 0x53
mov byte [0x439471], al
movzx eax, byte [0x439452]
xor al, 0x7c
mov byte [0x439472], al
movzx eax, byte [0x439453]
xor al, 0x9d
mov byte [0x439473], al
movzx eax, byte [0x439474]
xor al, 0x1f
mov byte [0x43947d], al
movzx eax, byte [0x439475]
xor al, 0x7d
mov byte [0x43947e], al
movzx eax, byte [0x439476]
xor al, 0x4a
mov byte [0x43947f], al
movzx eax, byte [0x439477]
add al, 0x80
mov byte [0x439480], al
movzx eax, byte [0x439478]
mov ecx, eax
add cl, al
and cl, 0x72
sub al, cl
add al, 0xb9
mov byte [0x439481], al
movzx eax, byte [0x439479]
xor al, 0x50
mov byte [0x439482], al
movzx eax, byte [0x43947a]
xor al, 0xe2
mov byte [0x439483], al
movzx eax, byte [0x43947b]
xor al, 0xc4
mov byte [0x439484], al
movzx eax, byte [0x43947c]
xor al, 0x98
mov byte [0x439485], al
mov dword [0x441db4], 1
push eax
mov ecx, esp
push eax
mov dword [esi + 0x10], esp
sub esp, 0xc
mov ebx, esp
push eax
mov dword [esi + 0x24], esp
sub esp, 0x80
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
sub esp, 0x1c
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
sub esp, 0x1c
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0xc], edx
mov esp, edx
push eax
sub esp, 0x1c
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x14], edx
mov esp, edx
push eax
sub esp, 0x10
mov dword [esi + 0x20], esp
push eax
mov dword [esi + 0x18], esp
sub esp, 0x20
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x1c], edx
mov esp, edx
mov dword [esi + 0x2c], ecx
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov ecx, dword [esi + 0x10]
mov byte [ecx], 0
movzx ecx, byte [0x439485]
mov byte [ebx + 8], cl
mov ecx, dword [0x439481]
mov dword [ebx + 4], ecx
mov ecx, dword [0x43947d]
mov dword [esi + 0x28], ebx
mov dword [ebx], ecx
mov dword [edi], 0x63cd61a3
mov dword [edi + 4], 0x67f265ca
mov dword [edi + 8], 0x6bc469cd
mov dword [edi + 0xc], 0x6f836df8
mov dword [edi + 0x10], 0x53cb51e4
mov dword [edi + 0x14], 0x57f355c4
mov dword [edi + 0x18], 0x5bba5982
mov dword [edi + 0x1c], 0x5fce5dfd
mov dword [edi + 0x20], 0x43ee41d0
mov dword [edi + 0x24], 0x47e545ed
mov dword [edi + 0x28], 0x4bde49e9
mov dword [edi + 0x2c], 0x4fe14de5
mov dword [edi + 0x30], 0x33dd319e
mov dword [edi + 0x34], 0x37db35ac
mov dword [edi + 0x38], 0x3bad39af
mov dword [edi + 0x3c], 0x3fd33dab
mov dword [edi + 0x40], 0x238d2186
mov dword [edi + 0x44], 0x278b25b6
mov dword [edi + 0x48], 0x2bbf29c5
mov dword [edi + 0x4c], 0x2f822dbe
mov dword [edi + 0x50], 0x13bc11b5
mov dword [edi + 0x54], 0x17b915b7
mov dword [edi + 0x58], 0x1bbf19bc
mov dword [edi + 0x5c], 0x1f131db8
mov dword [edi + 0x60], 0x302010a
mov dword [edi + 0x73], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x64], 0
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
cmp ecx, 0x76
ja 0x40a7c0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 8]
add cl, 0x10
xor cl, byte [edi + edx]
add cl, 0x90
mov edx, dword [esi + 8]
mov byte [edi + edx], cl
inc dword [esi + 8]
mov ecx, dword [esi + 8]
cmp ecx, 0x77
jb 0x40a7a0
mov dword [eax], 0xfb5bf9d7
mov dword [eax + 4], 0xff67fd6a
mov word [eax + 8], 0xf1fe
mov dword [eax + 0xa], 0
mov dword [eax + 0xe], 0
mov dword [eax + 0x12], 0
mov dword [eax + 0x16], 0
mov dword [eax + 0x1a], 0
mov byte [eax + 0x1e], 0
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
cmp ecx, 0x1e
ja 0x40a843
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esi + 8]
mov ecx, dword [esi + 8]
movzx ebx, byte [eax + ecx]
lea ecx, [edx + ebx]
add ecx, 0xc0cca13f
add edx, 0xc0cca13f
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0x47
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
inc dword [esi + 8]
mov ecx, dword [esi + 8]
cmp ecx, 0x1f
jb 0x40a810
push 0
mov ebx, dword [esi + 0x24]
push ebx
push 8
push dword [esi + 0x28]
push edi
push eax
mov eax, dword [esi + 0x2c]
push dword [eax]
call fcn.0040abb0
add esp, 0x1c
test al, al
je 0x40ab5d
mov edx, dword [esi + 0xc]
mov dword [edx], 0
mov dword [edx + 0x1b], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov word [edx], 0x8497
mov byte [edx + 2], pe_nt_image_headers32
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x1e
ja 0x40a8de
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
add al, 0xaf
xor al, byte [edx + ecx]
add al, 0x37
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 8]
mov eax, dword [esi + 8]
cmp eax, 0x1f
jb 0x40a8c0
mov edi, dword [ebx]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edi + eax]
mov edx, dword [esi + 0xc]
movzx edx, byte [edx + eax]
test cl, cl
je 0x40a904
inc eax
cmp cl, dl
je 0x40a8f0
cmp cl, dl
jne 0x40a913
mov eax, dword [esi + 0x10]
mov byte [eax], 1
jmp 0x40ab54
mov edx, dword [esi + 0x14]
mov dword [edx], 0x97f9e4eb
mov dword [edx + 4], 0x17e0e2ed
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x13], 0
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x16
ja 0x40a982
nop
nop
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
movzx ecx, byte [edx + ecx]
lea edx, [eax - 0x52a86ac]
mov edi, ecx
not edi
or edi, edx
and edx, ecx
add edx, edi
sub eax, edx
mov edx, dword [esi + 0x14]
add al, 7
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 8]
mov eax, dword [esi + 8]
cmp eax, 0x17
jb 0x40a950
mov edi, dword [ebx]
movzx ebx, byte [edx]
mov eax, edi
test bl, bl
je 0x40a9bf
mov eax, edi
mov ecx, edi
mov edx, dword [esi + 0x14]
jmp 0x40a9ad
inc eax
mov edx, dword [esi + 0x14]
mov ecx, eax
movzx ebx, byte [edx]
test bl, bl
je 0x40a9bf
mov bh, byte [ecx]
test bh, bh
je 0x40ab54
cmp bh, bl
jne 0x40a9a0
inc ecx
inc edx
jmp 0x40a9a6
test eax, eax
je 0x40ab54
mov eax, dword [0x439470]
mov ecx, dword [esi + 0x20]
mov dword [ecx + 0x10], eax
mov eax, dword [0x43946c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x439468]
mov dword [ecx + 8], eax
mov eax, dword [0x439464]
mov dword [ecx + 4], eax
mov edx, dword [0x439460]
mov dword [ecx], edx
test dl, dl
je 0x40aa20
mov eax, edi
jmp 0x40aa0d
inc edi
mov ecx, dword [esi + 0x20]
mov eax, edi
movzx edx, byte [ecx]
test dl, dl
je 0x40aa20
movzx ebx, byte [eax]
test bl, bl
je 0x40ab4f
cmp bl, dl
jne 0x40aa00
inc eax
inc ecx
jmp 0x40aa06
test edi, edi
je 0x40ab4f
add edi, 0x13
mov eax, dword [esi + 0x18]
mov dword [eax], edi
mov ebx, dword [esi + 0x1c]
mov dword [ebx], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov word [ebx], 0x1ffa
mov byte [ebx + 2], 0xda
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x1f
ja 0x40aac1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 8]
mov eax, dword [esi + 8]
movzx edx, byte [ebx + eax]
lea eax, [ecx + edx]
add eax, 0x40e7299c
add ecx, 0x40e7299c
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xbc
mov ecx, dword [esi + 8]
mov byte [ebx + ecx], al
inc dword [esi + 8]
mov eax, dword [esi + 8]
cmp eax, 0x20
jb 0x40aa90
movzx edx, byte [ebx]
test dl, dl
je 0x40aaef
mov eax, edi
mov ecx, ebx
jmp 0x40aadd
inc edi
mov ecx, dword [esi + 0x1c]
mov eax, edi
movzx edx, byte [ecx]
test dl, dl
je 0x40aaeb
mov dh, byte [eax]
test dh, dh
je 0x40ab4f
cmp dh, dl
jne 0x40aad0
inc eax
inc ecx
jmp 0x40aad6
test edi, edi
je 0x40ab4f
mov byte [0x4421c8], 1
mov eax, dword [esi + 0x18]
mov ebx, dword [eax]
mov dword [esi + 8], 0
mov ecx, 0x4421ca
cmp edi, ebx
jbe 0x40ab44
nop
nop
nop
nop
nop
cmp byte [ebx], 0
je 0x40ab44
lea eax, [esi + 8]
push eax
push edi
push ebx
mov dword [esi + 0xc], ecx
call fcn.0040fc70
add esp, 0xc
movzx ecx, word [esi + 8]
mov edx, dword [esi + 0xc]
mov word [edx], cx
mov ecx, dword [esi + 0xc]
add ecx, 2
cmp ecx, 0x4423c8
jae 0x40ab44
add ebx, eax
cmp ebx, edi
jb 0x40ab10
mov word [ecx], 0
mov eax, dword [esi + 0x10]
mov byte [eax], 1
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
push edi
call fcn.0042fec0
add esp, 4
mov eax, dword [esi + 0x10]
movzx eax, byte [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret