Function at 0x40afa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a578
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3f7
xor edi, edi
push esi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x164], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.004dbbb0
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
push 0x3fa
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b054
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00405070
push 0
push 0
push 0x184
push dword [ebp - 0x168]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x2a97920]
mov ecx, dword [0x2a97924]
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], ecx
cmp eax, ecx
je 0x40b9fb
mov eax, dword [eax]
lea ecx, [ebp - 0x150]
mov edx, eax
mov dword [ebp - 0x1d4], eax
call fcn.0040acb0
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x40ba3a
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x190], 0
vpxor xmm0, xmm0, xmm0
mov dword [ebp - 0x16c], ecx
vmovdqu xmmword [ebp - 0x1a0], xmm0
mov dword [ebp - 0x18c], 0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x138]
cmp dword [ebp - 0x124], 0xf
cmova esi, dword [ebp - 0x138]
cmp eax, 0x7fffffff
ja 0x40bb01
cmp eax, 0xf
ja 0x40b147
mov dword [ebp - 0x190], eax
mov eax, 0xf
mov dword [ebp - 0x18c], eax
vmovdqu xmm0, xmmword [esi]
vmovdqu xmmword [ebp - 0x1a0], xmm0
jmp 0x40b1b6
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40b158
mov eax, Ordinal_1
jmp 0x40b163
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.00405590
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x1a0], eax
lea ecx, [edx + 1]
mov dword [ebp - 0x190], edx
push ecx
push esi
push eax
call fcn.004db630
vmovdqu xmm0, xmmword [ebp - 0x1a0]
mov eax, dword [ebp - 0x18c]
add esp, 0x14
cmp eax, 0xf
lea edx, [ebp - 0x1a0]
vmovd ecx, xmm0
cmova edx, ecx
lea esi, [ebp - 0x1a0]
cmova esi, ecx
lea eax, [ebp - 0x1a0]
cmp dword [ebp - 0x18c], 0xf
cmova eax, ecx
add eax, dword [ebp - 0x190]
mov dword [ebp - 0x158], eax
cmp esi, eax
je 0x40b226
sub edx, esi
mov dword [ebp - 0x15c], edx
mov edi, edx
nop dword [eax]
movzx eax, byte [esi]
push eax
call fcn.004e3aba
mov byte [esi + edi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x158]
jne 0x40b200
mov edi, dword [ebp - 0x154]
vmovdqu xmm0, xmmword [ebp - 0x1a0]
vmovdqu xmmword [ebp - 0x23c], xmm0
vmovq xmm0, qword [ebp - 0x190]
vmovq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0xf
mov byte [ebp - 0x1a0], 0
or edi, 1
mov dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x154], edi
vpxor xmm0, xmm0, xmm0
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x16c], eax
vmovdqu xmmword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x150]
cmp dword [ebp - 0x13c], 0xf
mov esi, dword [ebp - 0x140]
cmova ecx, dword [ebp - 0x150]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], ecx
cmp esi, 0x7fffffff
ja 0x40bb01
cmp esi, 0xf
ja 0x40b2f1
mov eax, 0xf
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], eax
vmovdqu xmm1, xmmword [ecx]
vmovdqu xmmword [ebp - 0x1b8], xmm1
jmp 0x40b36d
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40b304
mov eax, Ordinal_1
jmp 0x40b30f
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.00405590
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x1a4], ecx
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x15c]
mov dword [ebp - 0x1b8], eax
push eax
mov dword [ebp - 0x1a8], esi
call fcn.004db630
mov eax, dword [ebp - 0x1a8]
add esp, 0x14
vmovdqu xmm1, xmmword [ebp - 0x1b8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x1a4]
cmp eax, 0xf
lea edx, [ebp - 0x1b8]
vmovd ecx, xmm1
cmova edx, ecx
lea esi, [ebp - 0x1b8]
cmova esi, ecx
lea eax, [ebp - 0x1b8]
cmp dword [ebp - 0x1a4], 0xf
cmova eax, ecx
add eax, dword [ebp - 0x158]
mov dword [ebp - 0x158], eax
cmp esi, eax
je 0x40b3d6
sub edx, esi
mov dword [ebp - 0x15c], edx
mov edi, edx
movzx eax, byte [esi]
push eax
call fcn.004e3aba
mov byte [esi + edi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x158]
jne 0x40b3b0
mov edi, dword [ebp - 0x154]
vmovdqu xmm1, xmmword [ebp - 0x1b8]
vmovq xmm0, qword [ebp - 0x1a8]
vmovdqu xmmword [ebp - 0x1f4], xmm1
vmovq qword [ebp - 0x1e4], xmm0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
mov dword [ebp - 4], 6
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x1f4]
push dword [ebp - 0x22c]
or edi, 2
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x228], 0xf
mov dword [ebp - 0x154], edi
cmova edx, eax
mov dword [ebp - 0x164], edi
cmp dword [ebp - 0x1e0], 0xf
vmovd eax, xmm1
push edx
mov edx, dword [ebp - 0x1e4]
cmova ecx, eax
push 0
mov dword [ebp - 0x1f4], eax
call fcn.0040fed0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40b801
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1c0], 0
vpxor xmm0, xmm0, xmm0
mov dword [ebp - 0x15c], eax
vmovdqu xmmword [ebp - 0x1d0], xmm0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 4], 7
lea esi, [ebp - 0x138]
cmp dword [ebp - 0x124], 0xf
mov eax, dword [ebp - 0x128]
cmova esi, dword [ebp - 0x138]
cmp eax, 0xf
ja 0x40b4e6
mov dword [ebp - 0x1c0], eax
mov eax, 0xf
mov dword [ebp - 0x1bc], eax
vmovdqu xmm0, xmmword [esi]
vmovdqu xmmword [ebp - 0x1d0], xmm0
jmp 0x40b555
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40b4f7
mov eax, Ordinal_1
jmp 0x40b502
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00405590
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1d0], eax
lea ecx, [edx + 1]
mov dword [ebp - 0x1c0], edx
push ecx
push esi
push eax
call fcn.004db630
vmovdqu xmm0, xmmword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1bc]
add esp, 0x14
cmp eax, 0xf
lea edx, [ebp - 0x1d0]
vmovd ecx, xmm0
cmova edx, ecx
lea esi, [ebp - 0x1d0]
cmova esi, ecx
lea eax, [ebp - 0x1d0]
cmp dword [ebp - 0x1bc], 0xf
cmova eax, ecx
add eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x158], eax
cmp esi, eax
je 0x40b5c6
sub edx, esi
mov dword [ebp - 0x15c], edx
mov edi, edx
nop dword [eax + eax]
movzx eax, byte [esi]
push eax
call fcn.004e3aba
mov byte [esi + edi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x158]
jne 0x40b5a0
mov edi, dword [ebp - 0x154]
vmovdqu xmm0, xmmword [ebp - 0x1d0]
vmovdqu xmmword [ebp - 0x224], xmm0
vmovq xmm0, qword [ebp - 0x1c0]
vmovq qword [ebp - 0x214], xmm0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0xf
mov byte [ebp - 0x1d0], 0
or edi, 4
mov dword [ebp - 0x178], 0
lea eax, [ebp - 0x188]
mov dword [ebp - 0x154], edi
vpxor xmm0, xmm0, xmm0
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x240], eax
vmovdqu xmmword [ebp - 0x188], xmm0
mov dword [ebp - 0x174], 0
mov ecx, dword [ebp - 0x1d4]
mov eax, ecx
mov dword [ebp - 4], 9
mov dword [ebp - 0x15c], ecx
cmp dword [ecx + 0x14], 0xf
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x158], esi
jbe 0x40b660
mov eax, dword [ecx]
mov dword [ebp - 0x15c], eax
cmp esi, 0x7fffffff
ja 0x40bb01
cmp esi, 0xf
ja 0x40b695
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x174], 0xf
vmovdqu xmm1, xmmword [eax]
vmovdqu xmmword [ebp - 0x188], xmm1
jmp 0x40b705
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40b6a8
mov eax, Ordinal_1
jmp 0x40b6b3
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00405590
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x174], ecx
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x15c]
mov dword [ebp - 0x188], eax
push eax
mov dword [ebp - 0x178], esi
call fcn.004db630
mov edx, dword [ebp - 0x178]
add esp, 0x14
vmovdqu xmm1, xmmword [ebp - 0x188]
mov byte [ebp - 4], 8
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x174], 0xf
lea esi, [ebp - 0x188]
vmovd ecx, xmm1
cmova eax, ecx
cmova esi, ecx
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x188]
cmova eax, ecx
add eax, edx
mov dword [ebp - 0x15c], eax
cmp esi, eax
je 0x40b776
sub dword [ebp - 0x164], esi
mov edi, dword [ebp - 0x164]
nop dword [eax]
movzx eax, byte [esi]
push eax
call fcn.004e3aba
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x15c]
jne 0x40b750
mov edi, dword [ebp - 0x154]
vmovdqu xmm1, xmmword [ebp - 0x188]
vmovq xmm0, qword [ebp - 0x178]
push dword [ebp - 0x214]
or edi, 8
mov dword [ebp - 0x178], 0
cmp dword [ebp - 0x210], 0xf
lea eax, [ebp - 0x224]
vmovq qword [ebp - 0x1fc], xmm0
mov edx, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x154], edi
mov edi, dword [ebp - 0x224]
cmova eax, edi
cmp dword [ebp - 0x1f8], 0xf
vmovd esi, xmm1
push eax
cmova ecx, esi
mov dword [ebp - 0x174], 0xf
push 0
vmovdqu xmmword [ebp - 0x20c], xmm1
mov byte [ebp - 0x188], 0
call fcn.0040fed0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40b80d
mov byte [ebp - 0x15d], 1
jmp 0x40b814
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x20c]
mov byte [ebp - 0x15d], 0
mov eax, dword [ebp - 0x154]
test al, 8
je 0x40b87c
mov ecx, dword [ebp - 0x1f8]
and eax, 0xfffffff7
mov dword [ebp - 0x154], eax
cmp ecx, 0xf
jbe 0x40b861
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x40b851
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push esi
call fcn.004d7c38
mov eax, dword [ebp - 0x154]
add esp, 8
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0xf
mov byte [ebp - 0x20c], 0
mov dword [ebp - 4], 6
test al, 4
je 0x40b8ca
mov ecx, dword [ebp - 0x210]
and eax, 0xfffffffb
mov dword [ebp - 0x154], eax
cmp ecx, 0xf
jbe 0x40b8ca
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x40b8ba
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push edi
call fcn.004d7c38
mov eax, dword [ebp - 0x154]
add esp, 8
mov dword [ebp - 4], 4
test al, 2
je 0x40b939
mov ecx, dword [ebp - 0x1e0]
and eax, 0xfffffffd
mov dword [ebp - 0x154], eax
cmp ecx, 0xf
jbe 0x40b91e
mov edx, dword [ebp - 0x1f4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b90e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push edx
call fcn.004d7c38
mov eax, dword [ebp - 0x154]
add esp, 8
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
mov dword [ebp - 4], 2
test al, 1
je 0x40b989
and eax, 0xfffffffe
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x228]
cmp eax, 0xf
jbe 0x40b989
mov edx, dword [ebp - 0x16c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b97f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push edx
call fcn.004d7c38
add esp, 8
cmp byte [ebp - 0x15d], 0
je 0x40ba34
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x40b9d4
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push edx
call fcn.004d7c38
add esp, 8
mov edi, dword [ebp - 0x154]
mov eax, dword [ebp - 0x1d8]
add eax, 4
mov dword [ebp - 0x1d8], eax
cmp eax, dword [ebp - 0x1dc]
jne 0x40b0b1
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x124]
cmp eax, 0xf
jbe 0x40bade
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bad4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
jmp 0x40bad4
mov edi, dword [ebp - 0x154]
push 0
push 0
push 0x18b
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x13c], 0xf
lea ecx, [ebp - 0x150]
mov esi, eax
cmova ecx, dword [ebp - 0x150]
push ecx
push 0
push 0x180
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x1d4]
push esi
push 0x19a
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x40b9da
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bac5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bafc
push ecx
push edx
call fcn.004d7c38
add esp, 8
jmp 0x40b9da
push ecx
push edx
call fcn.004d7c38
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7bf5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e35d4
call fcn.00403c10
int3